Confronta commit

..

Nessun commit in comune. '2c3a85515e15731ed3ddd016652735db45f423fc' e '0bde60f55124a984a3e2db69305a41cb56d295ad' hanno storie completamente diverse.

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

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

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

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

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

@ -391,27 +391,6 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/ */
public void setNormEsenteBollo(boolean normEsenteBollo); 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. * Returns the norm esente collaudo of this fine lavori.
* *
@ -463,20 +442,6 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/ */
public void setPagamentoId(long pagamentoId); 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. * Returns the codice pagamento of this fine lavori.
* *
@ -492,21 +457,6 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/ */
public void setCodicePagamento(String codicePagamento); 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. * Returns the causale pagamento of this fine lavori.
* *
@ -522,21 +472,6 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/ */
public void setCausalePagamento(String causalePagamento); 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. * Returns the mezzo pagamento of this fine lavori.
* *
@ -552,21 +487,6 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/ */
public void setMezzoPagamento(String mezzoPagamento); 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. * Returns the importo bolli of this fine lavori.
* *
@ -582,42 +502,6 @@ public interface FineLavoriModel extends BaseModel<FineLavori>,
*/ */
public void setImportoBolli(String importoBolli); 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 @Override
public boolean isNew(); 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,20 +50,13 @@ public class FineLavoriSoap implements Serializable {
soapModel.setDataEffettuazione(model.getDataEffettuazione()); soapModel.setDataEffettuazione(model.getDataEffettuazione());
soapModel.setDataFineLavori(model.getDataFineLavori()); soapModel.setDataFineLavori(model.getDataFineLavori());
soapModel.setNormEsenteBollo(model.getNormEsenteBollo()); soapModel.setNormEsenteBollo(model.getNormEsenteBollo());
soapModel.setNormEsenteSpese(model.getNormEsenteSpese());
soapModel.setNormEsenteCollaudo(model.getNormEsenteCollaudo()); soapModel.setNormEsenteCollaudo(model.getNormEsenteCollaudo());
soapModel.setComunicazioneDirettoreLavori(model.getComunicazioneDirettoreLavori()); soapModel.setComunicazioneDirettoreLavori(model.getComunicazioneDirettoreLavori());
soapModel.setPagamentoId(model.getPagamentoId()); soapModel.setPagamentoId(model.getPagamentoId());
soapModel.setPagamentoSpeseId(model.getPagamentoSpeseId());
soapModel.setCodicePagamento(model.getCodicePagamento()); soapModel.setCodicePagamento(model.getCodicePagamento());
soapModel.setCodicePagamentoSpese(model.getCodicePagamentoSpese());
soapModel.setCausalePagamento(model.getCausalePagamento()); soapModel.setCausalePagamento(model.getCausalePagamento());
soapModel.setCausalePagamentoSpese(model.getCausalePagamentoSpese());
soapModel.setMezzoPagamento(model.getMezzoPagamento()); soapModel.setMezzoPagamento(model.getMezzoPagamento());
soapModel.setMezzoPagamentoSpese(model.getMezzoPagamentoSpese());
soapModel.setImportoBolli(model.getImportoBolli()); soapModel.setImportoBolli(model.getImportoBolli());
soapModel.setImportoSpese(model.getImportoSpese());
soapModel.setRichiestaAttestazione(model.getRichiestaAttestazione());
return soapModel; return soapModel;
} }
@ -284,18 +277,6 @@ public class FineLavoriSoap implements Serializable {
_normEsenteBollo = normEsenteBollo; _normEsenteBollo = normEsenteBollo;
} }
public boolean getNormEsenteSpese() {
return _normEsenteSpese;
}
public boolean isNormEsenteSpese() {
return _normEsenteSpese;
}
public void setNormEsenteSpese(boolean normEsenteSpese) {
_normEsenteSpese = normEsenteSpese;
}
public boolean getNormEsenteCollaudo() { public boolean getNormEsenteCollaudo() {
return _normEsenteCollaudo; return _normEsenteCollaudo;
} }
@ -325,14 +306,6 @@ public class FineLavoriSoap implements Serializable {
_pagamentoId = pagamentoId; _pagamentoId = pagamentoId;
} }
public long getPagamentoSpeseId() {
return _pagamentoSpeseId;
}
public void setPagamentoSpeseId(long pagamentoSpeseId) {
_pagamentoSpeseId = pagamentoSpeseId;
}
public String getCodicePagamento() { public String getCodicePagamento() {
return _codicePagamento; return _codicePagamento;
} }
@ -341,14 +314,6 @@ public class FineLavoriSoap implements Serializable {
_codicePagamento = codicePagamento; _codicePagamento = codicePagamento;
} }
public String getCodicePagamentoSpese() {
return _codicePagamentoSpese;
}
public void setCodicePagamentoSpese(String codicePagamentoSpese) {
_codicePagamentoSpese = codicePagamentoSpese;
}
public String getCausalePagamento() { public String getCausalePagamento() {
return _causalePagamento; return _causalePagamento;
} }
@ -357,14 +322,6 @@ public class FineLavoriSoap implements Serializable {
_causalePagamento = causalePagamento; _causalePagamento = causalePagamento;
} }
public String getCausalePagamentoSpese() {
return _causalePagamentoSpese;
}
public void setCausalePagamentoSpese(String causalePagamentoSpese) {
_causalePagamentoSpese = causalePagamentoSpese;
}
public String getMezzoPagamento() { public String getMezzoPagamento() {
return _mezzoPagamento; return _mezzoPagamento;
} }
@ -373,14 +330,6 @@ public class FineLavoriSoap implements Serializable {
_mezzoPagamento = mezzoPagamento; _mezzoPagamento = mezzoPagamento;
} }
public String getMezzoPagamentoSpese() {
return _mezzoPagamentoSpese;
}
public void setMezzoPagamentoSpese(String mezzoPagamentoSpese) {
_mezzoPagamentoSpese = mezzoPagamentoSpese;
}
public String getImportoBolli() { public String getImportoBolli() {
return _importoBolli; return _importoBolli;
} }
@ -389,26 +338,6 @@ public class FineLavoriSoap implements Serializable {
_importoBolli = importoBolli; _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 String _uuid;
private long _fineLavoriId; private long _fineLavoriId;
private long _companyId; private long _companyId;
@ -428,18 +357,11 @@ public class FineLavoriSoap implements Serializable {
private Date _dataEffettuazione; private Date _dataEffettuazione;
private Date _dataFineLavori; private Date _dataFineLavori;
private boolean _normEsenteBollo; private boolean _normEsenteBollo;
private boolean _normEsenteSpese;
private boolean _normEsenteCollaudo; private boolean _normEsenteCollaudo;
private String _comunicazioneDirettoreLavori; private String _comunicazioneDirettoreLavori;
private long _pagamentoId; private long _pagamentoId;
private long _pagamentoSpeseId;
private String _codicePagamento; private String _codicePagamento;
private String _codicePagamentoSpese;
private String _causalePagamento; private String _causalePagamento;
private String _causalePagamentoSpese;
private String _mezzoPagamento; private String _mezzoPagamento;
private String _mezzoPagamentoSpese;
private String _importoBolli; 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,21 +69,14 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
attributes.put("dataEffettuazione", getDataEffettuazione()); attributes.put("dataEffettuazione", getDataEffettuazione());
attributes.put("dataFineLavori", getDataFineLavori()); attributes.put("dataFineLavori", getDataFineLavori());
attributes.put("normEsenteBollo", getNormEsenteBollo()); attributes.put("normEsenteBollo", getNormEsenteBollo());
attributes.put("normEsenteSpese", getNormEsenteSpese());
attributes.put("normEsenteCollaudo", getNormEsenteCollaudo()); attributes.put("normEsenteCollaudo", getNormEsenteCollaudo());
attributes.put("comunicazioneDirettoreLavori", attributes.put("comunicazioneDirettoreLavori",
getComunicazioneDirettoreLavori()); getComunicazioneDirettoreLavori());
attributes.put("pagamentoId", getPagamentoId()); attributes.put("pagamentoId", getPagamentoId());
attributes.put("pagamentoSpeseId", getPagamentoSpeseId());
attributes.put("codicePagamento", getCodicePagamento()); attributes.put("codicePagamento", getCodicePagamento());
attributes.put("codicePagamentoSpese", getCodicePagamentoSpese());
attributes.put("causalePagamento", getCausalePagamento()); attributes.put("causalePagamento", getCausalePagamento());
attributes.put("causalePagamentoSpese", getCausalePagamentoSpese());
attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("mezzoPagamento", getMezzoPagamento());
attributes.put("mezzoPagamentoSpese", getMezzoPagamentoSpese());
attributes.put("importoBolli", getImportoBolli()); attributes.put("importoBolli", getImportoBolli());
attributes.put("importoSpese", getImportoSpese());
attributes.put("richiestaAttestazione", getRichiestaAttestazione());
return attributes; return attributes;
} }
@ -205,12 +198,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
setNormEsenteBollo(normEsenteBollo); setNormEsenteBollo(normEsenteBollo);
} }
Boolean normEsenteSpese = (Boolean)attributes.get("normEsenteSpese");
if (normEsenteSpese != null) {
setNormEsenteSpese(normEsenteSpese);
}
Boolean normEsenteCollaudo = (Boolean)attributes.get( Boolean normEsenteCollaudo = (Boolean)attributes.get(
"normEsenteCollaudo"); "normEsenteCollaudo");
@ -231,69 +218,29 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
setPagamentoId(pagamentoId); setPagamentoId(pagamentoId);
} }
Long pagamentoSpeseId = (Long)attributes.get("pagamentoSpeseId");
if (pagamentoSpeseId != null) {
setPagamentoSpeseId(pagamentoSpeseId);
}
String codicePagamento = (String)attributes.get("codicePagamento"); String codicePagamento = (String)attributes.get("codicePagamento");
if (codicePagamento != null) { if (codicePagamento != null) {
setCodicePagamento(codicePagamento); setCodicePagamento(codicePagamento);
} }
String codicePagamentoSpese = (String)attributes.get(
"codicePagamentoSpese");
if (codicePagamentoSpese != null) {
setCodicePagamentoSpese(codicePagamentoSpese);
}
String causalePagamento = (String)attributes.get("causalePagamento"); String causalePagamento = (String)attributes.get("causalePagamento");
if (causalePagamento != null) { if (causalePagamento != null) {
setCausalePagamento(causalePagamento); setCausalePagamento(causalePagamento);
} }
String causalePagamentoSpese = (String)attributes.get(
"causalePagamentoSpese");
if (causalePagamentoSpese != null) {
setCausalePagamentoSpese(causalePagamentoSpese);
}
String mezzoPagamento = (String)attributes.get("mezzoPagamento"); String mezzoPagamento = (String)attributes.get("mezzoPagamento");
if (mezzoPagamento != null) { if (mezzoPagamento != null) {
setMezzoPagamento(mezzoPagamento); setMezzoPagamento(mezzoPagamento);
} }
String mezzoPagamentoSpese = (String)attributes.get(
"mezzoPagamentoSpese");
if (mezzoPagamentoSpese != null) {
setMezzoPagamentoSpese(mezzoPagamentoSpese);
}
String importoBolli = (String)attributes.get("importoBolli"); String importoBolli = (String)attributes.get("importoBolli");
if (importoBolli != null) { if (importoBolli != null) {
setImportoBolli(importoBolli); setImportoBolli(importoBolli);
} }
String importoSpese = (String)attributes.get("importoSpese");
if (importoSpese != null) {
setImportoSpese(importoSpese);
}
Boolean richiestaAttestazione = (Boolean)attributes.get(
"richiestaAttestazione");
if (richiestaAttestazione != null) {
setRichiestaAttestazione(richiestaAttestazione);
}
} }
/** /**
@ -758,36 +705,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setNormEsenteBollo(normEsenteBollo); _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. * Returns the norm esente collaudo of this fine lavori.
* *
@ -859,26 +776,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setPagamentoId(pagamentoId); _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. * Returns the codice pagamento of this fine lavori.
* *
@ -899,26 +796,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setCodicePagamento(codicePagamento); _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. * Returns the causale pagamento of this fine lavori.
* *
@ -939,26 +816,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setCausalePagamento(causalePagamento); _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. * Returns the mezzo pagamento of this fine lavori.
* *
@ -979,26 +836,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setMezzoPagamento(mezzoPagamento); _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. * Returns the importo bolli of this fine lavori.
* *
@ -1019,56 +856,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper<FineLavori> {
_fineLavori.setImportoBolli(importoBolli); _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 @Override
public boolean isNew() { public boolean isNew() {
return _fineLavori.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,9 +324,8 @@ public interface FineLavoriLocalService extends BaseLocalService,
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException; it.tref.liferay.portos.bo.NoSuchFineLavoriException;
@ -342,7 +341,6 @@ public interface FineLavoriLocalService extends BaseLocalService,
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia( public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, 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,8 +141,7 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
_methodParameterTypes24 = new String[] { _methodParameterTypes24 = new String[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date", "long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "java.lang.String"
"java.lang.String", "boolean"
}; };
_methodName25 = "getLastEditable"; _methodName25 = "getLastEditable";
@ -157,7 +156,6 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
_methodParameterTypes27 = new String[] { _methodParameterTypes27 = new String[] {
"long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -1029,9 +1027,8 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException { it.tref.liferay.portos.bo.NoSuchFineLavoriException {
Object returnObj = null; Object returnObj = null;
@ -1056,13 +1053,9 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
normEsenteBollo, normEsenteBollo,
normEsenteSpese,
normEsenteCollaudo, normEsenteCollaudo,
ClpSerializer.translateInput(comunicazioneDirettoreLavori), ClpSerializer.translateInput(comunicazioneDirettoreLavori)
richiestaAttestazione
}); });
} }
catch (Throwable t) { catch (Throwable t) {
@ -1149,7 +1142,6 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
@Override @Override
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia( public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -1164,10 +1156,6 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService {
ClpSerializer.translateInput(codiceFiscaleCommittente), ClpSerializer.translateInput(codiceFiscaleCommittente),
ClpSerializer.translateInput(importoBolli),
ClpSerializer.translateInput(importoSpese),
ClpSerializer.translateInput(currentURL), ClpSerializer.translateInput(currentURL),
ClpSerializer.translateInput(serviceContext) 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,16 +349,14 @@ public class FineLavoriLocalServiceUtil {
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException { it.tref.liferay.portos.bo.NoSuchFineLavoriException {
return getService() return getService()
.updateFineLavori(userId, fineLavoriId, intPraticaId, .updateFineLavori(userId, fineLavoriId, intPraticaId,
parziale, completata, dataFineLavori, codiceFiscaleDelegato, parziale, completata, dataFineLavori, codiceFiscaleDelegato,
normEsenteBollo, normEsenteSpese, normEsenteCollaudo, normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori);
comunicazioneDirettoreLavori, richiestaAttestazione);
} }
public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable( public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable(
@ -375,14 +373,13 @@ public class FineLavoriLocalServiceUtil {
public static it.tref.liferay.portos.bo.model.FineLavori pagaInvia( public static it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.pagaInvia(fineLavoriId, codiceFiscaleCommittente, .pagaInvia(fineLavoriId, codiceFiscaleCommittente,
importoBolli, importoSpese, currentURL, serviceContext); currentURL, serviceContext);
} }
public static void updateEsitoPagamento(long pagamentoId, 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,16 +372,14 @@ public class FineLavoriLocalServiceWrapper implements FineLavoriLocalService,
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.bo.NoSuchFineLavoriException { it.tref.liferay.portos.bo.NoSuchFineLavoriException {
return _fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, return _fineLavoriLocalService.updateFineLavori(userId, fineLavoriId,
intPraticaId, parziale, completata, dataFineLavori, intPraticaId, parziale, completata, dataFineLavori,
codiceFiscaleDelegato, normEsenteBollo, normEsenteSpese, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
normEsenteCollaudo, comunicazioneDirettoreLavori, comunicazioneDirettoreLavori);
richiestaAttestazione);
} }
@Override @Override
@ -401,14 +399,12 @@ public class FineLavoriLocalServiceWrapper implements FineLavoriLocalService,
@Override @Override
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia( public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _fineLavoriLocalService.pagaInvia(fineLavoriId, return _fineLavoriLocalService.pagaInvia(fineLavoriId,
codiceFiscaleCommittente, importoBolli, importoSpese, currentURL, codiceFiscaleCommittente, currentURL, serviceContext);
serviceContext);
} }
@Override @Override

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

@ -95,9 +95,8 @@ public interface FineLavoriService extends BaseService, InvokableService {
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@ -121,7 +120,6 @@ public interface FineLavoriService extends BaseService, InvokableService {
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia( public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, 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,8 +62,7 @@ public class FineLavoriServiceClp implements FineLavoriService {
_methodParameterTypes8 = new String[] { _methodParameterTypes8 = new String[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date", "long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "java.lang.String"
"java.lang.String", "boolean"
}; };
_methodName9 = "getLastEditable"; _methodName9 = "getLastEditable";
@ -89,7 +88,6 @@ public class FineLavoriServiceClp implements FineLavoriService {
_methodParameterTypes13 = new String[] { _methodParameterTypes13 = new String[] {
"long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -348,9 +346,8 @@ public class FineLavoriServiceClp implements FineLavoriService {
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null; Object returnObj = null;
@ -375,13 +372,9 @@ public class FineLavoriServiceClp implements FineLavoriService {
normEsenteBollo, normEsenteBollo,
normEsenteSpese,
normEsenteCollaudo, normEsenteCollaudo,
ClpSerializer.translateInput(comunicazioneDirettoreLavori), ClpSerializer.translateInput(comunicazioneDirettoreLavori)
richiestaAttestazione
}); });
} }
catch (Throwable t) { catch (Throwable t) {
@ -538,7 +531,6 @@ public class FineLavoriServiceClp implements FineLavoriService {
@Override @Override
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia( public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -553,10 +545,6 @@ public class FineLavoriServiceClp implements FineLavoriService {
ClpSerializer.translateInput(codiceFiscaleCommittente), ClpSerializer.translateInput(codiceFiscaleCommittente),
ClpSerializer.translateInput(importoBolli),
ClpSerializer.translateInput(importoSpese),
ClpSerializer.translateInput(currentURL), ClpSerializer.translateInput(currentURL),
ClpSerializer.translateInput(serviceContext) 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,16 +102,14 @@ public class FineLavoriServiceUtil {
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.updateFineLavori(userId, fineLavoriId, intPraticaId, .updateFineLavori(userId, fineLavoriId, intPraticaId,
parziale, completata, dataFineLavori, codiceFiscaleDelegato, parziale, completata, dataFineLavori, codiceFiscaleDelegato,
normEsenteBollo, normEsenteSpese, normEsenteCollaudo, normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori);
comunicazioneDirettoreLavori, richiestaAttestazione);
} }
public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable( public static it.tref.liferay.portos.bo.model.FineLavori getLastEditable(
@ -143,14 +141,13 @@ public class FineLavoriServiceUtil {
public static it.tref.liferay.portos.bo.model.FineLavori pagaInvia( public static it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.pagaInvia(fineLavoriId, codiceFiscaleCommittente, .pagaInvia(fineLavoriId, codiceFiscaleCommittente,
importoBolli, importoSpese, currentURL, serviceContext); currentURL, serviceContext);
} }
public static it.tref.liferay.portos.bo.model.FineLavori updateEsito( 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,16 +101,14 @@ public class FineLavoriServiceWrapper implements FineLavoriService,
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _fineLavoriService.updateFineLavori(userId, fineLavoriId, return _fineLavoriService.updateFineLavori(userId, fineLavoriId,
intPraticaId, parziale, completata, dataFineLavori, intPraticaId, parziale, completata, dataFineLavori,
codiceFiscaleDelegato, normEsenteBollo, normEsenteSpese, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
normEsenteCollaudo, comunicazioneDirettoreLavori, comunicazioneDirettoreLavori);
richiestaAttestazione);
} }
@Override @Override
@ -146,14 +144,12 @@ public class FineLavoriServiceWrapper implements FineLavoriService,
@Override @Override
public it.tref.liferay.portos.bo.model.FineLavori pagaInvia( public it.tref.liferay.portos.bo.model.FineLavori pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _fineLavoriService.pagaInvia(fineLavoriId, return _fineLavoriService.pagaInvia(fineLavoriId,
codiceFiscaleCommittente, importoBolli, importoSpese, currentURL, codiceFiscaleCommittente, currentURL, serviceContext);
serviceContext);
} }
@Override @Override

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

@ -372,6 +372,11 @@ public interface PagamentoLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
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( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end) int start, int end)
@ -456,6 +461,13 @@ public interface PagamentoLocalService extends BaseLocalService,
public int countByIntPratica_Visible(long intPraticaId) public int countByIntPratica_Visible(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException; 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, public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) 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,134 +186,145 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
_methodParameterTypes30 = new String[] { "long", "java.lang.String" }; _methodParameterTypes30 = new String[] { "long", "java.lang.String" };
_methodName31 = "findByCommittente_Mezzo"; _methodName31 = "annullaPagamento";
_methodParameterTypes31 = new String[] { _methodParameterTypes31 = new String[] { "long" };
_methodName32 = "findByCommittente_Mezzo";
_methodParameterTypes32 = new String[] {
"java.lang.String", "java.lang.String", "int", "int" "java.lang.String", "java.lang.String", "int", "int"
}; };
_methodName32 = "countByCommittente_Mezzo"; _methodName33 = "countByCommittente_Mezzo";
_methodParameterTypes32 = new String[] { _methodParameterTypes33 = new String[] {
"java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String"
}; };
_methodName33 = "findByCommittente_Mezzo_Utilizzata"; _methodName34 = "findByCommittente_Mezzo_Utilizzata";
_methodParameterTypes33 = new String[] { _methodParameterTypes34 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String",
"int", "int" "int", "int"
}; };
_methodName34 = "countByCommittente_Mezzo_Utilizzata"; _methodName35 = "countByCommittente_Mezzo_Utilizzata";
_methodParameterTypes34 = new String[] { _methodParameterTypes35 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String", "java.lang.String"
}; };
_methodName35 = "findByMezzo_Utilizzata"; _methodName36 = "findByMezzo_Utilizzata";
_methodParameterTypes35 = new String[] { _methodParameterTypes36 = new String[] {
"java.lang.String", "java.lang.String", "int", "int" "java.lang.String", "java.lang.String", "int", "int"
}; };
_methodName36 = "findByOldPagamentoId"; _methodName37 = "findByOldPagamentoId";
_methodParameterTypes36 = new String[] { "long" }; _methodParameterTypes37 = new String[] { "long" };
_methodName37 = "countByMezzo_Utilizzata"; _methodName38 = "countByMezzo_Utilizzata";
_methodParameterTypes37 = new String[] { _methodParameterTypes38 = new String[] {
"java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String"
}; };
_methodName38 = "findByMezzo_Utilizzata_CreateDate"; _methodName39 = "findByMezzo_Utilizzata_CreateDate";
_methodParameterTypes38 = new String[] { _methodParameterTypes39 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date", "int", "java.lang.String", "java.lang.String", "java.util.Date", "int",
"int" "int"
}; };
_methodName39 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; _methodName40 = "countByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes39 = new String[] { _methodParameterTypes40 = new String[] {
"java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "boolean",
"java.util.Date" "java.util.Date"
}; };
_methodName40 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; _methodName41 = "findByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes40 = new String[] { _methodParameterTypes41 = new String[] {
"java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "boolean",
"java.util.Date", "int", "int" "java.util.Date", "int", "int"
}; };
_methodName41 = "findInPending"; _methodName42 = "findInPending";
_methodParameterTypes41 = new String[] { _methodParameterTypes42 = new String[] {
"java.util.Date", "int", "int", "java.util.Date", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator" "com.liferay.portal.kernel.util.OrderByComparator"
}; };
_methodName42 = "countInPending"; _methodName43 = "countInPending";
_methodParameterTypes42 = new String[] { "java.util.Date" }; _methodParameterTypes43 = new String[] { "java.util.Date" };
_methodName43 = "countByMezzo_Utilizzata_CreateDate"; _methodName44 = "countByMezzo_Utilizzata_CreateDate";
_methodParameterTypes43 = new String[] { _methodParameterTypes44 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date" "java.lang.String", "java.lang.String", "java.util.Date"
}; };
_methodName44 = "updateEmailPendingPagamento"; _methodName45 = "updateEmailPendingPagamento";
_methodParameterTypes44 = new String[] { "long", "boolean" };
_methodName45 = "countByClassPk";
_methodParameterTypes45 = new String[] { "long" }; _methodParameterTypes45 = new String[] { "long", "boolean" };
_methodName46 = "findByClassPk"; _methodName46 = "countByClassPk";
_methodParameterTypes46 = new String[] { "long" }; _methodParameterTypes46 = new String[] { "long" };
_methodName47 = "findByIntPratica"; _methodName47 = "findByClassPk";
_methodParameterTypes47 = new String[] { "long" }; _methodParameterTypes47 = new String[] { "long" };
_methodName48 = "countByIntPratica"; _methodName48 = "findByIntPratica";
_methodParameterTypes48 = new String[] { "long" }; _methodParameterTypes48 = new String[] { "long" };
_methodName49 = "findByIntPratica_Visible"; _methodName49 = "countByIntPratica";
_methodParameterTypes49 = new String[] { "long" }; _methodParameterTypes49 = new String[] { "long" };
_methodName50 = "countByIntPratica_Visible"; _methodName50 = "findByIntPratica_Visible";
_methodParameterTypes50 = new String[] { "long" }; _methodParameterTypes50 = new String[] { "long" };
_methodName51 = "updatePagamentoManuale"; _methodName51 = "countByIntPratica_Visible";
_methodParameterTypes51 = new String[] { "long" };
_methodName52 = "sostituisciPagamento";
_methodParameterTypes51 = new String[] { _methodParameterTypes52 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "com.liferay.portal.service.ServiceContext"
};
_methodName53 = "updatePagamentoManuale";
_methodParameterTypes53 = new String[] {
"long", "byte[][]", "java.lang.String", "long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName52 = "updatePagamentoManualeFromImport"; _methodName54 = "updatePagamentoManualeFromImport";
_methodParameterTypes52 = new String[] { _methodParameterTypes54 = new String[] {
"long", "byte[][]", "java.lang.String", "long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName53 = "fetchByOldPagamentoId"; _methodName55 = "fetchByOldPagamentoId";
_methodParameterTypes53 = new String[] { "long" }; _methodParameterTypes55 = new String[] { "long" };
_methodName54 = "updateOtf"; _methodName56 = "updateOtf";
_methodParameterTypes54 = new String[] { "long", "boolean" }; _methodParameterTypes56 = new String[] { "long", "boolean" };
} }
@Override @Override
@ -1406,6 +1417,40 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
return (it.tref.liferay.portos.bo.model.Pagamento)ClpSerializer.translateOutput(returnObj); 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 @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
@ -1414,8 +1459,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName31, returnObj = _invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes31, _methodParameterTypes32,
new Object[] { new Object[] {
ClpSerializer.translateInput(codiceFiscaleCommittente), ClpSerializer.translateInput(codiceFiscaleCommittente),
@ -1452,8 +1497,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName32, returnObj = _invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes32, _methodParameterTypes33,
new Object[] { new Object[] {
ClpSerializer.translateInput(codiceFiscaleCommittente), ClpSerializer.translateInput(codiceFiscaleCommittente),
@ -1487,8 +1532,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName33, returnObj = _invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes33, _methodParameterTypes34,
new Object[] { new Object[] {
ClpSerializer.translateInput(codiceFiscaleCommittente), ClpSerializer.translateInput(codiceFiscaleCommittente),
@ -1528,8 +1573,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName34, returnObj = _invokableLocalService.invokeMethod(_methodName35,
_methodParameterTypes34, _methodParameterTypes35,
new Object[] { new Object[] {
ClpSerializer.translateInput(codiceFiscaleCommittente), ClpSerializer.translateInput(codiceFiscaleCommittente),
@ -1564,8 +1609,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName35, returnObj = _invokableLocalService.invokeMethod(_methodName36,
_methodParameterTypes35, _methodParameterTypes36,
new Object[] { new Object[] {
ClpSerializer.translateInput(mezzo), ClpSerializer.translateInput(mezzo),
@ -1602,8 +1647,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName36, returnObj = _invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes36, new Object[] { oldPagamentoId }); _methodParameterTypes37, new Object[] { oldPagamentoId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -1631,8 +1676,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName37, returnObj = _invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes37, _methodParameterTypes38,
new Object[] { new Object[] {
ClpSerializer.translateInput(mezzo), ClpSerializer.translateInput(mezzo),
@ -1666,8 +1711,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName38, returnObj = _invokableLocalService.invokeMethod(_methodName39,
_methodParameterTypes38, _methodParameterTypes39,
new Object[] { new Object[] {
ClpSerializer.translateInput(mezzo), ClpSerializer.translateInput(mezzo),
@ -1707,8 +1752,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName39, returnObj = _invokableLocalService.invokeMethod(_methodName40,
_methodParameterTypes39, _methodParameterTypes40,
new Object[] { new Object[] {
ClpSerializer.translateInput(mezzo), ClpSerializer.translateInput(mezzo),
@ -1746,8 +1791,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName40, returnObj = _invokableLocalService.invokeMethod(_methodName41,
_methodParameterTypes40, _methodParameterTypes41,
new Object[] { new Object[] {
ClpSerializer.translateInput(mezzo), ClpSerializer.translateInput(mezzo),
@ -1789,8 +1834,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName41, returnObj = _invokableLocalService.invokeMethod(_methodName42,
_methodParameterTypes41, _methodParameterTypes42,
new Object[] { new Object[] {
ClpSerializer.translateInput(date), ClpSerializer.translateInput(date),
@ -1826,8 +1871,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName42, returnObj = _invokableLocalService.invokeMethod(_methodName43,
_methodParameterTypes42, _methodParameterTypes43,
new Object[] { ClpSerializer.translateInput(date) }); new Object[] { ClpSerializer.translateInput(date) });
} }
catch (Throwable t) { catch (Throwable t) {
@ -1856,8 +1901,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName43, returnObj = _invokableLocalService.invokeMethod(_methodName44,
_methodParameterTypes43, _methodParameterTypes44,
new Object[] { new Object[] {
ClpSerializer.translateInput(mezzo), ClpSerializer.translateInput(mezzo),
@ -1893,8 +1938,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName44, returnObj = _invokableLocalService.invokeMethod(_methodName45,
_methodParameterTypes44, _methodParameterTypes45,
new Object[] { pagamentoId, emailPending }); new Object[] { pagamentoId, emailPending });
} }
catch (Throwable t) { catch (Throwable t) {
@ -1926,8 +1971,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName45, returnObj = _invokableLocalService.invokeMethod(_methodName46,
_methodParameterTypes45, new Object[] { classPk }); _methodParameterTypes46, new Object[] { classPk });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -1955,8 +2000,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName46, returnObj = _invokableLocalService.invokeMethod(_methodName47,
_methodParameterTypes46, new Object[] { classPk }); _methodParameterTypes47, new Object[] { classPk });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -1984,8 +2029,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName47, returnObj = _invokableLocalService.invokeMethod(_methodName48,
_methodParameterTypes47, new Object[] { intPraticaId }); _methodParameterTypes48, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2012,8 +2057,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName48, returnObj = _invokableLocalService.invokeMethod(_methodName49,
_methodParameterTypes48, new Object[] { intPraticaId }); _methodParameterTypes49, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2041,8 +2086,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName49, returnObj = _invokableLocalService.invokeMethod(_methodName50,
_methodParameterTypes49, new Object[] { intPraticaId }); _methodParameterTypes50, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2069,8 +2114,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName50, returnObj = _invokableLocalService.invokeMethod(_methodName51,
_methodParameterTypes50, new Object[] { intPraticaId }); _methodParameterTypes51, new Object[] { intPraticaId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2091,6 +2136,49 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
return ((Integer)returnObj).intValue(); 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 @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
@ -2099,8 +2187,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.SystemException,
java.io.IOException { java.io.IOException {
try { try {
_invokableLocalService.invokeMethod(_methodName51, _invokableLocalService.invokeMethod(_methodName53,
_methodParameterTypes51, _methodParameterTypes53,
new Object[] { new Object[] {
pagamentoId, pagamentoId,
@ -2143,8 +2231,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
try { try {
_invokableLocalService.invokeMethod(_methodName52, _invokableLocalService.invokeMethod(_methodName54,
_methodParameterTypes52, _methodParameterTypes54,
new Object[] { new Object[] {
pagamentoId, pagamentoId,
@ -2183,8 +2271,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName53, returnObj = _invokableLocalService.invokeMethod(_methodName55,
_methodParameterTypes53, new Object[] { oldPagamentoId }); _methodParameterTypes55, new Object[] { oldPagamentoId });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2213,8 +2301,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName54, returnObj = _invokableLocalService.invokeMethod(_methodName56,
_methodParameterTypes54, new Object[] { pagamentoId, otf }); _methodParameterTypes56, new Object[] { pagamentoId, otf });
} }
catch (Throwable t) { catch (Throwable t) {
t = ClpSerializer.translateThrowable(t); t = ClpSerializer.translateThrowable(t);
@ -2348,4 +2436,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
private String[] _methodParameterTypes53; private String[] _methodParameterTypes53;
private String _methodName54; private String _methodName54;
private String[] _methodParameterTypes54; 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,6 +427,13 @@ public class PagamentoLocalServiceUtil {
return getService().updatePagamentoUtilizzata(pagamentoId, utilizzata); 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( public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end) int start, int end)
@ -566,6 +573,17 @@ public class PagamentoLocalServiceUtil {
return getService().countByIntPratica_Visible(intPraticaId); 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, public static void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) 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,6 +451,14 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
utilizzata); 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 @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
@ -605,6 +613,17 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
return _pagamentoLocalService.countByIntPratica_Visible(intPraticaId); 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 @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, 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,6 +64,25 @@ public interface PagamentoService extends BaseService, InvokableService {
java.lang.String[] parameterTypes, java.lang.Object[] arguments) java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable; 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, public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) 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,9 +32,29 @@ public class PagamentoServiceClp implements PagamentoService {
_methodParameterTypes1 = new String[] { "java.lang.String" }; _methodParameterTypes1 = new String[] { "java.lang.String" };
_methodName3 = "updatePagamentoManuale"; _methodName3 = "sostituisciPagamento";
_methodParameterTypes3 = new String[] { _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", "long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -90,6 +110,127 @@ public class PagamentoServiceClp implements PagamentoService {
throw new UnsupportedOperationException(); 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 @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
@ -98,8 +239,8 @@ public class PagamentoServiceClp implements PagamentoService {
com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.SystemException,
java.io.IOException { java.io.IOException {
try { try {
_invokableService.invokeMethod(_methodName3, _invokableService.invokeMethod(_methodName6,
_methodParameterTypes3, _methodParameterTypes6,
new Object[] { new Object[] {
pagamentoId, pagamentoId,
@ -142,4 +283,10 @@ public class PagamentoServiceClp implements PagamentoService {
private String[] _methodParameterTypes1; private String[] _methodParameterTypes1;
private String _methodName3; private String _methodName3;
private String[] _methodParameterTypes3; 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,6 +63,35 @@ public class PagamentoServiceUtil {
return getService().invokeMethod(name, parameterTypes, arguments); 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, public static void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) 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,6 +56,36 @@ public class PagamentoServiceWrapper implements PagamentoService,
return _pagamentoService.invokeMethod(name, parameterTypes, arguments); 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 @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, 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,25 +804,4 @@ public interface SoggettoLocalService extends BaseLocalService,
public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull( public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull(
long intPraticaId) long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.lang.String getDelegaPlaceholder();
public long savePdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public byte[] getPdfDelega(javax.portlet.PortletRequest request)
throws com.itextpdf.text.DocumentException,
com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.lang.String getAnteprimaDelega(
javax.portlet.PortletRequest request)
throws com.liferay.portal.kernel.exception.SystemException,
java.io.IOException;
} }

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

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

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

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

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

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

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

@ -26,6 +26,7 @@ import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
public abstract class PagamentiCommonUtil { public abstract class PagamentiCommonUtil {
@ -33,7 +34,7 @@ public abstract class PagamentiCommonUtil {
private static Log _log = LogFactoryUtil.getLog(PagamentiCommonUtil.class); private static Log _log = LogFactoryUtil.getLog(PagamentiCommonUtil.class);
@SuppressWarnings("serial") @SuppressWarnings("serial")
private static final Map<String, Integer> NUMERO_BOLLI_INTEGRAZIONE = new HashMap<String, Integer>(7) { private static final Map<String, Integer> numeroBolliIntegrazioneMap = new HashMap<String, Integer>(7) {
{ {
put(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, 0); put(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, 0);
put(TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE, 2); put(TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE, 2);
@ -93,9 +94,7 @@ public abstract class PagamentiCommonUtil {
if (normEsenteBollo) { if (normEsenteBollo) {
return new BigDecimal("0.00"); return new BigDecimal("0.00");
} }
} catch (PortalException e) { } catch (PortalException e) {}
// Ignore
}
int numeroBolli = getNumeroBolli(tipoIntegrazione); int numeroBolli = getNumeroBolli(tipoIntegrazione);
BigDecimal importoBolliBigDecimal = new BigDecimal(ConfigurazioneLocalServiceUtil.findByC_ChiaveString( BigDecimal importoBolliBigDecimal = new BigDecimal(ConfigurazioneLocalServiceUtil.findByC_ChiaveString(
companyId, ConfigurazioneConstants.IMPORTO_BOLLO)); companyId, ConfigurazioneConstants.IMPORTO_BOLLO));
@ -113,15 +112,23 @@ public abstract class PagamentiCommonUtil {
private static Integer getNumeroBolliByTipoIntegrazione(String tipoIntegrazione) { private static Integer getNumeroBolliByTipoIntegrazione(String tipoIntegrazione) {
return NUMERO_BOLLI_INTEGRAZIONE.get(tipoIntegrazione); return numeroBolliIntegrazioneMap.get(tipoIntegrazione);
} }
public static boolean existsSpeseIstruttoria(String tipoIntegrazione) { public static boolean existsSpeseIstruttoria(String tipoIntegrazione) {
return !TipoIntegrazioneUtil.COLLAUDO_PARZIALE.equals(tipoIntegrazione) return !TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.FINE_LAVORI.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.COLLAUDO_PARZIALE.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.COLLAUDO.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 { public static boolean pagamentiInitialized(long classPK, String className) throws PortalException, SystemException {
boolean normEsenteSpese = false; boolean normEsenteSpese = false;
@ -136,9 +143,9 @@ public abstract class PagamentiCommonUtil {
pagamentoIdBolli = dettPratica.getPagamentoIdBolli(); pagamentoIdBolli = dettPratica.getPagamentoIdBolli();
} else if (FineLavori.class.getName().equals(className)) { } else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK); FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK);
normEsenteSpese = fineLavori.isNormEsenteSpese(); normEsenteSpese = true;
normEsenteBollo = fineLavori.isNormEsenteBollo(); normEsenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = fineLavori.getPagamentoSpeseId(); pagamentoIdSpese = 0L;
pagamentoIdBolli = fineLavori.getPagamentoId(); pagamentoIdBolli = fineLavori.getPagamentoId();
} else if (Collaudo.class.getName().equals(className)) { } else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK); Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK);
@ -159,31 +166,31 @@ public abstract class PagamentiCommonUtil {
public static boolean pagamentiCompleted(long classPK, String className) throws PortalException, SystemException { public static boolean pagamentiCompleted(long classPK, String className) throws PortalException, SystemException {
boolean esenteSpese = false; boolean normEsenteSpese = false;
boolean esenteBollo = false; boolean normEsenteBollo = false;
long pagamentoIdSpese = 0L; long pagamentoIdSpese = 0L;
long pagamentoIdBolli = 0L; long pagamentoIdBolli = 0L;
if (DettPratica.class.getName().equals(className)) { if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK);
esenteSpese = dettPratica.isNormEsenteSpese(); normEsenteSpese = dettPratica.isNormEsenteSpese();
esenteBollo = dettPratica.isNormEsenteBollo(); normEsenteBollo = dettPratica.isNormEsenteBollo();
pagamentoIdSpese = dettPratica.getPagamentoIdOneri(); pagamentoIdSpese = dettPratica.getPagamentoIdOneri();
pagamentoIdBolli = dettPratica.getPagamentoIdBolli(); pagamentoIdBolli = dettPratica.getPagamentoIdBolli();
} else if (FineLavori.class.getName().equals(className)) { } else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK); FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK);
esenteSpese = fineLavori.isNormEsenteSpese(); normEsenteSpese = true;
esenteBollo = fineLavori.isNormEsenteBollo(); normEsenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = fineLavori.getPagamentoSpeseId(); pagamentoIdSpese = 0L;
pagamentoIdBolli = fineLavori.getPagamentoId(); pagamentoIdBolli = fineLavori.getPagamentoId();
} else if (Collaudo.class.getName().equals(className)) { } else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK); Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK);
esenteSpese = true; normEsenteSpese = true;
esenteBollo = collaudo.isNormEsenteBollo(); normEsenteBollo = collaudo.isNormEsenteBollo();
pagamentoIdSpese = 0L; pagamentoIdSpese = 0L;
pagamentoIdBolli = collaudo.getPagamentoId(); pagamentoIdBolli = collaudo.getPagamentoId();
} }
boolean completed = false; boolean completed = false;
if (!esenteBollo && !esenteSpese) { if (!normEsenteBollo && !normEsenteSpese) {
if (Validator.isNull(pagamentoIdBolli) || Validator.isNull(pagamentoIdSpese)) { if (Validator.isNull(pagamentoIdBolli) || Validator.isNull(pagamentoIdSpese)) {
return false; return false;
} }
@ -192,10 +199,10 @@ public abstract class PagamentiCommonUtil {
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata()) completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata())
&& PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata()); && PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata());
} else { } else {
if (esenteBollo && Validator.isNotNull(pagamentoIdSpese)) { if (normEsenteBollo && Validator.isNotNull(pagamentoIdSpese)) {
Pagamento pagamentoSpese = PagamentoLocalServiceUtil.getPagamento(pagamentoIdSpese); Pagamento pagamentoSpese = PagamentoLocalServiceUtil.getPagamento(pagamentoIdSpese);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata()); completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata());
} else if (esenteSpese && Validator.isNotNull(pagamentoIdBolli)) { } else if (normEsenteSpese && Validator.isNotNull(pagamentoIdBolli)) {
Pagamento pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(pagamentoIdBolli); Pagamento pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(pagamentoIdBolli);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata()); 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,7 +495,6 @@ public class ValidazionePraticaUtil {
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
long intPraticaId = dettPratica.getIntPraticaId(); long intPraticaId = dettPratica.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
List<String> notCompleted = new ArrayList<>(); List<String> notCompleted = new ArrayList<>();
boolean titolare = SoggettiUtil.isTitolareInSoggetti(intPraticaId); boolean titolare = SoggettiUtil.isTitolareInSoggetti(intPraticaId);
if (!titolare) { if (!titolare) {
@ -585,7 +584,7 @@ public class ValidazionePraticaUtil {
if (!collaudatoreNotRequired && !collaudatore) { if (!collaudatoreNotRequired && !collaudatore) {
notCompleted.add("gc-soggetto-" + TipoSoggettoUtil.COLLAUDATORE + "-not-present"); notCompleted.add("gc-soggetto-" + TipoSoggettoUtil.COLLAUDATORE + "-not-present");
} else if (dettPratica.getNormLavoriInProprio() && (dettPratica.getTcInCA() || dettPratica.getTcInAcciaio()) } else if (dettPratica.getNormLavoriInProprio() && (dettPratica.getTcInCA() || dettPratica.getTcInAcciaio())
&& (numeroCollaudatori < 3) && !Constants.PROCEDURA_C.equalsIgnoreCase(intPratica.getTipoProcedura())) { && (numeroCollaudatori < 3)) {
notCompleted.add("gc-terna-collaudatori-not-present"); notCompleted.add("gc-terna-collaudatori-not-present");
} }
if (!committente) { if (!committente) {
@ -971,11 +970,11 @@ public class ValidazionePraticaUtil {
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A29)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A29)) {
if (!signatures.contains(dettPratica.getUserName().toLowerCase())) { if (!signatures.contains(dettPratica.getUserName().toLowerCase())) {
List<String> firmeCommittenti = getSignaturePerSubject(intPraticaId, signatures, notCompleted.add("A29 firma del titolare digitale richiesta");
TipoSoggettoUtil.COMMITTENTE, doc.getClassPk());
if (firmeCommittenti.isEmpty()) {
notCompleted.add("A29 firma del titolare digitale o del committente richiesta");
} }
if (!isAllRequiredValid(codiceDoc, intPraticaId, signatures, TipoSoggettoUtil.getAllSubjects(),
doc)) {
notCompleted.add(codiceDoc + " firme obbligatorie mancanti");
} }
} else if (isEnoughOne && signatures.isEmpty()) { } else if (isEnoughOne && signatures.isEmpty()) {
// Return false if one sign is enought but there are no signs for this subjectType // Return false if one sign is enought but there are no signs for this subjectType

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

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

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

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

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

@ -502,20 +502,13 @@ create table portos_bo_FineLavori (
dataEffettuazione DATE null, dataEffettuazione DATE null,
dataFineLavori DATE null, dataFineLavori DATE null,
normEsenteBollo BOOLEAN, normEsenteBollo BOOLEAN,
normEsenteSpese BOOLEAN,
normEsenteCollaudo BOOLEAN, normEsenteCollaudo BOOLEAN,
comunicazioneDirettoreLavori STRING null, comunicazioneDirettoreLavori STRING null,
pagamentoId LONG, pagamentoId LONG,
pagamentoSpeseId LONG,
codicePagamento VARCHAR(75) null, codicePagamento VARCHAR(75) null,
codicePagamentoSpese VARCHAR(75) null,
causalePagamento VARCHAR(75) null, causalePagamento VARCHAR(75) null,
causalePagamentoSpese VARCHAR(75) null,
mezzoPagamento VARCHAR(75) null, mezzoPagamento VARCHAR(75) null,
mezzoPagamentoSpese VARCHAR(75) null, importoBolli VARCHAR(75) null
importoBolli VARCHAR(75) null,
importoSpese VARCHAR(75) null,
richiestaAttestazione BOOLEAN
); );
create table portos_bo_HistoryWorkflowAction ( create table portos_bo_HistoryWorkflowAction (
@ -560,18 +553,6 @@ create table portos_bo_InfoFascicolo (
alreadyImported BOOLEAN alreadyImported BOOLEAN
); );
create table portos_bo_InizioLavori (
inizioLavoriId LONG not null primary key,
companyId LONG,
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
modifiedDate DATE null,
groupId LONG,
intPraticaId LONG,
dataInizioLavori DATE null
);
create table portos_bo_IntPratica ( create table portos_bo_IntPratica (
uuid_ VARCHAR(75) null, uuid_ VARCHAR(75) null,
intPraticaId LONG not null primary key, intPraticaId LONG not null primary key,

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

@ -555,20 +555,13 @@
<property name="dataEffettuazione" type="org.hibernate.type.TimestampType" /> <property name="dataEffettuazione" type="org.hibernate.type.TimestampType" />
<property name="dataFineLavori" 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="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="normEsenteCollaudo" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="comunicazioneDirettoreLavori" type="com.liferay.portal.dao.orm.hibernate.StringType" /> <property name="comunicazioneDirettoreLavori" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="pagamentoId" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <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="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="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="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="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>
<class name="it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl" table="portos_bo_HistoryWorkflowAction"> <class name="it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl" table="portos_bo_HistoryWorkflowAction">
<cache usage="read-write" /> <cache usage="read-write" />

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

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

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

@ -704,20 +704,13 @@
<temporal>TIMESTAMP</temporal> <temporal>TIMESTAMP</temporal>
</basic> </basic>
<basic name="normEsenteBollo" /> <basic name="normEsenteBollo" />
<basic name="normEsenteSpese" />
<basic name="normEsenteCollaudo" /> <basic name="normEsenteCollaudo" />
<basic name="comunicazioneDirettoreLavori" /> <basic name="comunicazioneDirettoreLavori" />
<basic name="pagamentoId" /> <basic name="pagamentoId" />
<basic name="pagamentoSpeseId" />
<basic name="codicePagamento" /> <basic name="codicePagamento" />
<basic name="codicePagamentoSpese" />
<basic name="causalePagamento" /> <basic name="causalePagamento" />
<basic name="causalePagamentoSpese" />
<basic name="mezzoPagamento" /> <basic name="mezzoPagamento" />
<basic name="mezzoPagamentoSpese" />
<basic name="importoBolli" /> <basic name="importoBolli" />
<basic name="importoSpese" />
<basic name="richiestaAttestazione" />
<transient name="modelAttributes" /> <transient name="modelAttributes" />
<transient name="primaryKey" /> <transient name="primaryKey" />
<transient name="primaryKeyObj" /> <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-03 = Direttore Lavori
label-asseverazione-tipologia-04 = Ditta label-asseverazione-tipologia-04 = Ditta
label-asseverazione-tipologia-05 = Geologo label-asseverazione-tipologia-05 = Geologo
label-asseverazione-tipologia-06 = Progettista / Tecnico Verificatore label-asseverazione-tipologia-06 = Progettista
label-asseverazione-status-AS = Assegnata label-asseverazione-status-AS = Assegnata
label-asseverazione-status-ES = Eseguita label-asseverazione-status-ES = Eseguita
@ -85,19 +85,14 @@ gc-soggetto-02 = Committente
gc-soggetto-03 = Direttore Lavori gc-soggetto-03 = Direttore Lavori
gc-soggetto-04 = Ditta Costruttrice gc-soggetto-04 = Ditta Costruttrice
gc-soggetto-05 = Geologo gc-soggetto-05 = Geologo
gc-soggetto-06 = Progettista / Tecnico Verificatore gc-soggetto-06 = Progettista
delega-soggetto-01 = Collaudatore
delega-soggetto-03 = Direttore Lavori
delega-soggetto-05 = Geologo
delega-soggetto-06 = Progettista
gc-soggetti-01 = Collaudatori gc-soggetti-01 = Collaudatori
gc-soggetti-02 = Committenti gc-soggetti-02 = Committenti
gc-soggetti-03 = Direttori Lavori gc-soggetti-03 = Direttori Lavori
gc-soggetti-04 = Ditte Costruttrici gc-soggetti-04 = Ditte Costruttrici
gc-soggetti-05 = Geologi gc-soggetti-05 = Geologi
gc-soggetti-06 = Progettisti / Tecnici Verificatori gc-soggetti-06 = Progettisti
gc-soggetto-00-not-present = Titolare Digitale non presente tra i soggetti gc-soggetto-00-not-present = Titolare Digitale non presente tra i soggetti
gc-soggetto-01-not-present = Collaudatore non presente tra i soggetti gc-soggetto-01-not-present = Collaudatore non presente tra i soggetti
@ -105,7 +100,7 @@ gc-soggetto-02-not-present = Committente non presente tra i soggetti
gc-soggetto-03-not-present = Direttore Lavori non presente tra i soggetti gc-soggetto-03-not-present = Direttore Lavori non presente tra i soggetti
gc-soggetto-04-not-present = Ditta non presente tra i soggetti gc-soggetto-04-not-present = Ditta non presente tra i soggetti
gc-soggetto-05-not-present = Geologo non presente tra i soggetti gc-soggetto-05-not-present = Geologo non presente tra i soggetti
gc-soggetto-06-not-present = Progettista / Tecnico Verificatore non presente tra i soggetti gc-soggetto-06-not-present = Progettista non presente tra i soggetti
gc-terna-collaudatori-not-present = È necessario censire i tre collaudatori della terna gc-terna-collaudatori-not-present = È necessario censire i tre collaudatori della terna
gc-soggetto-01-principale-not-present = Collaudatore principale non selezionato gc-soggetto-01-principale-not-present = Collaudatore principale non selezionato
@ -113,7 +108,7 @@ gc-soggetto-02-principale-not-present = Committente principale non selezionato
gc-soggetto-03-principale-not-present = Direttore Lavori principale non selezionato gc-soggetto-03-principale-not-present = Direttore Lavori principale non selezionato
gc-soggetto-04-principale-not-present = Ditta principale non selezionato gc-soggetto-04-principale-not-present = Ditta principale non selezionato
gc-soggetto-05-principale-not-present = Geologo principale non selezionato gc-soggetto-05-principale-not-present = Geologo principale non selezionato
gc-soggetto-06-principale-not-present = Progettista / Tecnico Verificatore principale non selezionato gc-soggetto-06-principale-not-present = Progettista principale non selezionato
gc-soggetti-not-completed = Alcuni soggetti non validi gc-soggetti-not-completed = Alcuni soggetti non validi
@ -242,7 +237,6 @@ norm-lavori-in-proprio = il committente esegue i lavori in proprio (IN ECONOMIA)
lavori-pubblici = lavori pubblici 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-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-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 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 norm-art3com3 = Possono essere omessi i seguenti allegati
@ -838,7 +832,7 @@ label-documenti-tipologia-A15 = Relazione Modellazione Sismica
label-documenti-tipologia-A15-old = Certificazione del rispetto delle norme tecniche (in bollo) redatta dal tecnico rilevatore (solo per opere conformi) label-documenti-tipologia-A15-old = Certificazione del rispetto delle norme tecniche (in bollo) redatta dal tecnico rilevatore (solo per opere conformi)
label-documenti-tipologia-A16-old = Certificato di collaudo statico in bollo (se dovuto) label-documenti-tipologia-A16-old = Certificato di collaudo statico in bollo (se dovuto)
label-documenti-tipologia-A17 = Terna Collaudatori label-documenti-tipologia-A17 = Terna Collaudatori
label-documenti-tipologia-A29 = Dichiarazioni del committente e/o del titolare digitale su lavori in economia label-documenti-tipologia-A29 = Dichiarazione impresa
label-documenti-tipologia-A98 = Delega al titolare digitale e lettere di incarico ai professionisti label-documenti-tipologia-A98 = Delega al titolare digitale e lettere di incarico ai professionisti
label-documenti-tipologia-A99 = Altri label-documenti-tipologia-A99 = Altri
label-documenti-tipologia-dnf = Pratica non firmata label-documenti-tipologia-dnf = Pratica non firmata
@ -856,7 +850,7 @@ label-documenti-tipologia-Afl = Altri
label-documenti-tipologia-111VS = Documento Variazione Soggetto - Portos 1 label-documenti-tipologia-111VS = Documento Variazione Soggetto - Portos 1
label-documenti-tipologia-APM = Ricevuta Pagamento Manuale label-documenti-tipologia-APM = Ricevuta Pagamento Manuale
label-documenti-tipologia-AGL = Certificato di regolare esecuzione / Relazione a strutture ultimate label-documenti-tipologia-AGL = Giornale dei Lavori / Relazione a strutture ultimate - Fine Lavori
label-documenti-tipologia-ACC = Certificato Calcestruzzo label-documenti-tipologia-ACC = Certificato Calcestruzzo
label-documenti-tipologia-ACA = Certificato Acciaio label-documenti-tipologia-ACA = Certificato Acciaio
label-documenti-tipologia-ACL = Certificato Legno label-documenti-tipologia-ACL = Certificato Legno
@ -916,7 +910,6 @@ pagamento-utilizzata-07 = Sostituito
label-pagamenti-spese-istruttoria = Spese Istruttoria label-pagamenti-spese-istruttoria = Spese Istruttoria
label-pagamenti-spese-bolli = Bolli label-pagamenti-spese-bolli = Bolli
label-pagamenti-diritti = Diritti fissi
label-pagamenti-nuove-costruzioni = Nuove costruzioni label-pagamenti-nuove-costruzioni = Nuove costruzioni
label-pagamenti-adeguamento-sismico = Nuove costruzioni / Adeguamento sismico label-pagamenti-adeguamento-sismico = Nuove costruzioni / Adeguamento sismico
label-pagamenti-miglioramento-sismico = Intervento di miglioramento sismico label-pagamenti-miglioramento-sismico = Intervento di miglioramento sismico
@ -939,28 +932,19 @@ label-payment-otf-rigeneration = Solo nel caso in cui si è sicuri che il pagame
label-pagamento = Pagamento label-pagamento = Pagamento
label-pagamento-spese = Pagamento Spese Istruttoria label-pagamento-spese = Pagamento Spese Istruttoria
label-pagamento-bolli = Pagamento Bolli 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-iris = Il pagamento è stato correttamente inizializzato. Cliccare sul pulsante per procedere al saldo dell'importo
text-pagamento-manuale-oneri = Allegare file comprovante il pagamento text-pagamento-manuale-oneri = text-pagamento-manuale-iris
text-pagamento-manuale-bolli = Allegare file comprovante il pagamento text-pagamento-manuale-bolli = text-pagamento-manuale-bolli
sostituisci-pagamento-oneri = Cambia modalità pagamento Spese Istruttoria sostituisci-pagamento-oneri = Cambia modalità pagamento Spese Istruttoria
sostituisci-pagamento-bolli = Cambia modalità pagamento Bolli sostituisci-pagamento-bolli = Cambia modalità pagamento Bolli
text-pagamento-completato-spese = Pagamento Spese Istruttoria <strong class="txt-green">completato</strong> text-pagamento-completato-spese = Pagamento Spese Istruttoria <strong class="txt-green">completato</strong>
text-pagamento-nonpagabile-spese = Pagamento Spese Istruttoria <strong class="txt-red">non pagabile</strong> text-pagamento-nonpagabile-spese = Pagamento Spese Istruttoria <strong class="txt-red">non pagabile</strong>
text-pagamento-rifiutato-spese = Pagamento Spese Istruttoria <strong class="txt-red">rifiutato</strong> text-pagamento-rifiutato-spese = Pagamento Spese Istruttoria <strong class="txt-red">rifiutato</strong>
text-pagamento-annullato-spese = Pagamento Spese Istruttoria <strong class="txt-red">annullato</strong>. Contattare il supporto. text-pagamento-annullato-spese = Pagamento Spese Istruttoria <strong class="txt-red">annullato</strong>. Contattare il supporto..
text-pagamento-completato-bolli = Pagamento Bolli <strong class="txt-green">completato</strong> text-pagamento-completato-bolli = Pagamento Bolli <strong class="txt-green">completato</strong>
text-pagamento-nonpagabile-bolli = Pagamento Bolli <strong class="txt-red">non pagabile</strong> text-pagamento-nonpagabile-bolli = Pagamento Bolli <strong class="txt-red">non pagabile</strong>
text-pagamento-rifiutato-bolli = Pagamento Bolli <strong class="txt-red">rifiutato</strong> text-pagamento-rifiutato-bolli = Pagamento Bolli <strong class="txt-red">rifiutato</strong>
text-pagamento-annullato-bolli = Pagamento Bolli <strong class="txt-red">annullato</strong>. Contattare il supporto. text-pagamento-annullato-bolli = Pagamento Bolli <strong class="txt-red">annullato</strong>. Contattare il supporto..
text-pagamento-completato-diritti-fissi = Pagamento Diritti Fissi <strong class="txt-green">completato</strong>
text-pagamento-nonpagabile-diritti-fissi = Pagamento Diritti Fissi <strong class="txt-red">non pagabile</strong>
text-pagamento-rifiutato-diritti-fissi = Pagamento Diritti Fissi <strong class="txt-red">rifiutato</strong>
text-pagamento-annullato-diritti-fissi = Pagamento Diritti Fissi <strong class="txt-red">annullato</strong>. Contattare il supporto.
text-rigenera-pagamento = Rigenera text-rigenera-pagamento = Rigenera
text-rigenera-pagamento-admin = Rigenera text-rigenera-pagamento-admin = Rigenera
text-annulla-pagamento-admin = Annulla text-annulla-pagamento-admin = Annulla
@ -989,23 +973,21 @@ fl-data-fine = Data effettuazione fine lavori
fl-data-fine-early = Data effettuazione fine lavori non può essere antecedente la data di inizio lavori fl-data-fine-early = Data effettuazione fine lavori non può essere antecedente la data di inizio lavori
fl-esente-bollo = esente da bollo ai sensi di D.P.R. 26/10/1972 n. 642 e s.m.i. fl-esente-bollo = esente da bollo ai sensi di D.P.R. 26/10/1972 n. 642 e s.m.i.
fl-dichiaraz-direttore = Il sottoscritto {0} {1}, in qualità di Direttore dei lavori principale dichiara che in data sopra indicata sono state ultimate le opere relative al progetto in oggetto.<br>Le opere sono state realizzate secondo il progetto autorizzato / depositato ed i materiali utilizzati sono conformi a quanto dichiarato<br>Con la presente si certifica altresì che le opere realizzate sono conformi alle prescrizioni antisismiche della vigente normativa nonchè, laddove previsto, alle prescrizioni relative alle opere di conglomerato cementizio armato, normale e precompresso, ed a struttura metallica di cui alla parte II, capo II, del D.P.R. 380/01. fl-dichiaraz-direttore = Il sottoscritto {0} {1}, in qualità di Direttore dei lavori principale dichiara che in data sopra indicata sono state ultimate le opere relative al progetto in oggetto.<br>Le opere sono state realizzate secondo il progetto autorizzato / depositato ed i materiali utilizzati sono conformi a quanto dichiarato<br>Con la presente si certifica altresì che le opere realizzate sono conformi alle prescrizioni antisismiche della vigente normativa nonchè, laddove previsto, alle prescrizioni relative alle opere di conglomerato cementizio armato, normale e precompresso, ed a struttura metallica di cui alla parte II, capo II, del D.P.R. 380/01.
fl-firma-direttore = Relazione di Fine Lavori e Certificato di Rispondenza, ai sensi dell''art. 93 del D.P.R. 380/2001 sottoscritti dal Direttore dei Lavori {0} {1} - {2} ai sensi del D.Lgs. 82/2005. fl-firma-direttore = Relazione di Fine Lavori e Certificato di Rispondenza, ai sensi dell'art. 93 del D.P.R. 380/2001 sottoscritti dal Direttore dei Lavori {0} {1} - {2} ai sensi del D.Lgs. 82/2005.
fl-varianti = Durante il corso dei lavori sono state presentate le seguenti varianti e/o integrazioni al progetto fl-varianti = Durante il corso dei lavori sono state presentate le seguenti varianti e/o integrazioni al progetto
fl-table-variante = Variante fl-table-variante = Variante
fl-table-integrazione = Integrazioni fl-table-integrazione = Integrazioni
fl-table-parziale = Fine lavori parziale fl-table-parziale = Fine lavori parziale
fl-allegati = Allegati fl-allegati = Allegati
fl-altro = Il Direttore dei lavori comunica inoltre: fl-altro = Il Direttore dei lavori comunica inoltre:
#fl-collaudo = Trattandosi di opere di riparazione/intervento locale eseguite ai sensi del punto 8.4.3 del D.M. 14.01.2008 il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo delle opere
#bug id #1
fl-collaudo = Trattandosi di opere di riparazione/intervento locale eseguite ai sensi del punto 8.4 del D.M. 17.01.2018 il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo delle opere fl-collaudo = Trattandosi di opere di riparazione/intervento locale eseguite ai sensi del punto 8.4 del D.M. 17.01.2018 il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo delle opere
fl-parziale-not-possibile = Fine Lavori Parziale non possibile fl-parziale-not-possibile = Fine Lavori Parziale non possibile
no-varianti-integrazioni = Nessuna Variante o Integrazione presentata al momento no-varianti-integrazioni = Nessuna Variante o Integrazione presentata al momento
no-fine-lavori-parziali = Nessuna Fine Lavori Parziale presentata al momento no-fine-lavori-parziali = Nessuna Fine Lavori Parziale presentata al momento
fl-attestazione = Si chiede il rilascio dell’attestazione di deposito degli atti
fl-attestazione-note = Il rilascio dell’attestazione non deve essere richiesto per interventi e nuove costruzioni con \
struttura diversa da cemento armato e acciaio che richiedono il deposito del collaudo.<br><b>Ove non è richiesta \
l’attestazione di deposito del fine lavori inserire una dichiarazione ai sensi del DPR 445 del 2020.
## Collaudo ## ## Collaudo ##
col = Collaudo col = Collaudo
@ -1013,7 +995,7 @@ col-tipo = Tipologia Collaudo
col-prov = Provincia col-prov = Provincia
col-comune = Comune col-comune = Comune
col-sismica = Zona sismica col-sismica = Zona sismica
col-pericolosita = Fascia pericolosità col-pericolosita = Fascia paricolosità
col-range = Range Ag col-range = Range Ag
col-desc-interv = Descrizione Intervento col-desc-interv = Descrizione Intervento
col-commit = Committente/i col-commit = Committente/i

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

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

@ -64,7 +64,6 @@ import com.liferay.portal.kernel.cache.CacheRegistryUtil;
import com.liferay.portal.kernel.cache.MultiVMPoolUtil; import com.liferay.portal.kernel.cache.MultiVMPoolUtil;
import com.liferay.portal.kernel.cache.SingleVMPoolUtil; import com.liferay.portal.kernel.cache.SingleVMPoolUtil;
import com.liferay.portal.kernel.dao.jdbc.DataAccess; 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.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
@ -165,9 +164,6 @@ public class ManutenzioneDatabase {
ZoneSismicheUtil zone = new ZoneSismicheUtil(serviceContext); ZoneSismicheUtil zone = new ZoneSismicheUtil(serviceContext);
esitoLog(esito, zone.aggiornaComuni(companyId)); esitoLog(esito, zone.aggiornaComuni(companyId));
} }
if (mode.contains("!Riduzione!")) {
esitoLog(esito, riduzione(companyId, mode.substring(11)));
}
if (mode.contains("!Pulisci!")) { if (mode.contains("!Pulisci!")) {
if (mode.contains("!DocumentLibrary!")) { if (mode.contains("!DocumentLibrary!")) {
esitoLog(esito, puliziaDocumentLibrary(companyId)); esitoLog(esito, puliziaDocumentLibrary(companyId));
@ -184,9 +180,9 @@ public class ManutenzioneDatabase {
esitoLog(esito, svuotaIntPraticaDettPratica()); esitoLog(esito, svuotaIntPraticaDettPratica());
} }
if (mode.contains("!User!")) { if (mode.contains("!User!")) {
esito.addAll(svuotaUser(companyId)); esitoLog(esito, svuotaUser(companyId));
} }
esito.addAll(svuotaDatabase(companyId)); esitoLog(esito, svuotaDatabase(companyId));
if (mode.contains("!Reset!")) { if (mode.contains("!Reset!")) {
ConfigurazioneLocalServiceUtil.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext); ConfigurazioneLocalServiceUtil.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext);
} }
@ -199,30 +195,7 @@ public class ManutenzioneDatabase {
return esito; 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() { private static void clearCache() {
try { try {
SingleVMPoolUtil.clear(); SingleVMPoolUtil.clear();
MultiVMPoolUtil.clear(); MultiVMPoolUtil.clear();
@ -236,7 +209,7 @@ public class ManutenzioneDatabase {
List<String> esito = new ArrayList<>(); List<String> esito = new ArrayList<>();
esitoLog(esito, svuotaDettPratica()); esitoLog(esito, svuotaDettPratica());
esitoLog(esito, svuotaAllegatoManuale()); esitoLog(esito, svuotaAllegatoManuale());
// esitoLog(esito, svuotaAssetEntry(companyId)); esitoLog(esito, svuotaAssetEntry(companyId));
esitoLog(esito, svuotaAsseverazione()); esitoLog(esito, svuotaAsseverazione());
esitoLog(esito, svuotaAvviso(companyId)); esitoLog(esito, svuotaAvviso(companyId));
esitoLog(esito, svuotaCollaudo()); esitoLog(esito, svuotaCollaudo());
@ -250,29 +223,28 @@ public class ManutenzioneDatabase {
esitoLog(esito, svuotaFineLavori()); esitoLog(esito, svuotaFineLavori());
esitoLog(esito, svuotaGroup(companyId)); esitoLog(esito, svuotaGroup(companyId));
esitoLog(esito, svuotaHistoryWorkflowAction()); esitoLog(esito, svuotaHistoryWorkflowAction());
// esitoLog(esito, svuotaMBDiscussion(companyId)); esitoLog(esito, svuotaMBDiscussion(companyId));
// esitoLog(esito, svuotaMBMessage(companyId)); esitoLog(esito, svuotaMBMessage(companyId));
// esitoLog(esito, svuotaMBThread()); esitoLog(esito, svuotaMBThread());
esitoLog(esito, svuotaPagamento(companyId)); esitoLog(esito, svuotaPagamento(companyId));
esitoLog(esito, svuotaParereGeologo()); esitoLog(esito, svuotaParereGeologo());
esitoLog(esito, svuotaRatingsEntry()); esitoLog(esito, svuotaRatingsEntry());
esitoLog(esito, svuotaRatingsStats(companyId)); esitoLog(esito, svuotaRatingsStats(companyId));
// esitoLog(esito, svuotaResourcePermission(companyId)); esitoLog(esito, svuotaResourcePermission(companyId));
esitoLog(esito, svuotaSoggetto()); esitoLog(esito, svuotaSoggetto());
esitoLog(esito, svuotaSorteggio()); esitoLog(esito, svuotaSorteggio());
esitoLog(esito, svuotaStoricoSoggettoPratica()); esitoLog(esito, svuotaStoricoSoggettoPratica());
esitoLog(esito, svuotaSyncDLObject()); esitoLog(esito, svuotaSyncDLObject());
esitoLog(esito, svuotaSystemEvent(companyId)); esitoLog(esito, svuotaSystemEvent(companyId));
esitoLog(esito, svuotaTempistica()); esitoLog(esito, svuotaTempistica());
esito.addAll(svuotaUser(companyId));
esitoLog(esito, svuotaWorkflowInstance()); esitoLog(esito, svuotaWorkflowInstance());
return esito; return esito;
} }
private static List<String> puliziaDocumentLibrary(long companyId) { private static List<String> puliziaDocumentLibrary(long companyId) {
List<String> esito = new ArrayList<>(); List<String> esito = new ArrayList<>();
Set<String> parentFolderNames = new HashSet<>(); Set<String> parentFolderNames = new HashSet<>();
try { try {
long allegatiFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, long allegatiFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId,
ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); ConfigurazioneConstants.ATTACHMENT_FOLDER_ID);
@ -282,6 +254,7 @@ public class ManutenzioneDatabase {
List<DLFolder> folders; List<DLFolder> folders;
do { do {
folders = DLFolderLocalServiceUtil.getDLFolders(start, start + SLICE); folders = DLFolderLocalServiceUtil.getDLFolders(start, start + SLICE);
int rimossi = 0;
totali += folders.size(); totali += folders.size();
for (DLFolder folder : folders) { for (DLFolder folder : folders) {
DLFolder parent = folder.getParentFolder(); DLFolder parent = folder.getParentFolder();
@ -306,6 +279,7 @@ public class ManutenzioneDatabase {
_log.info("Cancello la cartella " + folder.getName()); _log.info("Cancello la cartella " + folder.getName());
DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); DLAppLocalServiceUtil.deleteFolder(folder.getFolderId());
cancellati++; cancellati++;
rimossi++;
} }
} else { } else {
_log.info("Mantengo la cartella " + folder.getName()); _log.info("Mantengo la cartella " + folder.getName());
@ -320,13 +294,14 @@ public class ManutenzioneDatabase {
_log.info("Cancello la cartella " + folder.getName()); _log.info("Cancello la cartella " + folder.getName());
DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); DLAppLocalServiceUtil.deleteFolder(folder.getFolderId());
cancellati++; cancellati++;
rimossi++;
} }
} else { } else {
_log.info("Non allegato " + folder.getName() + " in " + parent.getName()); _log.info("Non allegato " + folder.getName() + " in " + parent.getName());
} }
} }
} }
start += folders.size(); start += folders.size() - rimossi;
} while (folders.size() > 0); } while (folders.size() > 0);
esitoLog(esito, "Analizzate " + totali + " cartelle, cancellate " + cancellati); esitoLog(esito, "Analizzate " + totali + " cartelle, cancellate " + cancellati);
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
@ -339,7 +314,6 @@ public class ManutenzioneDatabase {
} }
private static List<Long> avvisiFileEntries() throws SystemException { private static List<Long> avvisiFileEntries() throws SystemException {
List<Long> result = new ArrayList<>(); List<Long> result = new ArrayList<>();
int start = 0; int start = 0;
List<Avviso> avvisi = null; List<Avviso> avvisi = null;
@ -356,13 +330,13 @@ public class ManutenzioneDatabase {
} }
private static String puliziaAllegati(long companyId, long folderId) throws SystemException, PortalException { private static String puliziaAllegati(long companyId, long folderId) throws SystemException, PortalException {
List<Long> avvisiFileEntries = avvisiFileEntries(); List<Long> avvisiFileEntries = avvisiFileEntries();
long repositoryId = DLAppLocalServiceUtil.getFolder(folderId).getRepositoryId(); long repositoryId = DLAppLocalServiceUtil.getFolder(folderId).getRepositoryId();
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<FileEntry> fileEntries = null; List<FileEntry> fileEntries = null;
do { do {
int rimossi = 0;
fileEntries = DLAppServiceUtil.getFileEntries(repositoryId, folderId, start, start + SLICE); fileEntries = DLAppServiceUtil.getFileEntries(repositoryId, folderId, start, start + SLICE);
for (FileEntry fileEntry : fileEntries) { for (FileEntry fileEntry : fileEntries) {
String[] parti = StringUtil.split(fileEntry.getTitle().replaceAll("\\.p7m$", StringPool.BLANK), '_'); String[] parti = StringUtil.split(fileEntry.getTitle().replaceAll("\\.p7m$", StringPool.BLANK), '_');
@ -392,6 +366,7 @@ public class ManutenzioneDatabase {
if (!esiste(DETTPRATICA_CLASS_NAME, id1)) { if (!esiste(DETTPRATICA_CLASS_NAME, id1)) {
DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId());
cancellati++; cancellati++;
rimossi++;
} }
break; break;
case "AI_B": case "AI_B":
@ -402,6 +377,7 @@ public class ManutenzioneDatabase {
if (!avvisiFileEntries.contains(fileEntry.getFileEntryId())) { if (!avvisiFileEntries.contains(fileEntry.getFileEntryId())) {
DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId());
cancellati++; cancellati++;
rimossi++;
} }
break; break;
default: default:
@ -413,17 +389,17 @@ public class ManutenzioneDatabase {
_log.info("Nome sconosciuto " + fileEntry.getTitle()); _log.info("Nome sconosciuto " + fileEntry.getTitle());
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (fileEntries.size() > 0); } while (fileEntries.size() > 0);
return "Cancellati " + cancellati + " File orfani"; return "Cancellati " + cancellati + " File orfani";
} }
private static String svuotaAllegatoManuale() throws SystemException { private static String svuotaAllegatoManuale() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<AllegatoManuale> allegatiManuali = null; List<AllegatoManuale> allegatiManuali = null;
do { do {
int rimossi = 0;
allegatiManuali = AllegatoManualeLocalServiceUtil.getAllegatoManuales(start, start + SLICE); allegatiManuali = AllegatoManualeLocalServiceUtil.getAllegatoManuales(start, start + SLICE);
for (AllegatoManuale allegatoManuale : allegatiManuali) { for (AllegatoManuale allegatoManuale : allegatiManuali) {
if (!esiste(INTPRATICA_CLASS_NAME, allegatoManuale.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, allegatoManuale.getIntPraticaId())
@ -432,19 +408,20 @@ public class ManutenzioneDatabase {
deleteFileEntry(allegatoManuale.getFileEntryId()); deleteFileEntry(allegatoManuale.getFileEntryId());
AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(allegatoManuale); AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(allegatoManuale);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (allegatiManuali.size() > 0); } while (allegatiManuali.size() > 0);
return "Cancellati " + cancellati + " AllegatoManuale"; return "Cancellati " + cancellati + " AllegatoManuale";
} }
private static String svuotaAssetEntry(long companyId) throws SystemException { private static String svuotaAssetEntry(long companyId) throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<AssetEntry> assetEntries = null; List<AssetEntry> assetEntries = null;
do { do {
int rimossi = 0;
assetEntries = AssetEntryLocalServiceUtil.getAssetEntries(start, start + SLICE); assetEntries = AssetEntryLocalServiceUtil.getAssetEntries(start, start + SLICE);
for (AssetEntry assetEntry : assetEntries) { for (AssetEntry assetEntry : assetEntries) {
String className = assetEntry.getClassName(); String className = assetEntry.getClassName();
@ -454,19 +431,20 @@ public class ManutenzioneDatabase {
if (!esiste(className, assetEntry.getClassPK(), companyId)) { if (!esiste(className, assetEntry.getClassPK(), companyId)) {
AssetEntryLocalServiceUtil.deleteAssetEntry(assetEntry); AssetEntryLocalServiceUtil.deleteAssetEntry(assetEntry);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (assetEntries.size() > 0); } while (assetEntries.size() > 0);
return "Cancellati " + cancellati + " AssetEntry"; return "Cancellati " + cancellati + " AssetEntry";
} }
private static String svuotaAsseverazione() throws SystemException { private static String svuotaAsseverazione() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Asseverazione> asseverazioni = null; List<Asseverazione> asseverazioni = null;
do { do {
int rimossi = 0;
asseverazioni = AsseverazioneLocalServiceUtil.getAsseveraziones(start, start + SLICE); asseverazioni = AsseverazioneLocalServiceUtil.getAsseveraziones(start, start + SLICE);
for (Asseverazione asseverazione : asseverazioni) { for (Asseverazione asseverazione : asseverazioni) {
if (!esiste(INTPRATICA_CLASS_NAME, asseverazione.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, asseverazione.getIntPraticaId())
@ -474,19 +452,20 @@ public class ManutenzioneDatabase {
deleteFileEntry(asseverazione.getFileEntryId()); deleteFileEntry(asseverazione.getFileEntryId());
AsseverazioneLocalServiceUtil.deleteAsseverazione(asseverazione); AsseverazioneLocalServiceUtil.deleteAsseverazione(asseverazione);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (asseverazioni.size() > 0); } while (asseverazioni.size() > 0);
return "Cancellati " + cancellati + " Asseverazione"; return "Cancellati " + cancellati + " Asseverazione";
} }
private static String svuotaAvviso(long companyId) throws SystemException { private static String svuotaAvviso(long companyId) throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Avviso> avvisi = null; List<Avviso> avvisi = null;
do { do {
int rimossi = 0;
avvisi = AvvisoLocalServiceUtil.getAvvisos(start, start + SLICE); avvisi = AvvisoLocalServiceUtil.getAvvisos(start, start + SLICE);
for (Avviso avviso : avvisi) { for (Avviso avviso : avvisi) {
if (!esiste(avviso.getClassName(), avviso.getClassPk(), companyId) if (!esiste(avviso.getClassName(), avviso.getClassPk(), companyId)
@ -496,111 +475,117 @@ public class ManutenzioneDatabase {
deleteFileEntry(avviso.getFileEntryIdProtocollo()); deleteFileEntry(avviso.getFileEntryIdProtocollo());
AvvisoLocalServiceUtil.deleteAvviso(avviso); AvvisoLocalServiceUtil.deleteAvviso(avviso);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (avvisi.size() > 0); } while (avvisi.size() > 0);
return "Cancellati " + cancellati + " Avviso"; return "Cancellati " + cancellati + " Avviso";
} }
private static String svuotaCollaudo() throws SystemException, PortalException { private static String svuotaCollaudo() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Collaudo> collaudi = null; List<Collaudo> collaudi = null;
do { do {
int rimossi = 0;
collaudi = CollaudoLocalServiceUtil.getCollaudos(start, start + SLICE); collaudi = CollaudoLocalServiceUtil.getCollaudos(start, start + SLICE);
for (Collaudo collaudo : collaudi) { for (Collaudo collaudo : collaudi) {
if (!esiste(INTPRATICA_CLASS_NAME, collaudo.getIntPraticaId())) { if (!esiste(INTPRATICA_CLASS_NAME, collaudo.getIntPraticaId())) {
CollaudoLocalServiceUtil.deleteCollaudo(collaudo); CollaudoLocalServiceUtil.deleteCollaudo(collaudo);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (collaudi.size() > 0); } while (collaudi.size() > 0);
return "Cancellati " + cancellati + " Collaudo"; return "Cancellati " + cancellati + " Collaudo";
} }
private static String svuotaContact(long companyId) throws SystemException, PortalException { private static String svuotaContact(long companyId) throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Contact> contacts = null; List<Contact> contacts = null;
do { do {
int rimossi = 0;
contacts = ContactLocalServiceUtil.getContacts(start, start + SLICE); contacts = ContactLocalServiceUtil.getContacts(start, start + SLICE);
for (Contact contact : contacts) { for (Contact contact : contacts) {
if (!esiste(contact.getClassName(), contact.getClassPK(), companyId)) { if (!esiste(contact.getClassName(), contact.getClassPK(), companyId)) {
ContactLocalServiceUtil.deleteContact(contact); ContactLocalServiceUtil.deleteContact(contact);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (contacts.size() > 0); } while (contacts.size() > 0);
return "Cancellati " + cancellati + " Contact"; return "Cancellati " + cancellati + " Contact";
} }
private static String svuotaControlloPratica() throws SystemException, PortalException { private static String svuotaControlloPratica() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<ControlloPratica> controlliPratiche = null; List<ControlloPratica> controlliPratiche = null;
do { do {
int rimossi = 0;
controlliPratiche = ControlloPraticaLocalServiceUtil.getControlloPraticas(start, start + SLICE); controlliPratiche = ControlloPraticaLocalServiceUtil.getControlloPraticas(start, start + SLICE);
for (ControlloPratica controlloPratica : controlliPratiche) { for (ControlloPratica controlloPratica : controlliPratiche) {
if (!esiste(INTPRATICA_CLASS_NAME, controlloPratica.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, controlloPratica.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, controlloPratica.getDettPraticaId())) { || !esiste(DETTPRATICA_CLASS_NAME, controlloPratica.getDettPraticaId())) {
ControlloPraticaLocalServiceUtil.deleteControlloPratica(controlloPratica); ControlloPraticaLocalServiceUtil.deleteControlloPratica(controlloPratica);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (controlliPratiche.size() > 0); } while (controlliPratiche.size() > 0);
return "Cancellati " + cancellati + " ControlloPratica"; return "Cancellati " + cancellati + " ControlloPratica";
} }
private static String svuotaDelega() throws SystemException, PortalException { private static String svuotaDelega() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Delega> deleghe = null; List<Delega> deleghe = null;
do { do {
int rimossi = 0;
deleghe = DelegaLocalServiceUtil.getDelegas(start, start + SLICE); deleghe = DelegaLocalServiceUtil.getDelegas(start, start + SLICE);
for (Delega delega : deleghe) { for (Delega delega : deleghe) {
if (!esiste(INTPRATICA_CLASS_NAME, delega.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, delega.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, delega.getDettPraticaId())) { || !esiste(DETTPRATICA_CLASS_NAME, delega.getDettPraticaId())) {
DelegaLocalServiceUtil.deleteDelega(delega); DelegaLocalServiceUtil.deleteDelega(delega);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (deleghe.size() > 0); } while (deleghe.size() > 0);
return "Cancellati " + cancellati + " Delega"; return "Cancellati " + cancellati + " Delega";
} }
private static String svuotaDettPratica() throws SystemException, PortalException { private static String svuotaDettPratica() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<DettPratica> dettPratiche = null; List<DettPratica> dettPratiche = null;
do { do {
int rimossi = 0;
dettPratiche = DettPraticaLocalServiceUtil.getDettPraticas(start, start + SLICE); dettPratiche = DettPraticaLocalServiceUtil.getDettPraticas(start, start + SLICE);
for (DettPratica dettPratica : dettPratiche) { for (DettPratica dettPratica : dettPratiche) {
if (!esiste(INTPRATICA_CLASS_NAME, dettPratica.getIntPraticaId())) { if (!esiste(INTPRATICA_CLASS_NAME, dettPratica.getIntPraticaId())) {
DettPraticaLocalServiceUtil.deleteDettPratica(dettPratica); DettPraticaLocalServiceUtil.deleteDettPratica(dettPratica);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (dettPratiche.size() > 0); } while (dettPratiche.size() > 0);
return "Cancellati " + cancellati + " DettPratica"; return "Cancellati " + cancellati + " DettPratica";
} }
private static String svuotaDocAggiuntiva() throws SystemException, PortalException { private static String svuotaDocAggiuntiva() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<DocAggiuntiva> docAggiuntive = null; List<DocAggiuntiva> docAggiuntive = null;
do { do {
int rimossi = 0;
docAggiuntive = DocAggiuntivaLocalServiceUtil.getDocAggiuntivas(start, start + SLICE); docAggiuntive = DocAggiuntivaLocalServiceUtil.getDocAggiuntivas(start, start + SLICE);
for (DocAggiuntiva docAggiuntiva : docAggiuntive) { for (DocAggiuntiva docAggiuntiva : docAggiuntive) {
if (!esiste(INTPRATICA_CLASS_NAME, docAggiuntiva.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, docAggiuntiva.getIntPraticaId())
@ -608,19 +593,20 @@ public class ManutenzioneDatabase {
deleteFileEntry(docAggiuntiva.getFileEntryId()); deleteFileEntry(docAggiuntiva.getFileEntryId());
DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(docAggiuntiva); DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(docAggiuntiva);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (docAggiuntive.size() > 0); } while (docAggiuntive.size() > 0);
return "Cancellati " + cancellati + " DocAggiuntiva"; return "Cancellati " + cancellati + " DocAggiuntiva";
} }
private static String svuotaDocPratica(long companyId) throws SystemException, PortalException { private static String svuotaDocPratica(long companyId) throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<DocPratica> docPratiche = null; List<DocPratica> docPratiche = null;
do { do {
int rimossi = 0;
docPratiche = DocPraticaLocalServiceUtil.getDocPraticas(start, start + SLICE); docPratiche = DocPraticaLocalServiceUtil.getDocPraticas(start, start + SLICE);
for (DocPratica docPratica : docPratiche) { for (DocPratica docPratica : docPratiche) {
if (!esiste(docPratica.getClassName(), docPratica.getClassPk(), companyId) if (!esiste(docPratica.getClassName(), docPratica.getClassPk(), companyId)
@ -628,71 +614,74 @@ public class ManutenzioneDatabase {
deleteFileEntry(docPratica.getDlFileEntryId()); deleteFileEntry(docPratica.getDlFileEntryId());
DocPraticaLocalServiceUtil.deleteDocPratica(docPratica); DocPraticaLocalServiceUtil.deleteDocPratica(docPratica);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (docPratiche.size() > 0); } while (docPratiche.size() > 0);
return "Cancellati " + cancellati + " DocPratica"; return "Cancellati " + cancellati + " DocPratica";
} }
private static String svuotaEmail(long companyId) throws SystemException, PortalException { private static String svuotaEmail(long companyId) throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Email> emails = null; List<Email> emails = null;
do { do {
int rimossi = 0;
emails = EmailLocalServiceUtil.getEmails(start, start + SLICE); emails = EmailLocalServiceUtil.getEmails(start, start + SLICE);
for (Email email : emails) { for (Email email : emails) {
if (!esiste(email.getClassName(), email.getClassPK(), companyId)) { if (!esiste(email.getClassName(), email.getClassPK(), companyId)) {
EmailLocalServiceUtil.deleteEmail(email); EmailLocalServiceUtil.deleteEmail(email);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (emails.size() > 0); } while (emails.size() > 0);
return "Cancellati " + cancellati + " Email"; return "Cancellati " + cancellati + " Email";
} }
private static String svuotaEmailAttachment() throws SystemException, PortalException { private static String svuotaEmailAttachment() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<EmailAttachment> emailAttachments = null; List<EmailAttachment> emailAttachments = null;
do { do {
int rimossi = 0;
emailAttachments = EmailAttachmentLocalServiceUtil.getEmailAttachments(start, start + SLICE); emailAttachments = EmailAttachmentLocalServiceUtil.getEmailAttachments(start, start + SLICE);
for (EmailAttachment emailAttachment : emailAttachments) { for (EmailAttachment emailAttachment : emailAttachments) {
if (!esiste(EMAIL_CLASS_NAME, emailAttachment.getEmailId())) { if (!esiste(EMAIL_CLASS_NAME, emailAttachment.getEmailId())) {
deleteFileEntry(emailAttachment.getFileEntryId()); deleteFileEntry(emailAttachment.getFileEntryId());
EmailAttachmentLocalServiceUtil.deleteEmailAttachment(emailAttachment); EmailAttachmentLocalServiceUtil.deleteEmailAttachment(emailAttachment);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (emailAttachments.size() > 0); } while (emailAttachments.size() > 0);
return "Cancellati " + cancellati + " EmailAttachment"; return "Cancellati " + cancellati + " EmailAttachment";
} }
private static String svuotaFineLavori() throws SystemException, PortalException { private static String svuotaFineLavori() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<FineLavori> finiLavori = null; List<FineLavori> finiLavori = null;
do { do {
int rimossi = 0;
finiLavori = FineLavoriLocalServiceUtil.getFineLavoris(start, start + SLICE); finiLavori = FineLavoriLocalServiceUtil.getFineLavoris(start, start + SLICE);
for (FineLavori fineLavori : finiLavori) { for (FineLavori fineLavori : finiLavori) {
if (!esiste(INTPRATICA_CLASS_NAME, fineLavori.getIntPraticaId())) { if (!esiste(INTPRATICA_CLASS_NAME, fineLavori.getIntPraticaId())) {
FineLavoriLocalServiceUtil.deleteFineLavori(fineLavori); FineLavoriLocalServiceUtil.deleteFineLavori(fineLavori);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (finiLavori.size() > 0); } while (finiLavori.size() > 0);
return "Cancellati " + cancellati + " FineLavori"; return "Cancellati " + cancellati + " FineLavori";
} }
// Troncare le tabelle è l'unico modo possibile // Troncare le tabelle è l'unico modo possibile
private static String svuotaIntPraticaDettPratica() { private static String svuotaIntPraticaDettPratica() {
int i = 0; int i = 0;
int d = 0; int d = 0;
try { try {
@ -700,56 +689,56 @@ public class ManutenzioneDatabase {
Statement s = connection.createStatement(); Statement s = connection.createStatement();
i = s.executeUpdate("DELETE FROM portos_bo_intpratica"); i = s.executeUpdate("DELETE FROM portos_bo_intpratica");
d = s.executeUpdate("DELETE FROM portos_bo_dettpratica"); d = s.executeUpdate("DELETE FROM portos_bo_dettpratica");
} catch (SQLException e) { } catch (SQLException e) {}
e.printStackTrace();
}
clearCache(); clearCache();
return "Cancellati " + i + " IntPratica, " + d + " DettPratica"; return "Cancellati " + i + " IntPratica, " + d + " DettPratica";
} }
private static String svuotaGroup(long companyId) throws SystemException, PortalException { private static String svuotaGroup(long companyId) throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Group> groups = null; List<Group> groups = null;
do { do {
int rimossi = 0;
groups = GroupLocalServiceUtil.getGroups(start, start + SLICE); groups = GroupLocalServiceUtil.getGroups(start, start + SLICE);
for (Group group : groups) { for (Group group : groups) {
if (!esiste(group.getClassName(), group.getClassPK(), companyId)) { if (!esiste(group.getClassName(), group.getClassPK(), companyId)) {
GroupLocalServiceUtil.deleteGroup(group); GroupLocalServiceUtil.deleteGroup(group);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (groups.size() > 0); } while (groups.size() > 0);
return "Cancellati " + cancellati + " Group"; return "Cancellati " + cancellati + " Group";
} }
private static String svuotaHistoryWorkflowAction() throws SystemException { private static String svuotaHistoryWorkflowAction() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<HistoryWorkflowAction> actions = null; List<HistoryWorkflowAction> actions = null;
do { do {
int rimossi = 0;
actions = HistoryWorkflowActionLocalServiceUtil.getHistoryWorkflowActions(start, start + SLICE); actions = HistoryWorkflowActionLocalServiceUtil.getHistoryWorkflowActions(start, start + SLICE);
for (HistoryWorkflowAction action : actions) { for (HistoryWorkflowAction action : actions) {
if (!esiste(INTPRATICA_CLASS_NAME, action.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, action.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, action.getDettPraticaId())) { || !esiste(DETTPRATICA_CLASS_NAME, action.getDettPraticaId())) {
HistoryWorkflowActionLocalServiceUtil.deleteHistoryWorkflowAction(action); HistoryWorkflowActionLocalServiceUtil.deleteHistoryWorkflowAction(action);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (actions.size() > 0); } while (actions.size() > 0);
return "Cancellati " + cancellati + " HistoryWorkflowAction"; return "Cancellati " + cancellati + " HistoryWorkflowAction";
} }
private static String svuotaMBDiscussion(long companyId) throws SystemException { private static String svuotaMBDiscussion(long companyId) throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<MBDiscussion> mbDiscussions = null; List<MBDiscussion> mbDiscussions = null;
do { do {
int rimossi = 0;
mbDiscussions = MBDiscussionLocalServiceUtil.getMBDiscussions(start, start + SLICE); mbDiscussions = MBDiscussionLocalServiceUtil.getMBDiscussions(start, start + SLICE);
for (MBDiscussion mbDiscussion : mbDiscussions) { for (MBDiscussion mbDiscussion : mbDiscussions) {
if (!esiste(mbDiscussion.getClassName(), mbDiscussion.getClassPK(), companyId) if (!esiste(mbDiscussion.getClassName(), mbDiscussion.getClassPK(), companyId)
@ -757,19 +746,20 @@ public class ManutenzioneDatabase {
|| !esiste(GROUP_CLASS_NAME, mbDiscussion.getGroupId())) { || !esiste(GROUP_CLASS_NAME, mbDiscussion.getGroupId())) {
MBDiscussionLocalServiceUtil.deleteMBDiscussion(mbDiscussion); MBDiscussionLocalServiceUtil.deleteMBDiscussion(mbDiscussion);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (mbDiscussions.size() > 0); } while (mbDiscussions.size() > 0);
return "Cancellati " + cancellati + " MBDiscussion"; return "Cancellati " + cancellati + " MBDiscussion";
} }
private static String svuotaMBMessage(long companyId) throws SystemException { private static String svuotaMBMessage(long companyId) throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<MBMessage> mbMessages = null; List<MBMessage> mbMessages = null;
do { do {
int rimossi = 0;
mbMessages = MBMessageLocalServiceUtil.getMBMessages(start, start + SLICE); mbMessages = MBMessageLocalServiceUtil.getMBMessages(start, start + SLICE);
for (MBMessage mbMessage : mbMessages) { for (MBMessage mbMessage : mbMessages) {
if (!esiste(mbMessage.getClassName(), mbMessage.getClassPK(), companyId) if (!esiste(mbMessage.getClassName(), mbMessage.getClassPK(), companyId)
@ -777,38 +767,40 @@ public class ManutenzioneDatabase {
|| !esiste(GROUP_CLASS_NAME, mbMessage.getGroupId())) { || !esiste(GROUP_CLASS_NAME, mbMessage.getGroupId())) {
MBMessageLocalServiceUtil.deleteMBMessage(mbMessage); MBMessageLocalServiceUtil.deleteMBMessage(mbMessage);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (mbMessages.size() > 0); } while (mbMessages.size() > 0);
return "Cancellati " + cancellati + " MBMessage"; return "Cancellati " + cancellati + " MBMessage";
} }
private static String svuotaMBThread() throws SystemException { private static String svuotaMBThread() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<MBThread> mbThreads = null; List<MBThread> mbThreads = null;
do { do {
int rimossi = 0;
mbThreads = MBThreadLocalServiceUtil.getMBThreads(start, start + SLICE); mbThreads = MBThreadLocalServiceUtil.getMBThreads(start, start + SLICE);
for (MBThread mbThread : mbThreads) { for (MBThread mbThread : mbThreads) {
if (!esiste(MBMESSAGE_CLASS_NAME, mbThread.getRootMessageId()) if (!esiste(MBMESSAGE_CLASS_NAME, mbThread.getRootMessageId())
|| !esiste(GROUP_CLASS_NAME, mbThread.getGroupId())) { || !esiste(GROUP_CLASS_NAME, mbThread.getGroupId())) {
MBThreadLocalServiceUtil.deleteMBThread(mbThread); MBThreadLocalServiceUtil.deleteMBThread(mbThread);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (mbThreads.size() > 0); } while (mbThreads.size() > 0);
return "Cancellati " + cancellati + " MBThread"; return "Cancellati " + cancellati + " MBThread";
} }
private static String svuotaPagamento(long companyId) throws SystemException, PortalException { private static String svuotaPagamento(long companyId) throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Pagamento> pagamenti = null; List<Pagamento> pagamenti = null;
do { do {
int rimossi = 0;
pagamenti = PagamentoLocalServiceUtil.getPagamentos(start, start + SLICE); pagamenti = PagamentoLocalServiceUtil.getPagamentos(start, start + SLICE);
for (Pagamento pagamento : pagamenti) { for (Pagamento pagamento : pagamenti) {
if (!esiste(pagamento.getClassName(), pagamento.getClassPk(), companyId) if (!esiste(pagamento.getClassName(), pagamento.getClassPk(), companyId)
@ -816,19 +808,20 @@ public class ManutenzioneDatabase {
deleteFileEntry(pagamento.getFileEntryId()); deleteFileEntry(pagamento.getFileEntryId());
PagamentoLocalServiceUtil.deletePagamento(pagamento); PagamentoLocalServiceUtil.deletePagamento(pagamento);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (pagamenti.size() > 0); } while (pagamenti.size() > 0);
return "Cancellati " + cancellati + " Pagamento"; return "Cancellati " + cancellati + " Pagamento";
} }
private static String svuotaParereGeologo() throws SystemException { private static String svuotaParereGeologo() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<ParereGeologo> pareriGeologo = null; List<ParereGeologo> pareriGeologo = null;
do { do {
int rimossi = 0;
pareriGeologo = ParereGeologoLocalServiceUtil.getParereGeologos(start, start + SLICE); pareriGeologo = ParereGeologoLocalServiceUtil.getParereGeologos(start, start + SLICE);
for (ParereGeologo parereGeologo : pareriGeologo) { for (ParereGeologo parereGeologo : pareriGeologo) {
if (!esiste(INTPRATICA_CLASS_NAME, parereGeologo.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, parereGeologo.getIntPraticaId())
@ -836,55 +829,58 @@ public class ManutenzioneDatabase {
deleteFileEntry(parereGeologo.getFileEntryId()); deleteFileEntry(parereGeologo.getFileEntryId());
ParereGeologoLocalServiceUtil.deleteParereGeologo(parereGeologo); ParereGeologoLocalServiceUtil.deleteParereGeologo(parereGeologo);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (pareriGeologo.size() > 0); } while (pareriGeologo.size() > 0);
return "Cancellati " + cancellati + " ParereGeologo"; return "Cancellati " + cancellati + " ParereGeologo";
} }
private static String svuotaRatingsEntry() throws SystemException { private static String svuotaRatingsEntry() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<RatingsEntry> entries = null; List<RatingsEntry> entries = null;
do { do {
int rimossi = 0;
entries = RatingsEntryLocalServiceUtil.getRatingsEntries(start, start + SLICE); entries = RatingsEntryLocalServiceUtil.getRatingsEntries(start, start + SLICE);
for (RatingsEntry entry : entries) { for (RatingsEntry entry : entries) {
if (!esiste(entry.getClassName(), entry.getClassPK())) { if (!esiste(entry.getClassName(), entry.getClassPK())) {
RatingsEntryLocalServiceUtil.deleteRatingsEntry(entry); RatingsEntryLocalServiceUtil.deleteRatingsEntry(entry);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (entries.size() > 0); } while (entries.size() > 0);
return "Cancellati " + cancellati + " RatingsEntry"; return "Cancellati " + cancellati + " RatingsEntry";
} }
private static String svuotaRatingsStats(long companyId) throws SystemException { private static String svuotaRatingsStats(long companyId) throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<RatingsStats> ratingsStatses = null; List<RatingsStats> ratingsStatses = null;
do { do {
int rimossi = 0;
ratingsStatses = RatingsStatsLocalServiceUtil.getRatingsStatses(start, start + SLICE); ratingsStatses = RatingsStatsLocalServiceUtil.getRatingsStatses(start, start + SLICE);
for (RatingsStats ratingsStats : ratingsStatses) { for (RatingsStats ratingsStats : ratingsStatses) {
if (!esiste(ratingsStats.getClassName(), ratingsStats.getClassPK(), companyId)) { if (!esiste(ratingsStats.getClassName(), ratingsStats.getClassPK(), companyId)) {
RatingsStatsLocalServiceUtil.deleteRatingsStats(ratingsStats); RatingsStatsLocalServiceUtil.deleteRatingsStats(ratingsStats);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (ratingsStatses.size() > 0); } while (ratingsStatses.size() > 0);
return "Cancellati " + cancellati + " RatingsStats"; return "Cancellati " + cancellati + " RatingsStats";
} }
private static String svuotaResourcePermission(long companyId) throws SystemException { private static String svuotaResourcePermission(long companyId) throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<ResourcePermission> resourcePermissions = null; List<ResourcePermission> resourcePermissions = null;
do { do {
int rimossi = 0;
resourcePermissions = ResourcePermissionLocalServiceUtil.getResourcePermissions(start, start + SLICE); resourcePermissions = ResourcePermissionLocalServiceUtil.getResourcePermissions(start, start + SLICE);
for (ResourcePermission resourcePermission : resourcePermissions) { for (ResourcePermission resourcePermission : resourcePermissions) {
long classPK = 0; long classPK = 0;
@ -900,23 +896,24 @@ public class ManutenzioneDatabase {
if (!esiste(resourcePermission.getName(), classPK)) { if (!esiste(resourcePermission.getName(), classPK)) {
ResourcePermissionLocalServiceUtil.deleteResourcePermission(resourcePermission); ResourcePermissionLocalServiceUtil.deleteResourcePermission(resourcePermission);
cancellati++; cancellati++;
rimossi++;
} }
break; break;
} }
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (resourcePermissions.size() > 0); } while (resourcePermissions.size() > 0);
return "Cancellati " + cancellati + " ResourcePermission"; return "Cancellati " + cancellati + " ResourcePermission";
} }
private static String svuotaSoggetto() throws SystemException, PortalException { private static String svuotaSoggetto() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
int docPraticaCancellati = 0; int docPraticaCancellati = 0;
List<Soggetto> soggetti = null; List<Soggetto> soggetti = null;
do { do {
int rimossi = 0;
soggetti = SoggettoLocalServiceUtil.getSoggettos(start, start + SLICE); soggetti = SoggettoLocalServiceUtil.getSoggettos(start, start + SLICE);
for (Soggetto soggetto : soggetti) { for (Soggetto soggetto : soggetti) {
if (!esiste(INTPRATICA_CLASS_NAME, soggetto.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, soggetto.getIntPraticaId())
@ -932,75 +929,79 @@ public class ManutenzioneDatabase {
} }
SoggettoLocalServiceUtil.deleteSoggetto(soggetto); SoggettoLocalServiceUtil.deleteSoggetto(soggetto);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (soggetti.size() > 0); } while (soggetti.size() > 0);
return "Cancellati " + cancellati + " Soggetto, " + docPraticaCancellati + " DocPratica"; return "Cancellati " + cancellati + " Soggetto, " + docPraticaCancellati + " DocPratica";
} }
private static String svuotaSorteggio() throws SystemException { private static String svuotaSorteggio() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Sorteggio> sorteggi = null; List<Sorteggio> sorteggi = null;
do { do {
int rimossi = 0;
sorteggi = SorteggioLocalServiceUtil.getSorteggios(start, start + SLICE); sorteggi = SorteggioLocalServiceUtil.getSorteggios(start, start + SLICE);
for (Sorteggio sorteggio : sorteggi) { for (Sorteggio sorteggio : sorteggi) {
if (!esiste(INTPRATICA_CLASS_NAME, sorteggio.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, sorteggio.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, sorteggio.getDettPraticaId())) { || !esiste(DETTPRATICA_CLASS_NAME, sorteggio.getDettPraticaId())) {
SorteggioLocalServiceUtil.deleteSorteggio(sorteggio); SorteggioLocalServiceUtil.deleteSorteggio(sorteggio);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (sorteggi.size() > 0); } while (sorteggi.size() > 0);
return "Cancellati " + cancellati + " Sorteggio"; return "Cancellati " + cancellati + " Sorteggio";
} }
private static String svuotaStoricoSoggettoPratica() throws SystemException { private static String svuotaStoricoSoggettoPratica() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<StoricoSoggettoPratica> storicoSoggettiPratiche = null; List<StoricoSoggettoPratica> storicoSoggettiPratiche = null;
do { do {
int rimossi = 0;
storicoSoggettiPratiche = StoricoSoggettoPraticaLocalServiceUtil.getStoricoSoggettoPraticas(start, start storicoSoggettiPratiche = StoricoSoggettoPraticaLocalServiceUtil.getStoricoSoggettoPraticas(start, start
+ SLICE); + SLICE);
for (StoricoSoggettoPratica storicoSoggettoPratica : storicoSoggettiPratiche) { for (StoricoSoggettoPratica storicoSoggettoPratica : storicoSoggettiPratiche) {
if (!esiste(INTPRATICA_CLASS_NAME, storicoSoggettoPratica.getIntPraticaId())) { if (!esiste(INTPRATICA_CLASS_NAME, storicoSoggettoPratica.getIntPraticaId())) {
StoricoSoggettoPraticaLocalServiceUtil.deleteStoricoSoggettoPratica(storicoSoggettoPratica); StoricoSoggettoPraticaLocalServiceUtil.deleteStoricoSoggettoPratica(storicoSoggettoPratica);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (storicoSoggettiPratiche.size() > 0); } while (storicoSoggettiPratiche.size() > 0);
return "Cancellati " + cancellati + " StoricoSoggettoPratica"; return "Cancellati " + cancellati + " StoricoSoggettoPratica";
} }
private static String svuotaSystemEvent(long companyId) throws SystemException { private static String svuotaSystemEvent(long companyId) throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<SystemEvent> systemEvents = null; List<SystemEvent> systemEvents = null;
do { do {
int rimossi = 0;
systemEvents = SystemEventLocalServiceUtil.getSystemEvents(start, start + SLICE); systemEvents = SystemEventLocalServiceUtil.getSystemEvents(start, start + SLICE);
for (SystemEvent systemEvent : systemEvents) { for (SystemEvent systemEvent : systemEvents) {
if (!esiste(systemEvent.getClassName(), systemEvent.getClassPK(), companyId)) { if (!esiste(systemEvent.getClassName(), systemEvent.getClassPK(), companyId)) {
SystemEventLocalServiceUtil.deleteSystemEvent(systemEvent); SystemEventLocalServiceUtil.deleteSystemEvent(systemEvent);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (systemEvents.size() > 0); } while (systemEvents.size() > 0);
return "Cancellati " + cancellati + " SystemEvent"; return "Cancellati " + cancellati + " SystemEvent";
} }
private static String svuotaSyncDLObject() throws SystemException { private static String svuotaSyncDLObject() throws SystemException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<SyncDLObject> syncDLObjects = null; List<SyncDLObject> syncDLObjects = null;
do { do {
int rimossi = 0;
syncDLObjects = SyncDLObjectLocalServiceUtil.getSyncDLObjects(start, start + SLICE); syncDLObjects = SyncDLObjectLocalServiceUtil.getSyncDLObjects(start, start + SLICE);
for (SyncDLObject syncDLObject : syncDLObjects) { for (SyncDLObject syncDLObject : syncDLObjects) {
String className = null; String className = null;
@ -1015,72 +1016,58 @@ public class ManutenzioneDatabase {
if (!esiste(className, syncDLObject.getTypePK())) { if (!esiste(className, syncDLObject.getTypePK())) {
SyncDLObjectLocalServiceUtil.deleteSyncDLObject(syncDLObject); SyncDLObjectLocalServiceUtil.deleteSyncDLObject(syncDLObject);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (syncDLObjects.size() > 0); } while (syncDLObjects.size() > 0);
return "Cancellati " + cancellati + " SyncDLObject"; return "Cancellati " + cancellati + " SyncDLObject";
} }
private static String svuotaTempistica() throws SystemException, PortalException { private static String svuotaTempistica() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<Tempistica> tempistiche = null; List<Tempistica> tempistiche = null;
do { do {
int rimossi = 0;
tempistiche = TempisticaLocalServiceUtil.getTempisticas(start, start + SLICE); tempistiche = TempisticaLocalServiceUtil.getTempisticas(start, start + SLICE);
for (Tempistica tempistica : tempistiche) { for (Tempistica tempistica : tempistiche) {
if (!esiste(INTPRATICA_CLASS_NAME, tempistica.getIntPraticaId()) if (!esiste(INTPRATICA_CLASS_NAME, tempistica.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, tempistica.getDettPraticaId())) { || !esiste(DETTPRATICA_CLASS_NAME, tempistica.getDettPraticaId())) {
TempisticaLocalServiceUtil.deleteTempistica(tempistica); TempisticaLocalServiceUtil.deleteTempistica(tempistica);
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (tempistiche.size() > 0); } while (tempistiche.size() > 0);
return "Cancellati " + cancellati + " Tempistica"; return "Cancellati " + cancellati + " Tempistica";
} }
private static List<String> svuotaUser(long companyId) throws SystemException, PortalException { private static String svuotaUser(long companyId) throws SystemException, PortalException {
List<String> esito = new ArrayList<>();
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<User> users = null; List<User> users = null;
Role adminRole = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR); 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 { do {
int rimossi = 0;
users = UserLocalServiceUtil.getUsers(start, start + SLICE); users = UserLocalServiceUtil.getUsers(start, start + SLICE);
for (User user : users) { for (User user : users) {
if (soggetti.contains(user.getScreenName().toLowerCase()) || user.getRoles().contains(adminRole) if (user.getRoles().contains(adminRole)) {
|| (user.getOrganizationIds().length > 0) || user.getDefaultUser()) {} else { _log.info("Non cancello utente " + user.getFullName());
try {
UserLocalServiceUtil.deleteUser(user);
} catch (Exception e) {
esitoLog(esito, "Errore utente " + user.getFullName() + ": " + e.getMessage());
}
cancellati++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (users.size() > 0); } while (users.size() > 0);
esitoLog(esito, "Cancellati " + cancellati + " User"); return "Cancellati " + cancellati + " User";
return esito;
} }
private static String svuotaWorkflowInstance() throws SystemException, PortalException { private static String svuotaWorkflowInstance() throws SystemException, PortalException {
int start = 0; int start = 0;
int cancellati = 0; int cancellati = 0;
List<WorkflowInstanceLink> links = null; List<WorkflowInstanceLink> links = null;
do { do {
int rimossi = 0;
links = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLinks(start, start + SLICE); links = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLinks(start, start + SLICE);
for (WorkflowInstanceLink link : links) { for (WorkflowInstanceLink link : links) {
if (!esiste(link.getClassName(), link.getClassPK())) { if (!esiste(link.getClassName(), link.getClassPK())) {
@ -1097,20 +1084,19 @@ public class ManutenzioneDatabase {
instance.getWorkflowInstanceId()); instance.getWorkflowInstanceId());
} }
cancellati++; cancellati++;
rimossi++;
} }
} }
start += SLICE; start += SLICE - rimossi;
} while (links.size() > 0); } while (links.size() > 0);
return "Cancellati " + cancellati + " WorkflowInstance"; return "Cancellati " + cancellati + " WorkflowInstance";
} }
private static boolean esiste(String className, long classPK) throws SystemException { private static boolean esiste(String className, long classPK) throws SystemException {
return esiste(className, classPK, 0); return esiste(className, classPK, 0);
} }
private static boolean esiste(String className, long classPK, long companyId) throws SystemException { private static boolean esiste(String className, long classPK, long companyId) throws SystemException {
if (0 != classPK && Validator.isNotNull(className)) { if (0 != classPK && Validator.isNotNull(className)) {
try { try {
if (ALLEGATOMANUALE_CLASS_NAME.equals(className)) { if (ALLEGATOMANUALE_CLASS_NAME.equals(className)) {
@ -1207,7 +1193,7 @@ public class ManutenzioneDatabase {
WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, classPK); WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, classPK);
} }
} else { } else {
if (className.contains(StringPool.PERIOD)) { if (className.contains(".")) {
switch (className) { switch (className) {
case "com.liferay.portlet.blogs": case "com.liferay.portlet.blogs":
case "com.liferay.portlet.documentlibrary": case "com.liferay.portlet.documentlibrary":
@ -1230,7 +1216,6 @@ public class ManutenzioneDatabase {
} }
private static void deleteFileEntry(long fileEntryId) throws SystemException { private static void deleteFileEntry(long fileEntryId) throws SystemException {
try { try {
DLAppLocalServiceUtil.deleteFileEntry(fileEntryId); DLAppLocalServiceUtil.deleteFileEntry(fileEntryId);
} catch (PortalException e) {} } catch (PortalException e) {}
@ -1244,7 +1229,6 @@ public class ManutenzioneDatabase {
} }
private static void esitoLog(List<String> esito, String msg) { private static void esitoLog(List<String> esito, String msg) {
_log.info(msg); _log.info(msg);
esito.add(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,23 +79,12 @@ public class SorteggioPraticaUtil {
*/ */
public static List<String> sorteggio(long companyId, Date dtSorteggio) throws PortalException, SystemException { 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<>(); List<String> esito = new ArrayList<>();
if (lock.tryLock()) { if (lock.tryLock()) {
SimpleDateFormat sdf = new SimpleDateFormat(DATE_TIME_FORMAT); SimpleDateFormat sdf = new SimpleDateFormat(DATE_TIME_FORMAT);
esito.add("Sorteggio iniziato in data " + sdf.format(dtSorteggio) + ".<br><br>"); 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, Map<String, List<IntPratica>> sorteggiabili = IntPraticaLocalServiceUtil.findSorteggiabiliNew(companyId,
dtRange); dtSorteggio);
int numeroSorteggiabili = 0; int numeroSorteggiabili = 0;
for (Map.Entry<String, List<IntPratica>> s : sorteggiabili.entrySet()) { for (Map.Entry<String, List<IntPratica>> s : sorteggiabili.entrySet()) {
numeroSorteggiabili += s.getValue().size(); numeroSorteggiabili += s.getValue().size();
@ -163,8 +152,6 @@ public class SorteggioPraticaUtil {
ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.DATE_ULTIMO_SORTEGGIO, ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.DATE_ULTIMO_SORTEGGIO,
sdf.format(dtSorteggio), serviceContext); sdf.format(dtSorteggio), serviceContext);
lock.unlock(); lock.unlock();
} else {
esito.add("Sorteggio già in corso.");
} }
return esito; return esito;
} }
@ -277,14 +264,15 @@ public class SorteggioPraticaUtil {
} }
} }
public static FileEntry getFileEntrySorteggio(long companyId, Date dtSorteggio) throws PortalException, public static FileEntry getFileEntrySorteggio(long companyId, long groupId, Date dtSorteggio)
SystemException { throws PortalException, SystemException {
Company company = CompanyLocalServiceUtil.getCompany(companyId); Company company = CompanyLocalServiceUtil.getCompany(companyId);
Calendar calSorteggio = DateUtils.toCalendar(dtSorteggio); Folder folder = DLAppLocalServiceUtil.getFolder(company.getGroupId(),
String anno = String.valueOf(calSorteggio.get(Calendar.YEAR)); DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, FOLDER_SORTEGGIO);
int settimana = calSorteggio.get(Calendar.WEEK_OF_YEAR); String fileName = reportFileName(companyId, dtSorteggio);
return getFileEntrySorteggio(companyId, company.getGroupId(), settimana, anno); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(groupId, folder.getFolderId(), fileName);
return fileEntry;
} }
public static FileEntry getFileEntrySorteggio(long companyId, long groupId, int settimana, String 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 { Externalizable {
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(67); StringBundler sb = new StringBundler(53);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(uuid); sb.append(uuid);
@ -78,34 +78,20 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
sb.append(dataFineLavori); sb.append(dataFineLavori);
sb.append(", normEsenteBollo="); sb.append(", normEsenteBollo=");
sb.append(normEsenteBollo); sb.append(normEsenteBollo);
sb.append(", normEsenteSpese=");
sb.append(normEsenteSpese);
sb.append(", normEsenteCollaudo="); sb.append(", normEsenteCollaudo=");
sb.append(normEsenteCollaudo); sb.append(normEsenteCollaudo);
sb.append(", comunicazioneDirettoreLavori="); sb.append(", comunicazioneDirettoreLavori=");
sb.append(comunicazioneDirettoreLavori); sb.append(comunicazioneDirettoreLavori);
sb.append(", pagamentoId="); sb.append(", pagamentoId=");
sb.append(pagamentoId); sb.append(pagamentoId);
sb.append(", pagamentoSpeseId=");
sb.append(pagamentoSpeseId);
sb.append(", codicePagamento="); sb.append(", codicePagamento=");
sb.append(codicePagamento); sb.append(codicePagamento);
sb.append(", codicePagamentoSpese=");
sb.append(codicePagamentoSpese);
sb.append(", causalePagamento="); sb.append(", causalePagamento=");
sb.append(causalePagamento); sb.append(causalePagamento);
sb.append(", causalePagamentoSpese=");
sb.append(causalePagamentoSpese);
sb.append(", mezzoPagamento="); sb.append(", mezzoPagamento=");
sb.append(mezzoPagamento); sb.append(mezzoPagamento);
sb.append(", mezzoPagamentoSpese=");
sb.append(mezzoPagamentoSpese);
sb.append(", importoBolli="); sb.append(", importoBolli=");
sb.append(importoBolli); sb.append(importoBolli);
sb.append(", importoSpese=");
sb.append(importoSpese);
sb.append(", richiestaAttestazione=");
sb.append(richiestaAttestazione);
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -191,7 +177,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
} }
fineLavoriImpl.setNormEsenteBollo(normEsenteBollo); fineLavoriImpl.setNormEsenteBollo(normEsenteBollo);
fineLavoriImpl.setNormEsenteSpese(normEsenteSpese);
fineLavoriImpl.setNormEsenteCollaudo(normEsenteCollaudo); fineLavoriImpl.setNormEsenteCollaudo(normEsenteCollaudo);
if (comunicazioneDirettoreLavori == null) { if (comunicazioneDirettoreLavori == null) {
@ -202,7 +187,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
} }
fineLavoriImpl.setPagamentoId(pagamentoId); fineLavoriImpl.setPagamentoId(pagamentoId);
fineLavoriImpl.setPagamentoSpeseId(pagamentoSpeseId);
if (codicePagamento == null) { if (codicePagamento == null) {
fineLavoriImpl.setCodicePagamento(StringPool.BLANK); fineLavoriImpl.setCodicePagamento(StringPool.BLANK);
@ -211,13 +195,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setCodicePagamento(codicePagamento); fineLavoriImpl.setCodicePagamento(codicePagamento);
} }
if (codicePagamentoSpese == null) {
fineLavoriImpl.setCodicePagamentoSpese(StringPool.BLANK);
}
else {
fineLavoriImpl.setCodicePagamentoSpese(codicePagamentoSpese);
}
if (causalePagamento == null) { if (causalePagamento == null) {
fineLavoriImpl.setCausalePagamento(StringPool.BLANK); fineLavoriImpl.setCausalePagamento(StringPool.BLANK);
} }
@ -225,13 +202,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setCausalePagamento(causalePagamento); fineLavoriImpl.setCausalePagamento(causalePagamento);
} }
if (causalePagamentoSpese == null) {
fineLavoriImpl.setCausalePagamentoSpese(StringPool.BLANK);
}
else {
fineLavoriImpl.setCausalePagamentoSpese(causalePagamentoSpese);
}
if (mezzoPagamento == null) { if (mezzoPagamento == null) {
fineLavoriImpl.setMezzoPagamento(StringPool.BLANK); fineLavoriImpl.setMezzoPagamento(StringPool.BLANK);
} }
@ -239,13 +209,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setMezzoPagamento(mezzoPagamento); fineLavoriImpl.setMezzoPagamento(mezzoPagamento);
} }
if (mezzoPagamentoSpese == null) {
fineLavoriImpl.setMezzoPagamentoSpese(StringPool.BLANK);
}
else {
fineLavoriImpl.setMezzoPagamentoSpese(mezzoPagamentoSpese);
}
if (importoBolli == null) { if (importoBolli == null) {
fineLavoriImpl.setImportoBolli(StringPool.BLANK); fineLavoriImpl.setImportoBolli(StringPool.BLANK);
} }
@ -253,15 +216,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
fineLavoriImpl.setImportoBolli(importoBolli); fineLavoriImpl.setImportoBolli(importoBolli);
} }
if (importoSpese == null) {
fineLavoriImpl.setImportoSpese(StringPool.BLANK);
}
else {
fineLavoriImpl.setImportoSpese(importoSpese);
}
fineLavoriImpl.setRichiestaAttestazione(richiestaAttestazione);
fineLavoriImpl.resetOriginalValues(); fineLavoriImpl.resetOriginalValues();
return fineLavoriImpl; return fineLavoriImpl;
@ -288,20 +242,13 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
dataEffettuazione = objectInput.readLong(); dataEffettuazione = objectInput.readLong();
dataFineLavori = objectInput.readLong(); dataFineLavori = objectInput.readLong();
normEsenteBollo = objectInput.readBoolean(); normEsenteBollo = objectInput.readBoolean();
normEsenteSpese = objectInput.readBoolean();
normEsenteCollaudo = objectInput.readBoolean(); normEsenteCollaudo = objectInput.readBoolean();
comunicazioneDirettoreLavori = objectInput.readUTF(); comunicazioneDirettoreLavori = objectInput.readUTF();
pagamentoId = objectInput.readLong(); pagamentoId = objectInput.readLong();
pagamentoSpeseId = objectInput.readLong();
codicePagamento = objectInput.readUTF(); codicePagamento = objectInput.readUTF();
codicePagamentoSpese = objectInput.readUTF();
causalePagamento = objectInput.readUTF(); causalePagamento = objectInput.readUTF();
causalePagamentoSpese = objectInput.readUTF();
mezzoPagamento = objectInput.readUTF(); mezzoPagamento = objectInput.readUTF();
mezzoPagamentoSpese = objectInput.readUTF();
importoBolli = objectInput.readUTF(); importoBolli = objectInput.readUTF();
importoSpese = objectInput.readUTF();
richiestaAttestazione = objectInput.readBoolean();
} }
@Override @Override
@ -353,7 +300,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
objectOutput.writeLong(dataEffettuazione); objectOutput.writeLong(dataEffettuazione);
objectOutput.writeLong(dataFineLavori); objectOutput.writeLong(dataFineLavori);
objectOutput.writeBoolean(normEsenteBollo); objectOutput.writeBoolean(normEsenteBollo);
objectOutput.writeBoolean(normEsenteSpese);
objectOutput.writeBoolean(normEsenteCollaudo); objectOutput.writeBoolean(normEsenteCollaudo);
if (comunicazioneDirettoreLavori == null) { if (comunicazioneDirettoreLavori == null) {
@ -364,7 +310,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
} }
objectOutput.writeLong(pagamentoId); objectOutput.writeLong(pagamentoId);
objectOutput.writeLong(pagamentoSpeseId);
if (codicePagamento == null) { if (codicePagamento == null) {
objectOutput.writeUTF(StringPool.BLANK); objectOutput.writeUTF(StringPool.BLANK);
@ -373,13 +318,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
objectOutput.writeUTF(codicePagamento); objectOutput.writeUTF(codicePagamento);
} }
if (codicePagamentoSpese == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(codicePagamentoSpese);
}
if (causalePagamento == null) { if (causalePagamento == null) {
objectOutput.writeUTF(StringPool.BLANK); objectOutput.writeUTF(StringPool.BLANK);
} }
@ -387,13 +325,6 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
objectOutput.writeUTF(causalePagamento); objectOutput.writeUTF(causalePagamento);
} }
if (causalePagamentoSpese == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(causalePagamentoSpese);
}
if (mezzoPagamento == null) { if (mezzoPagamento == null) {
objectOutput.writeUTF(StringPool.BLANK); objectOutput.writeUTF(StringPool.BLANK);
} }
@ -401,28 +332,12 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
objectOutput.writeUTF(mezzoPagamento); objectOutput.writeUTF(mezzoPagamento);
} }
if (mezzoPagamentoSpese == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(mezzoPagamentoSpese);
}
if (importoBolli == null) { if (importoBolli == null) {
objectOutput.writeUTF(StringPool.BLANK); objectOutput.writeUTF(StringPool.BLANK);
} }
else { else {
objectOutput.writeUTF(importoBolli); objectOutput.writeUTF(importoBolli);
} }
if (importoSpese == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(importoSpese);
}
objectOutput.writeBoolean(richiestaAttestazione);
} }
public String uuid; public String uuid;
@ -444,18 +359,11 @@ public class FineLavoriCacheModel implements CacheModel<FineLavori>,
public long dataEffettuazione; public long dataEffettuazione;
public long dataFineLavori; public long dataFineLavori;
public boolean normEsenteBollo; public boolean normEsenteBollo;
public boolean normEsenteSpese;
public boolean normEsenteCollaudo; public boolean normEsenteCollaudo;
public String comunicazioneDirettoreLavori; public String comunicazioneDirettoreLavori;
public long pagamentoId; public long pagamentoId;
public long pagamentoSpeseId;
public String codicePagamento; public String codicePagamento;
public String codicePagamentoSpese;
public String causalePagamento; public String causalePagamento;
public String causalePagamentoSpese;
public String mezzoPagamento; public String mezzoPagamento;
public String mezzoPagamentoSpese;
public String importoBolli; 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,22 +86,15 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
{ "dataEffettuazione", Types.TIMESTAMP }, { "dataEffettuazione", Types.TIMESTAMP },
{ "dataFineLavori", Types.TIMESTAMP }, { "dataFineLavori", Types.TIMESTAMP },
{ "normEsenteBollo", Types.BOOLEAN }, { "normEsenteBollo", Types.BOOLEAN },
{ "normEsenteSpese", Types.BOOLEAN },
{ "normEsenteCollaudo", Types.BOOLEAN }, { "normEsenteCollaudo", Types.BOOLEAN },
{ "comunicazioneDirettoreLavori", Types.VARCHAR }, { "comunicazioneDirettoreLavori", Types.VARCHAR },
{ "pagamentoId", Types.BIGINT }, { "pagamentoId", Types.BIGINT },
{ "pagamentoSpeseId", Types.BIGINT },
{ "codicePagamento", Types.VARCHAR }, { "codicePagamento", Types.VARCHAR },
{ "codicePagamentoSpese", Types.VARCHAR },
{ "causalePagamento", Types.VARCHAR }, { "causalePagamento", Types.VARCHAR },
{ "causalePagamentoSpese", Types.VARCHAR },
{ "mezzoPagamento", Types.VARCHAR }, { "mezzoPagamento", Types.VARCHAR },
{ "mezzoPagamentoSpese", Types.VARCHAR }, { "importoBolli", 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,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_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_DROP = "drop table portos_bo_FineLavori"; public static final String TABLE_SQL_DROP = "drop table portos_bo_FineLavori";
public static final String ORDER_BY_JPQL = " ORDER BY fineLavori.fineLavoriId ASC"; public static final String ORDER_BY_JPQL = " ORDER BY fineLavori.fineLavoriId ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_bo_FineLavori.fineLavoriId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_FineLavori.fineLavoriId ASC";
@ -159,20 +152,13 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
model.setDataEffettuazione(soapModel.getDataEffettuazione()); model.setDataEffettuazione(soapModel.getDataEffettuazione());
model.setDataFineLavori(soapModel.getDataFineLavori()); model.setDataFineLavori(soapModel.getDataFineLavori());
model.setNormEsenteBollo(soapModel.getNormEsenteBollo()); model.setNormEsenteBollo(soapModel.getNormEsenteBollo());
model.setNormEsenteSpese(soapModel.getNormEsenteSpese());
model.setNormEsenteCollaudo(soapModel.getNormEsenteCollaudo()); model.setNormEsenteCollaudo(soapModel.getNormEsenteCollaudo());
model.setComunicazioneDirettoreLavori(soapModel.getComunicazioneDirettoreLavori()); model.setComunicazioneDirettoreLavori(soapModel.getComunicazioneDirettoreLavori());
model.setPagamentoId(soapModel.getPagamentoId()); model.setPagamentoId(soapModel.getPagamentoId());
model.setPagamentoSpeseId(soapModel.getPagamentoSpeseId());
model.setCodicePagamento(soapModel.getCodicePagamento()); model.setCodicePagamento(soapModel.getCodicePagamento());
model.setCodicePagamentoSpese(soapModel.getCodicePagamentoSpese());
model.setCausalePagamento(soapModel.getCausalePagamento()); model.setCausalePagamento(soapModel.getCausalePagamento());
model.setCausalePagamentoSpese(soapModel.getCausalePagamentoSpese());
model.setMezzoPagamento(soapModel.getMezzoPagamento()); model.setMezzoPagamento(soapModel.getMezzoPagamento());
model.setMezzoPagamentoSpese(soapModel.getMezzoPagamentoSpese());
model.setImportoBolli(soapModel.getImportoBolli()); model.setImportoBolli(soapModel.getImportoBolli());
model.setImportoSpese(soapModel.getImportoSpese());
model.setRichiestaAttestazione(soapModel.getRichiestaAttestazione());
return model; return model;
} }
@ -256,21 +242,14 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
attributes.put("dataEffettuazione", getDataEffettuazione()); attributes.put("dataEffettuazione", getDataEffettuazione());
attributes.put("dataFineLavori", getDataFineLavori()); attributes.put("dataFineLavori", getDataFineLavori());
attributes.put("normEsenteBollo", getNormEsenteBollo()); attributes.put("normEsenteBollo", getNormEsenteBollo());
attributes.put("normEsenteSpese", getNormEsenteSpese());
attributes.put("normEsenteCollaudo", getNormEsenteCollaudo()); attributes.put("normEsenteCollaudo", getNormEsenteCollaudo());
attributes.put("comunicazioneDirettoreLavori", attributes.put("comunicazioneDirettoreLavori",
getComunicazioneDirettoreLavori()); getComunicazioneDirettoreLavori());
attributes.put("pagamentoId", getPagamentoId()); attributes.put("pagamentoId", getPagamentoId());
attributes.put("pagamentoSpeseId", getPagamentoSpeseId());
attributes.put("codicePagamento", getCodicePagamento()); attributes.put("codicePagamento", getCodicePagamento());
attributes.put("codicePagamentoSpese", getCodicePagamentoSpese());
attributes.put("causalePagamento", getCausalePagamento()); attributes.put("causalePagamento", getCausalePagamento());
attributes.put("causalePagamentoSpese", getCausalePagamentoSpese());
attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("mezzoPagamento", getMezzoPagamento());
attributes.put("mezzoPagamentoSpese", getMezzoPagamentoSpese());
attributes.put("importoBolli", getImportoBolli()); attributes.put("importoBolli", getImportoBolli());
attributes.put("importoSpese", getImportoSpese());
attributes.put("richiestaAttestazione", getRichiestaAttestazione());
return attributes; return attributes;
} }
@ -392,12 +371,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
setNormEsenteBollo(normEsenteBollo); setNormEsenteBollo(normEsenteBollo);
} }
Boolean normEsenteSpese = (Boolean)attributes.get("normEsenteSpese");
if (normEsenteSpese != null) {
setNormEsenteSpese(normEsenteSpese);
}
Boolean normEsenteCollaudo = (Boolean)attributes.get( Boolean normEsenteCollaudo = (Boolean)attributes.get(
"normEsenteCollaudo"); "normEsenteCollaudo");
@ -418,69 +391,29 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
setPagamentoId(pagamentoId); setPagamentoId(pagamentoId);
} }
Long pagamentoSpeseId = (Long)attributes.get("pagamentoSpeseId");
if (pagamentoSpeseId != null) {
setPagamentoSpeseId(pagamentoSpeseId);
}
String codicePagamento = (String)attributes.get("codicePagamento"); String codicePagamento = (String)attributes.get("codicePagamento");
if (codicePagamento != null) { if (codicePagamento != null) {
setCodicePagamento(codicePagamento); setCodicePagamento(codicePagamento);
} }
String codicePagamentoSpese = (String)attributes.get(
"codicePagamentoSpese");
if (codicePagamentoSpese != null) {
setCodicePagamentoSpese(codicePagamentoSpese);
}
String causalePagamento = (String)attributes.get("causalePagamento"); String causalePagamento = (String)attributes.get("causalePagamento");
if (causalePagamento != null) { if (causalePagamento != null) {
setCausalePagamento(causalePagamento); setCausalePagamento(causalePagamento);
} }
String causalePagamentoSpese = (String)attributes.get(
"causalePagamentoSpese");
if (causalePagamentoSpese != null) {
setCausalePagamentoSpese(causalePagamentoSpese);
}
String mezzoPagamento = (String)attributes.get("mezzoPagamento"); String mezzoPagamento = (String)attributes.get("mezzoPagamento");
if (mezzoPagamento != null) { if (mezzoPagamento != null) {
setMezzoPagamento(mezzoPagamento); setMezzoPagamento(mezzoPagamento);
} }
String mezzoPagamentoSpese = (String)attributes.get(
"mezzoPagamentoSpese");
if (mezzoPagamentoSpese != null) {
setMezzoPagamentoSpese(mezzoPagamentoSpese);
}
String importoBolli = (String)attributes.get("importoBolli"); String importoBolli = (String)attributes.get("importoBolli");
if (importoBolli != null) { if (importoBolli != null) {
setImportoBolli(importoBolli); 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 @JSON
@ -830,22 +763,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_normEsenteBollo = normEsenteBollo; _normEsenteBollo = normEsenteBollo;
} }
@JSON
@Override
public boolean getNormEsenteSpese() {
return _normEsenteSpese;
}
@Override
public boolean isNormEsenteSpese() {
return _normEsenteSpese;
}
@Override
public void setNormEsenteSpese(boolean normEsenteSpese) {
_normEsenteSpese = normEsenteSpese;
}
@JSON @JSON
@Override @Override
public boolean getNormEsenteCollaudo() { public boolean getNormEsenteCollaudo() {
@ -890,17 +807,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_pagamentoId = pagamentoId; _pagamentoId = pagamentoId;
} }
@JSON
@Override
public long getPagamentoSpeseId() {
return _pagamentoSpeseId;
}
@Override
public void setPagamentoSpeseId(long pagamentoSpeseId) {
_pagamentoSpeseId = pagamentoSpeseId;
}
@JSON @JSON
@Override @Override
public String getCodicePagamento() { public String getCodicePagamento() {
@ -917,22 +823,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_codicePagamento = codicePagamento; _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 @JSON
@Override @Override
public String getCausalePagamento() { public String getCausalePagamento() {
@ -949,22 +839,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_causalePagamento = causalePagamento; _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 @JSON
@Override @Override
public String getMezzoPagamento() { public String getMezzoPagamento() {
@ -981,22 +855,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_mezzoPagamento = mezzoPagamento; _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 @JSON
@Override @Override
public String getImportoBolli() { public String getImportoBolli() {
@ -1013,38 +871,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
_importoBolli = importoBolli; _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 @Override
public StagedModelType getStagedModelType() { public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId( return new StagedModelType(PortalUtil.getClassNameId(
@ -1101,20 +927,13 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriImpl.setDataEffettuazione(getDataEffettuazione()); fineLavoriImpl.setDataEffettuazione(getDataEffettuazione());
fineLavoriImpl.setDataFineLavori(getDataFineLavori()); fineLavoriImpl.setDataFineLavori(getDataFineLavori());
fineLavoriImpl.setNormEsenteBollo(getNormEsenteBollo()); fineLavoriImpl.setNormEsenteBollo(getNormEsenteBollo());
fineLavoriImpl.setNormEsenteSpese(getNormEsenteSpese());
fineLavoriImpl.setNormEsenteCollaudo(getNormEsenteCollaudo()); fineLavoriImpl.setNormEsenteCollaudo(getNormEsenteCollaudo());
fineLavoriImpl.setComunicazioneDirettoreLavori(getComunicazioneDirettoreLavori()); fineLavoriImpl.setComunicazioneDirettoreLavori(getComunicazioneDirettoreLavori());
fineLavoriImpl.setPagamentoId(getPagamentoId()); fineLavoriImpl.setPagamentoId(getPagamentoId());
fineLavoriImpl.setPagamentoSpeseId(getPagamentoSpeseId());
fineLavoriImpl.setCodicePagamento(getCodicePagamento()); fineLavoriImpl.setCodicePagamento(getCodicePagamento());
fineLavoriImpl.setCodicePagamentoSpese(getCodicePagamentoSpese());
fineLavoriImpl.setCausalePagamento(getCausalePagamento()); fineLavoriImpl.setCausalePagamento(getCausalePagamento());
fineLavoriImpl.setCausalePagamentoSpese(getCausalePagamentoSpese());
fineLavoriImpl.setMezzoPagamento(getMezzoPagamento()); fineLavoriImpl.setMezzoPagamento(getMezzoPagamento());
fineLavoriImpl.setMezzoPagamentoSpese(getMezzoPagamentoSpese());
fineLavoriImpl.setImportoBolli(getImportoBolli()); fineLavoriImpl.setImportoBolli(getImportoBolli());
fineLavoriImpl.setImportoSpese(getImportoSpese());
fineLavoriImpl.setRichiestaAttestazione(getRichiestaAttestazione());
fineLavoriImpl.resetOriginalValues(); fineLavoriImpl.resetOriginalValues();
@ -1298,8 +1117,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.normEsenteBollo = getNormEsenteBollo(); fineLavoriCacheModel.normEsenteBollo = getNormEsenteBollo();
fineLavoriCacheModel.normEsenteSpese = getNormEsenteSpese();
fineLavoriCacheModel.normEsenteCollaudo = getNormEsenteCollaudo(); fineLavoriCacheModel.normEsenteCollaudo = getNormEsenteCollaudo();
fineLavoriCacheModel.comunicazioneDirettoreLavori = getComunicazioneDirettoreLavori(); fineLavoriCacheModel.comunicazioneDirettoreLavori = getComunicazioneDirettoreLavori();
@ -1313,8 +1130,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.pagamentoId = getPagamentoId(); fineLavoriCacheModel.pagamentoId = getPagamentoId();
fineLavoriCacheModel.pagamentoSpeseId = getPagamentoSpeseId();
fineLavoriCacheModel.codicePagamento = getCodicePagamento(); fineLavoriCacheModel.codicePagamento = getCodicePagamento();
String codicePagamento = fineLavoriCacheModel.codicePagamento; String codicePagamento = fineLavoriCacheModel.codicePagamento;
@ -1323,15 +1138,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.codicePagamento = null; fineLavoriCacheModel.codicePagamento = null;
} }
fineLavoriCacheModel.codicePagamentoSpese = getCodicePagamentoSpese();
String codicePagamentoSpese = fineLavoriCacheModel.codicePagamentoSpese;
if ((codicePagamentoSpese != null) &&
(codicePagamentoSpese.length() == 0)) {
fineLavoriCacheModel.codicePagamentoSpese = null;
}
fineLavoriCacheModel.causalePagamento = getCausalePagamento(); fineLavoriCacheModel.causalePagamento = getCausalePagamento();
String causalePagamento = fineLavoriCacheModel.causalePagamento; String causalePagamento = fineLavoriCacheModel.causalePagamento;
@ -1340,15 +1146,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.causalePagamento = null; fineLavoriCacheModel.causalePagamento = null;
} }
fineLavoriCacheModel.causalePagamentoSpese = getCausalePagamentoSpese();
String causalePagamentoSpese = fineLavoriCacheModel.causalePagamentoSpese;
if ((causalePagamentoSpese != null) &&
(causalePagamentoSpese.length() == 0)) {
fineLavoriCacheModel.causalePagamentoSpese = null;
}
fineLavoriCacheModel.mezzoPagamento = getMezzoPagamento(); fineLavoriCacheModel.mezzoPagamento = getMezzoPagamento();
String mezzoPagamento = fineLavoriCacheModel.mezzoPagamento; String mezzoPagamento = fineLavoriCacheModel.mezzoPagamento;
@ -1357,15 +1154,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.mezzoPagamento = null; fineLavoriCacheModel.mezzoPagamento = null;
} }
fineLavoriCacheModel.mezzoPagamentoSpese = getMezzoPagamentoSpese();
String mezzoPagamentoSpese = fineLavoriCacheModel.mezzoPagamentoSpese;
if ((mezzoPagamentoSpese != null) &&
(mezzoPagamentoSpese.length() == 0)) {
fineLavoriCacheModel.mezzoPagamentoSpese = null;
}
fineLavoriCacheModel.importoBolli = getImportoBolli(); fineLavoriCacheModel.importoBolli = getImportoBolli();
String importoBolli = fineLavoriCacheModel.importoBolli; String importoBolli = fineLavoriCacheModel.importoBolli;
@ -1374,22 +1162,12 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
fineLavoriCacheModel.importoBolli = null; fineLavoriCacheModel.importoBolli = null;
} }
fineLavoriCacheModel.importoSpese = getImportoSpese();
String importoSpese = fineLavoriCacheModel.importoSpese;
if ((importoSpese != null) && (importoSpese.length() == 0)) {
fineLavoriCacheModel.importoSpese = null;
}
fineLavoriCacheModel.richiestaAttestazione = getRichiestaAttestazione();
return fineLavoriCacheModel; return fineLavoriCacheModel;
} }
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(67); StringBundler sb = new StringBundler(53);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -1429,34 +1207,20 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
sb.append(getDataFineLavori()); sb.append(getDataFineLavori());
sb.append(", normEsenteBollo="); sb.append(", normEsenteBollo=");
sb.append(getNormEsenteBollo()); sb.append(getNormEsenteBollo());
sb.append(", normEsenteSpese=");
sb.append(getNormEsenteSpese());
sb.append(", normEsenteCollaudo="); sb.append(", normEsenteCollaudo=");
sb.append(getNormEsenteCollaudo()); sb.append(getNormEsenteCollaudo());
sb.append(", comunicazioneDirettoreLavori="); sb.append(", comunicazioneDirettoreLavori=");
sb.append(getComunicazioneDirettoreLavori()); sb.append(getComunicazioneDirettoreLavori());
sb.append(", pagamentoId="); sb.append(", pagamentoId=");
sb.append(getPagamentoId()); sb.append(getPagamentoId());
sb.append(", pagamentoSpeseId=");
sb.append(getPagamentoSpeseId());
sb.append(", codicePagamento="); sb.append(", codicePagamento=");
sb.append(getCodicePagamento()); sb.append(getCodicePagamento());
sb.append(", codicePagamentoSpese=");
sb.append(getCodicePagamentoSpese());
sb.append(", causalePagamento="); sb.append(", causalePagamento=");
sb.append(getCausalePagamento()); sb.append(getCausalePagamento());
sb.append(", causalePagamentoSpese=");
sb.append(getCausalePagamentoSpese());
sb.append(", mezzoPagamento="); sb.append(", mezzoPagamento=");
sb.append(getMezzoPagamento()); sb.append(getMezzoPagamento());
sb.append(", mezzoPagamentoSpese=");
sb.append(getMezzoPagamentoSpese());
sb.append(", importoBolli="); sb.append(", importoBolli=");
sb.append(getImportoBolli()); sb.append(getImportoBolli());
sb.append(", importoSpese=");
sb.append(getImportoSpese());
sb.append(", richiestaAttestazione=");
sb.append(getRichiestaAttestazione());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -1464,7 +1228,7 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(103); StringBundler sb = new StringBundler(82);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.FineLavori"); sb.append("it.tref.liferay.portos.bo.model.FineLavori");
@ -1546,10 +1310,6 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
"<column><column-name>normEsenteBollo</column-name><column-value><![CDATA["); "<column><column-name>normEsenteBollo</column-name><column-value><![CDATA[");
sb.append(getNormEsenteBollo()); sb.append(getNormEsenteBollo());
sb.append("]]></column-value></column>"); 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( sb.append(
"<column><column-name>normEsenteCollaudo</column-name><column-value><![CDATA["); "<column><column-name>normEsenteCollaudo</column-name><column-value><![CDATA[");
sb.append(getNormEsenteCollaudo()); sb.append(getNormEsenteCollaudo());
@ -1562,46 +1322,22 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
"<column><column-name>pagamentoId</column-name><column-value><![CDATA["); "<column><column-name>pagamentoId</column-name><column-value><![CDATA[");
sb.append(getPagamentoId()); sb.append(getPagamentoId());
sb.append("]]></column-value></column>"); 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( sb.append(
"<column><column-name>codicePagamento</column-name><column-value><![CDATA["); "<column><column-name>codicePagamento</column-name><column-value><![CDATA[");
sb.append(getCodicePagamento()); sb.append(getCodicePagamento());
sb.append("]]></column-value></column>"); 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( sb.append(
"<column><column-name>causalePagamento</column-name><column-value><![CDATA["); "<column><column-name>causalePagamento</column-name><column-value><![CDATA[");
sb.append(getCausalePagamento()); sb.append(getCausalePagamento());
sb.append("]]></column-value></column>"); 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( sb.append(
"<column><column-name>mezzoPagamento</column-name><column-value><![CDATA["); "<column><column-name>mezzoPagamento</column-name><column-value><![CDATA[");
sb.append(getMezzoPagamento()); sb.append(getMezzoPagamento());
sb.append("]]></column-value></column>"); 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( sb.append(
"<column><column-name>importoBolli</column-name><column-value><![CDATA["); "<column><column-name>importoBolli</column-name><column-value><![CDATA[");
sb.append(getImportoBolli()); sb.append(getImportoBolli());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>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>"); sb.append("</model>");
@ -1645,20 +1381,13 @@ public class FineLavoriModelImpl extends BaseModelImpl<FineLavori>
private Date _dataEffettuazione; private Date _dataEffettuazione;
private Date _dataFineLavori; private Date _dataFineLavori;
private boolean _normEsenteBollo; private boolean _normEsenteBollo;
private boolean _normEsenteSpese;
private boolean _normEsenteCollaudo; private boolean _normEsenteCollaudo;
private String _comunicazioneDirettoreLavori; private String _comunicazioneDirettoreLavori;
private long _pagamentoId; private long _pagamentoId;
private long _pagamentoSpeseId;
private String _codicePagamento; private String _codicePagamento;
private String _codicePagamentoSpese;
private String _causalePagamento; private String _causalePagamento;
private String _causalePagamentoSpese;
private String _mezzoPagamento; private String _mezzoPagamento;
private String _mezzoPagamentoSpese;
private String _importoBolli; private String _importoBolli;
private String _importoSpese;
private boolean _richiestaAttestazione;
private long _columnBitmask; private long _columnBitmask;
private FineLavori _escapedModel; 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 { public void simulaFirma(ActionRequest request, ActionResponse response) throws Exception {
ServiceContext serviceContext = ServiceContextFactory.getInstance(request); ServiceContext serviceContext = ServiceContextFactory.getInstance(request);
if (ConfigurazioneLocalServiceUtil.isProduction()) { if (ConfigurazioneLocalServiceUtil.isDeveloper(serviceContext.getUserId())) {
throw new PortletException("Firma simulata non permessa");
} else {
long avvisoId = ParamUtil.getLong(request, "avvisoId"); long avvisoId = ParamUtil.getLong(request, "avvisoId");
AvvisoLocalServiceUtil.simulaFirma(avvisoId, serviceContext); 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,5 +1,63 @@
package it.tref.liferay.portos.bo.portlet; 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; import com.liferay.util.bridges.mvc.MVCPortlet;
public class PagamentiPendingPortlet extends 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);
}
}
}

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

@ -7,7 +7,6 @@ import it.mwg.sismica.bo.util.SorteggioPraticaUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
@ -34,7 +33,7 @@ public class SismicaAdministrationPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(SismicaAdministrationPortlet.class); private static final Log _log = LogFactoryUtil.getLog(SismicaAdministrationPortlet.class);
public void mostraConfigurazione(ActionRequest request, ActionResponse response) throws SystemException { public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
List<String> esito = new ArrayList<String>(); List<String> esito = new ArrayList<String>();
esito.add("<h3>Env</h3>"); esito.add("<h3>Env</h3>");
@ -45,114 +44,108 @@ public class SismicaAdministrationPortlet extends MVCPortlet {
for (Map.Entry<Object, Object> entry : System.getProperties().entrySet()) { for (Map.Entry<Object, Object> entry : System.getProperties().entrySet()) {
esito.add(entry.getKey() + StringPool.EQUAL + entry.getValue()); esito.add(entry.getKey() + StringPool.EQUAL + entry.getValue());
} }
response.setRenderParameter("esito", esito.toArray(new String[esito.size()])); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
} }
public void generaDocumenti(ActionRequest request, ActionResponse response) { public void generaDocumenti(ActionRequest actionRequest, ActionResponse actionResponse) {
List<String> esito = new ArrayList<>(); List<String> esito = new ArrayList<>();
response.setRenderParameter("esito", esito.toArray(new String[esito.size()])); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
} }
public void sostituisciDL(ActionRequest request, ActionResponse response) throws Exception { public void sostituisciDL(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
AllegatiUtil.sostituisciDL(request, response); AllegatiUtil.sostituisciDL(actionRequest, actionResponse);
} }
public void resetFirme(ActionRequest request, ActionResponse response) { public void resetFirme(ActionRequest actionRequest, ActionResponse actionResponse) {
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay td = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
String numeroProgetto = ParamUtil.getString(request, "numeroProgetto"); String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
List<String> esito = new ArrayList<>(); List<String> esito = new ArrayList<>();
try { try {
esito = SismicaUtil.resetFirme(td.getCompanyId(), numeroProgetto); esito = SismicaUtil.resetFirme(td.getCompanyId(), numeroProgetto);
} catch (SystemException | PortalException e) { } catch (SystemException | PortalException e) {
esito.add("Errore durante l'invio " + e.getMessage()); esito.add("Errore durante l'invio " + e.getMessage());
} }
response.setRenderParameter("esito", esito.toArray(new String[esito.size()])); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
} }
public void trasformaFLC(ActionRequest request, ActionResponse response) { public void trasformaFLC(ActionRequest actionRequest, ActionResponse actionResponse) {
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay td = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
String numeroPratica = ParamUtil.getString(request, "numeroPratica"); String numeroPratica = ParamUtil.getString(actionRequest, "numeroPratica");
String tipoDaRiaprire = ParamUtil.getString(request, "tipoDaRiaprire"); String tipoDaRiaprire = ParamUtil.getString(actionRequest, "tipoDaRiaprire");
List<String> esito = new ArrayList<>(); List<String> esito = new ArrayList<>();
try { try {
esito = SismicaUtil.trasformaFLC(td.getCompanyId(), numeroPratica, tipoDaRiaprire); esito = SismicaUtil.trasformaFLC(td.getCompanyId(), numeroPratica, tipoDaRiaprire);
} catch (SystemException | PortalException e) { } catch (SystemException | PortalException e) {
esito.add("Errore durante la trasformazione della pratica " + e.getMessage()); esito.add("Errore durante la trasformazione della pratica " + e.getMessage());
} }
response.setRenderParameter("esito", esito.toArray(new String[esito.size()])); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
} }
public void reIndexFasciolo(ActionRequest request, ActionResponse response) throws PortalException, SystemException { public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId");
if (Validator.isNotNull(intPraticaId)) { if (Validator.isNotNull(intPraticaId)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, themeDisplay.getCompanyId()); IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, themeDisplay.getCompanyId());
} }
String numeroProgetto = ParamUtil.getString(request, "numeroProgetto"); String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
if (Validator.isNotNull(numeroProgetto)) { if (Validator.isNotNull(numeroProgetto)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(numeroProgetto, themeDisplay.getCompanyId()); IntPraticaLocalServiceUtil.reIndexFasciolo(numeroProgetto, themeDisplay.getCompanyId());
} }
} }
public void reIndexFascicoli(ActionRequest request, ActionResponse response) { public void reIndexFascicoli(ActionRequest actionRequest, ActionResponse actionResponse) {
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
List<String> esito = null; List<String> esito = null;
esito = SismicaUtil.reIndexFascicoli(themeDisplay.getCompanyId()); esito = SismicaUtil.reIndexFascicoli(themeDisplay.getCompanyId());
if (esito != null) { if (esito != null)
response.setRenderParameter("esito", esito.toArray(new String[esito.size()])); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
} }
public void lanciaSorteggio(ActionRequest request, ActionResponse response) throws ParseException { public void lanciaSorteggio(ActionRequest actionRequest, ActionResponse actionResponse) {
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
List<String> esito = null; List<String> esito = null;
_log.info("Sorteggio lanciato manualmente"); _log.info("Sorteggio lanciato manualmente");
try { try {
Date dtRange = null; esito = SorteggioPraticaUtil.sorteggio(themeDisplay.getCompanyId(), new Date());
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) { } catch (PortalException | SystemException e) {
_log.error("error", e); _log.error("error", e);
} }
if (esito != null) {
response.setRenderParameter("esito", esito.toArray(new String[esito.size()])); if (esito != null)
} actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
} }
public void manutenzioneDatabase(ActionRequest request, ActionResponse response) throws PortalException, public void manutenzioneDatabase(ActionRequest actionRequest, ActionResponse actionResponse)
SystemException { throws PortalException, SystemException {
String mode = ParamUtil.getString(request, "mode"); String mode = ParamUtil.getString(actionRequest, "mode");
ServiceContext serviceContext = ServiceContextFactory.getInstance(request); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
List<String> esito = ManutenzioneDatabase.pulisci(serviceContext, mode); List<String> esito = ManutenzioneDatabase.pulisci(serviceContext, mode);
response.setRenderParameter("esito", esito.toArray(new String[esito.size()])); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
} }
public void inviaAvviso(ActionRequest request, ActionResponse response) throws SystemException { public void inviaAvviso(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
SismicaUtil.inviaAvviso(request, response); SismicaUtil.inviaAvviso(actionRequest, actionResponse);
} }
public void salvaDataProssimoSorteggio(ActionRequest request, ActionResponse response) throws PortalException, public void salvaDataProssimoSorteggio(ActionRequest actionRequest, ActionResponse actionResponse)
SystemException { throws PortalException, SystemException {
ServiceContext serviceContext = ServiceContextFactory.getInstance(request); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
serviceContext.setScopeGroupId(-1L); serviceContext.setScopeGroupId(-1L);
serviceContext.setCompanyId(serviceContext.getCompanyId()); serviceContext.setCompanyId(serviceContext.getCompanyId());
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date dataProssimoSorteggio = ParamUtil.getDate(request, "dataProssimoSorteggio", sdf); Date dataProssimoSorteggio = ParamUtil.getDate(actionRequest, "dataProssimoSorteggio", sdf);
ConfigurazioneServiceUtil.storeConfig("conf.geniocivile.sorteggio.data.prossimo.sorteggio", ConfigurazioneServiceUtil.storeConfig("conf.geniocivile.sorteggio.data.prossimo.sorteggio",
sdf.format(dataProssimoSorteggio), serviceContext); 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,13 +162,17 @@ public class SchedulerInvioDocumento implements MessageListener {
for (int cursor = 0; cursor <= count; cursor += SIZE) { for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiInvioSignal(cursor, cursor + SIZE); List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiInvioSignal(cursor, cursor + SIZE);
for (Avviso avviso : avvisi) { for (Avviso avviso : avvisi) {
long controlloPraticaId = avviso.getControlloPraticaId();
if (controlloPraticaId != 0) {
try { try {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(avviso ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
.getControlloPraticaId()); .getControlloPratica(avviso.getControlloPraticaId());
invioSignal(avviso, controlloPratica); invioSignal(avviso, controlloPratica);
} catch (Exception e) { } catch (Exception e) {
_log.info(e.getMessage() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE _log.info(e.getMessage() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE
+ avviso.getControlloPraticaId()); + avviso.getControlloPraticaId());
_log.debug("Error", e);
}
} }
} }
} }
@ -217,13 +221,17 @@ public class SchedulerInvioDocumento implements MessageListener {
for (int cursor = 0; cursor <= count; cursor += SIZE) { for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiTempistica(cursor, cursor + SIZE); List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiTempistica(cursor, cursor + SIZE);
for (Avviso avviso : avvisi) { for (Avviso avviso : avvisi) {
long controlloPraticaId = avviso.getControlloPraticaId();
if (controlloPraticaId > 0) {
try { try {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(avviso ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
.getControlloPraticaId()); .getControlloPratica(controlloPraticaId);
gestioneTempistica(avviso, controlloPratica); gestioneTempistica(avviso, controlloPratica);
} catch (Exception e) { } catch (Exception e) {
_log.info(e.getMessage() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE _log.debug(e.getMessage() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE
+ avviso.getControlloPraticaId()); + avviso.getControlloPraticaId());
_log.debug("Error", e);
}
} }
} }
} }
@ -458,7 +466,11 @@ public class SchedulerInvioDocumento implements MessageListener {
if (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) { if (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) {
long intPraticaId = controlloPratica.getIntPraticaId(); long intPraticaId = controlloPratica.getIntPraticaId();
IntPratica intPratica = null; IntPratica intPratica = null;
intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(controlloPratica.getIntPraticaId()); try {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId());
} catch (PortalException e) {
_log.error(e, e);
}
// FIX prendo la data di vidimazione e non quella di sottoposto a parere per avvio dei tempi // FIX prendo la data di vidimazione e non quella di sottoposto a parere per avvio dei tempi
Avviso avvisoExtra = null; Avviso avvisoExtra = null;
if (Validator.isNotNull(intPratica.getDtSorteggio())) { if (Validator.isNotNull(intPratica.getDtSorteggio())) {
@ -466,11 +478,9 @@ public class SchedulerInvioDocumento implements MessageListener {
} else { } else {
List<Avviso> documentiVid = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(intPraticaId, List<Avviso> documentiVid = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(intPraticaId,
StatoPraticaConstants.VIDIMATA); StatoPraticaConstants.VIDIMATA);
if (documentiVid.size() > 0) {
avvisoExtra = documentiVid.get(0); avvisoExtra = documentiVid.get(0);
dtInvio = avvisoExtra.getDtInvio(); dtInvio = avvisoExtra.getDtInvio();
} }
}
// fino qui // fino qui
Date now = new Date(); Date now = new Date();
// FIX come sopra // 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,11 +133,9 @@ public class SchedulerPratiche implements MessageListener {
PrincipalThreadLocal.setName(user.getUserId()); PrincipalThreadLocal.setName(user.getUserId());
PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user);
PermissionThreadLocal.setPermissionChecker(permissionChecker); PermissionThreadLocal.setPermissionChecker(permissionChecker);
if (!fineLavori.isParziale() && fineLavori.isRichiestaAttestazione()) {
creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(), creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(),
fineLavori.getUserId(), fineLavori.getIntPraticaId(), fineLavori.getUserId(), fineLavori.getIntPraticaId(),
fineLavori.getFineLavoriId(), FineLavori.class.getName()); fineLavori.getFineLavoriId(), FineLavori.class.getName());
}
fineLavori.setGestita(true); fineLavori.setGestita(true);
FineLavoriLocalServiceUtil.updateFineLavori(fineLavori); FineLavoriLocalServiceUtil.updateFineLavori(fineLavori);
} catch (Exception e) { } catch (Exception e) {

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

@ -0,0 +1,81 @@
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,8 +150,7 @@ public class FineLavoriLocalServiceClpInvoker {
_methodParameterTypes186 = new String[] { _methodParameterTypes186 = new String[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date", "long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "java.lang.String"
"java.lang.String", "boolean"
}; };
_methodName187 = "getLastEditable"; _methodName187 = "getLastEditable";
@ -166,7 +165,6 @@ public class FineLavoriLocalServiceClpInvoker {
_methodParameterTypes189 = new String[] { _methodParameterTypes189 = new String[] {
"long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -459,9 +457,7 @@ public class FineLavoriLocalServiceClpInvoker {
(java.util.Date)arguments[5], (java.lang.String)arguments[6], (java.util.Date)arguments[5], (java.lang.String)arguments[6],
((Boolean)arguments[7]).booleanValue(), ((Boolean)arguments[7]).booleanValue(),
((Boolean)arguments[8]).booleanValue(), ((Boolean)arguments[8]).booleanValue(),
((Boolean)arguments[9]).booleanValue(), (java.lang.String)arguments[9]);
(java.lang.String)arguments[10],
((Boolean)arguments[11]).booleanValue());
} }
if (_methodName187.equals(name) && if (_methodName187.equals(name) &&
@ -478,8 +474,7 @@ public class FineLavoriLocalServiceClpInvoker {
Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) {
return FineLavoriLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), return FineLavoriLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[4], (com.liferay.portal.service.ServiceContext)arguments[3]);
(com.liferay.portal.service.ServiceContext)arguments[5]);
} }
if (_methodName190.equals(name) && 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,8 +62,7 @@ public class FineLavoriServiceClpInvoker {
_methodParameterTypes167 = new String[] { _methodParameterTypes167 = new String[] {
"long", "long", "long", "boolean", "boolean", "java.util.Date", "long", "long", "long", "boolean", "boolean", "java.util.Date",
"java.lang.String", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "java.lang.String"
"java.lang.String", "boolean"
}; };
_methodName168 = "getLastEditable"; _methodName168 = "getLastEditable";
@ -89,7 +88,6 @@ public class FineLavoriServiceClpInvoker {
_methodParameterTypes172 = new String[] { _methodParameterTypes172 = new String[] {
"long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -170,9 +168,7 @@ public class FineLavoriServiceClpInvoker {
(java.util.Date)arguments[5], (java.lang.String)arguments[6], (java.util.Date)arguments[5], (java.lang.String)arguments[6],
((Boolean)arguments[7]).booleanValue(), ((Boolean)arguments[7]).booleanValue(),
((Boolean)arguments[8]).booleanValue(), ((Boolean)arguments[8]).booleanValue(),
((Boolean)arguments[9]).booleanValue(), (java.lang.String)arguments[9]);
(java.lang.String)arguments[10],
((Boolean)arguments[11]).booleanValue());
} }
if (_methodName168.equals(name) && if (_methodName168.equals(name) &&
@ -204,8 +200,7 @@ public class FineLavoriServiceClpInvoker {
Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) {
return FineLavoriServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), return FineLavoriServiceUtil.pagaInvia(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[4], (com.liferay.portal.service.ServiceContext)arguments[3]);
(com.liferay.portal.service.ServiceContext)arguments[5]);
} }
if (_methodName173.equals(name) && 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,144 +186,155 @@ public class PagamentoLocalServiceClpInvoker {
_methodParameterTypes194 = new String[] { "long", "java.lang.String" }; _methodParameterTypes194 = new String[] { "long", "java.lang.String" };
_methodName195 = "findByCommittente_Mezzo"; _methodName195 = "annullaPagamento";
_methodParameterTypes195 = new String[] { _methodParameterTypes195 = new String[] { "long" };
_methodName196 = "findByCommittente_Mezzo";
_methodParameterTypes196 = new String[] {
"java.lang.String", "java.lang.String", "int", "int" "java.lang.String", "java.lang.String", "int", "int"
}; };
_methodName196 = "countByCommittente_Mezzo"; _methodName197 = "countByCommittente_Mezzo";
_methodParameterTypes196 = new String[] { _methodParameterTypes197 = new String[] {
"java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String"
}; };
_methodName197 = "findByCommittente_Mezzo_Utilizzata"; _methodName198 = "findByCommittente_Mezzo_Utilizzata";
_methodParameterTypes197 = new String[] { _methodParameterTypes198 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String",
"int", "int" "int", "int"
}; };
_methodName198 = "countByCommittente_Mezzo_Utilizzata"; _methodName199 = "countByCommittente_Mezzo_Utilizzata";
_methodParameterTypes198 = new String[] { _methodParameterTypes199 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String", "java.lang.String"
}; };
_methodName199 = "findByMezzo_Utilizzata"; _methodName200 = "findByMezzo_Utilizzata";
_methodParameterTypes199 = new String[] { _methodParameterTypes200 = new String[] {
"java.lang.String", "java.lang.String", "int", "int" "java.lang.String", "java.lang.String", "int", "int"
}; };
_methodName200 = "findByOldPagamentoId"; _methodName201 = "findByOldPagamentoId";
_methodParameterTypes200 = new String[] { "long" }; _methodParameterTypes201 = new String[] { "long" };
_methodName201 = "countByMezzo_Utilizzata"; _methodName202 = "countByMezzo_Utilizzata";
_methodParameterTypes201 = new String[] { _methodParameterTypes202 = new String[] {
"java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String"
}; };
_methodName202 = "findByMezzo_Utilizzata_CreateDate"; _methodName203 = "findByMezzo_Utilizzata_CreateDate";
_methodParameterTypes202 = new String[] { _methodParameterTypes203 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date", "int", "java.lang.String", "java.lang.String", "java.util.Date", "int",
"int" "int"
}; };
_methodName203 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; _methodName204 = "countByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes203 = new String[] { _methodParameterTypes204 = new String[] {
"java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "boolean",
"java.util.Date" "java.util.Date"
}; };
_methodName204 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; _methodName205 = "findByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes204 = new String[] { _methodParameterTypes205 = new String[] {
"java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "boolean",
"java.util.Date", "int", "int" "java.util.Date", "int", "int"
}; };
_methodName205 = "findInPending"; _methodName206 = "findInPending";
_methodParameterTypes205 = new String[] { _methodParameterTypes206 = new String[] {
"java.util.Date", "int", "int", "java.util.Date", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator" "com.liferay.portal.kernel.util.OrderByComparator"
}; };
_methodName206 = "countInPending"; _methodName207 = "countInPending";
_methodParameterTypes206 = new String[] { "java.util.Date" }; _methodParameterTypes207 = new String[] { "java.util.Date" };
_methodName208 = "countByMezzo_Utilizzata_CreateDate"; _methodName209 = "countByMezzo_Utilizzata_CreateDate";
_methodParameterTypes208 = new String[] { _methodParameterTypes209 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date" "java.lang.String", "java.lang.String", "java.util.Date"
}; };
_methodName209 = "deletePagamento"; _methodName210 = "deletePagamento";
_methodParameterTypes209 = new String[] { "long" }; _methodParameterTypes210 = new String[] { "long" };
_methodName210 = "deletePagamento"; _methodName211 = "deletePagamento";
_methodParameterTypes210 = new String[] { _methodParameterTypes211 = new String[] {
"it.tref.liferay.portos.bo.model.Pagamento" "it.tref.liferay.portos.bo.model.Pagamento"
}; };
_methodName211 = "updateEmailPendingPagamento"; _methodName212 = "updateEmailPendingPagamento";
_methodParameterTypes211 = new String[] { "long", "boolean" };
_methodName214 = "countByClassPk"; _methodParameterTypes212 = new String[] { "long", "boolean" };
_methodParameterTypes214 = new String[] { "long" }; _methodName215 = "countByClassPk";
_methodName215 = "findByClassPk";
_methodParameterTypes215 = new String[] { "long" }; _methodParameterTypes215 = new String[] { "long" };
_methodName216 = "findByIntPratica"; _methodName216 = "findByClassPk";
_methodParameterTypes216 = new String[] { "long" }; _methodParameterTypes216 = new String[] { "long" };
_methodName217 = "countByIntPratica"; _methodName217 = "findByIntPratica";
_methodParameterTypes217 = new String[] { "long" }; _methodParameterTypes217 = new String[] { "long" };
_methodName218 = "findByIntPratica_Visible"; _methodName218 = "countByIntPratica";
_methodParameterTypes218 = new String[] { "long" }; _methodParameterTypes218 = new String[] { "long" };
_methodName219 = "countByIntPratica_Visible"; _methodName219 = "findByIntPratica_Visible";
_methodParameterTypes219 = new String[] { "long" }; _methodParameterTypes219 = new String[] { "long" };
_methodName221 = "updatePagamentoManuale"; _methodName220 = "countByIntPratica_Visible";
_methodParameterTypes220 = new String[] { "long" };
_methodParameterTypes221 = new String[] { _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[] {
"long", "byte[][]", "java.lang.String", "long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName222 = "updatePagamentoManualeFromImport"; _methodName224 = "updatePagamentoManualeFromImport";
_methodParameterTypes222 = new String[] { _methodParameterTypes224 = new String[] {
"long", "byte[][]", "java.lang.String", "long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName223 = "fetchByOldPagamentoId"; _methodName225 = "fetchByOldPagamentoId";
_methodParameterTypes223 = new String[] { "long" }; _methodParameterTypes225 = new String[] { "long" };
_methodName224 = "updateOtf"; _methodName226 = "updateOtf";
_methodParameterTypes224 = new String[] { "long", "boolean" }; _methodParameterTypes226 = new String[] { "long", "boolean" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -528,69 +539,74 @@ public class PagamentoLocalServiceClpInvoker {
if (_methodName195.equals(name) && if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { 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], return PagamentoLocalServiceUtil.findByCommittente_Mezzo((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue()); ((Integer)arguments[3]).intValue());
} }
if (_methodName196.equals(name) && if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
return PagamentoLocalServiceUtil.countByCommittente_Mezzo((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.countByCommittente_Mezzo((java.lang.String)arguments[0],
(java.lang.String)arguments[1]); (java.lang.String)arguments[1]);
} }
if (_methodName197.equals(name) && if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
return PagamentoLocalServiceUtil.findByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.findByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (java.lang.String)arguments[2],
((Integer)arguments[3]).intValue(), ((Integer)arguments[3]).intValue(),
((Integer)arguments[4]).intValue()); ((Integer)arguments[4]).intValue());
} }
if (_methodName198.equals(name) && if (_methodName199.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
return PagamentoLocalServiceUtil.countByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.countByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2]); (java.lang.String)arguments[1], (java.lang.String)arguments[2]);
} }
if (_methodName199.equals(name) && if (_methodName200.equals(name) &&
Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.findByMezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue()); ((Integer)arguments[3]).intValue());
} }
if (_methodName200.equals(name) && if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
return PagamentoLocalServiceUtil.findByOldPagamentoId(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.findByOldPagamentoId(((Long)arguments[0]).longValue());
} }
if (_methodName201.equals(name) && if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
return PagamentoLocalServiceUtil.countByMezzo_Utilizzata((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.countByMezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1]); (java.lang.String)arguments[1]);
} }
if (_methodName202.equals(name) && if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.util.Date)arguments[2], (java.lang.String)arguments[1], (java.util.Date)arguments[2],
((Integer)arguments[3]).intValue(), ((Integer)arguments[3]).intValue(),
((Integer)arguments[4]).intValue()); ((Integer)arguments[4]).intValue());
} }
if (_methodName203.equals(name) && if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[1],
((Boolean)arguments[2]).booleanValue(), ((Boolean)arguments[2]).booleanValue(),
(java.util.Date)arguments[3]); (java.util.Date)arguments[3]);
} }
if (_methodName204.equals(name) && if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[1],
((Boolean)arguments[2]).booleanValue(), ((Boolean)arguments[2]).booleanValue(),
@ -599,73 +615,83 @@ public class PagamentoLocalServiceClpInvoker {
((Integer)arguments[5]).intValue()); ((Integer)arguments[5]).intValue());
} }
if (_methodName205.equals(name) && if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
return PagamentoLocalServiceUtil.findInPending((java.util.Date)arguments[0], return PagamentoLocalServiceUtil.findInPending((java.util.Date)arguments[0],
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue(), ((Integer)arguments[2]).intValue(),
(com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]);
} }
if (_methodName206.equals(name) && if (_methodName207.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
return PagamentoLocalServiceUtil.countInPending((java.util.Date)arguments[0]); return PagamentoLocalServiceUtil.countInPending((java.util.Date)arguments[0]);
} }
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 (_methodName209.equals(name) && if (_methodName209.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
return PagamentoLocalServiceUtil.deletePagamento(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.util.Date)arguments[2]);
} }
if (_methodName210.equals(name) && if (_methodName210.equals(name) &&
Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) {
return PagamentoLocalServiceUtil.deletePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]); return PagamentoLocalServiceUtil.deletePagamento(((Long)arguments[0]).longValue());
} }
if (_methodName211.equals(name) && if (_methodName211.equals(name) &&
Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
return PagamentoLocalServiceUtil.updateEmailPendingPagamento(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.deletePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]);
((Boolean)arguments[1]).booleanValue());
} }
if (_methodName214.equals(name) && if (_methodName212.equals(name) &&
Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.updateEmailPendingPagamento(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue());
} }
if (_methodName215.equals(name) && if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue());
} }
if (_methodName216.equals(name) && if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue());
} }
if (_methodName217.equals(name) && if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue());
} }
if (_methodName218.equals(name) && if (_methodName218.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) {
return PagamentoLocalServiceUtil.findByIntPratica_Visible(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue());
} }
if (_methodName219.equals(name) && if (_methodName219.equals(name) &&
Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { 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()); return PagamentoLocalServiceUtil.countByIntPratica_Visible(((Long)arguments[0]).longValue());
} }
if (_methodName221.equals(name) && if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { 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)) {
PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(), PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2], (byte[])arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]); (com.liferay.portal.service.ServiceContext)arguments[3]);
@ -673,8 +699,8 @@ public class PagamentoLocalServiceClpInvoker {
return null; return null;
} }
if (_methodName222.equals(name) && if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
PagamentoLocalServiceUtil.updatePagamentoManualeFromImport(((Long)arguments[0]).longValue(), PagamentoLocalServiceUtil.updatePagamentoManualeFromImport(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2], (byte[])arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]); (com.liferay.portal.service.ServiceContext)arguments[3]);
@ -682,13 +708,13 @@ public class PagamentoLocalServiceClpInvoker {
return null; return null;
} }
if (_methodName223.equals(name) && if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
return PagamentoLocalServiceUtil.fetchByOldPagamentoId(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.fetchByOldPagamentoId(((Long)arguments[0]).longValue());
} }
if (_methodName224.equals(name) && if (_methodName226.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) {
return PagamentoLocalServiceUtil.updateOtf(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.updateOtf(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue()); ((Boolean)arguments[1]).booleanValue());
} }
@ -780,16 +806,16 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes205; private String[] _methodParameterTypes205;
private String _methodName206; private String _methodName206;
private String[] _methodParameterTypes206; private String[] _methodParameterTypes206;
private String _methodName208; private String _methodName207;
private String[] _methodParameterTypes208; private String[] _methodParameterTypes207;
private String _methodName209; private String _methodName209;
private String[] _methodParameterTypes209; private String[] _methodParameterTypes209;
private String _methodName210; private String _methodName210;
private String[] _methodParameterTypes210; private String[] _methodParameterTypes210;
private String _methodName211; private String _methodName211;
private String[] _methodParameterTypes211; private String[] _methodParameterTypes211;
private String _methodName214; private String _methodName212;
private String[] _methodParameterTypes214; private String[] _methodParameterTypes212;
private String _methodName215; private String _methodName215;
private String[] _methodParameterTypes215; private String[] _methodParameterTypes215;
private String _methodName216; private String _methodName216;
@ -800,12 +826,16 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes218; private String[] _methodParameterTypes218;
private String _methodName219; private String _methodName219;
private String[] _methodParameterTypes219; private String[] _methodParameterTypes219;
private String _methodName221; private String _methodName220;
private String[] _methodParameterTypes221; private String[] _methodParameterTypes220;
private String _methodName222; private String _methodName222;
private String[] _methodParameterTypes222; private String[] _methodParameterTypes222;
private String _methodName223; private String _methodName223;
private String[] _methodParameterTypes223; private String[] _methodParameterTypes223;
private String _methodName224; private String _methodName224;
private String[] _methodParameterTypes224; 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,9 +32,29 @@ public class PagamentoServiceClpInvoker {
_methodParameterTypes161 = new String[] { "java.lang.String" }; _methodParameterTypes161 = new String[] { "java.lang.String" };
_methodName166 = "updatePagamentoManuale"; _methodName166 = "sostituisciPagamento";
_methodParameterTypes166 = new String[] { _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", "long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -56,6 +76,34 @@ public class PagamentoServiceClpInvoker {
if (_methodName166.equals(name) && if (_methodName166.equals(name) &&
Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { 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(), PagamentoServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2], (byte[])arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]); (com.liferay.portal.service.ServiceContext)arguments[3]);
@ -72,4 +120,10 @@ public class PagamentoServiceClpInvoker {
private String[] _methodParameterTypes161; private String[] _methodParameterTypes161;
private String _methodName166; private String _methodName166;
private String[] _methodParameterTypes166; 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,22 +590,6 @@ public class SoggettoLocalServiceClpInvoker {
_methodName273 = "getSoggettiByIntPraticaId_DtRimozioneNull"; _methodName273 = "getSoggettiByIntPraticaId_DtRimozioneNull";
_methodParameterTypes273 = new String[] { "long" }; _methodParameterTypes273 = new String[] { "long" };
_methodName274 = "getDelegaPlaceholder";
_methodParameterTypes274 = new String[] { };
_methodName275 = "savePdfDelega";
_methodParameterTypes275 = new String[] { "javax.portlet.PortletRequest" };
_methodName276 = "getPdfDelega";
_methodParameterTypes276 = new String[] { "javax.portlet.PortletRequest" };
_methodName277 = "getAnteprimaDelega";
_methodParameterTypes277 = new String[] { "javax.portlet.PortletRequest" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -1456,26 +1440,6 @@ public class SoggettoLocalServiceClpInvoker {
return SoggettoLocalServiceUtil.getSoggettiByIntPraticaId_DtRimozioneNull(((Long)arguments[0]).longValue()); return SoggettoLocalServiceUtil.getSoggettiByIntPraticaId_DtRimozioneNull(((Long)arguments[0]).longValue());
} }
if (_methodName274.equals(name) &&
Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) {
return SoggettoLocalServiceUtil.getDelegaPlaceholder();
}
if (_methodName275.equals(name) &&
Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) {
return SoggettoLocalServiceUtil.savePdfDelega((javax.portlet.PortletRequest)arguments[0]);
}
if (_methodName276.equals(name) &&
Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) {
return SoggettoLocalServiceUtil.getPdfDelega((javax.portlet.PortletRequest)arguments[0]);
}
if (_methodName277.equals(name) &&
Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) {
return SoggettoLocalServiceUtil.getAnteprimaDelega((javax.portlet.PortletRequest)arguments[0]);
}
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
@ -1681,12 +1645,4 @@ public class SoggettoLocalServiceClpInvoker {
private String[] _methodParameterTypes272; private String[] _methodParameterTypes272;
private String _methodName273; private String _methodName273;
private String[] _methodParameterTypes273; private String[] _methodParameterTypes273;
private String _methodName274;
private String[] _methodParameterTypes274;
private String _methodName275;
private String[] _methodParameterTypes275;
private String _methodName276;
private String[] _methodParameterTypes276;
private String _methodName277;
private String[] _methodParameterTypes277;
} }

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

@ -143,15 +143,14 @@ public class FineLavoriServiceSoap {
long userId, long fineLavoriId, long intPraticaId, boolean parziale, long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, java.util.Date dataFineLavori, boolean completata, java.util.Date dataFineLavori,
java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo, java.lang.String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, boolean normEsenteCollaudo,
java.lang.String comunicazioneDirettoreLavori, java.lang.String comunicazioneDirettoreLavori)
boolean richiestaAttestazione) throws RemoteException { throws RemoteException {
try { try {
it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.updateFineLavori(userId, it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.updateFineLavori(userId,
fineLavoriId, intPraticaId, parziale, completata, fineLavoriId, intPraticaId, parziale, completata,
dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo,
normEsenteSpese, normEsenteCollaudo, normEsenteCollaudo, comunicazioneDirettoreLavori);
comunicazioneDirettoreLavori, richiestaAttestazione);
return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue); return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue);
} }
@ -225,14 +224,12 @@ public class FineLavoriServiceSoap {
public static it.tref.liferay.portos.bo.model.FineLavoriSoap pagaInvia( public static it.tref.liferay.portos.bo.model.FineLavoriSoap pagaInvia(
long fineLavoriId, java.lang.String codiceFiscaleCommittente, long fineLavoriId, java.lang.String codiceFiscaleCommittente,
java.lang.String importoBolli, java.lang.String importoSpese,
java.lang.String currentURL, java.lang.String currentURL,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException { throws RemoteException {
try { try {
it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.pagaInvia(fineLavoriId, it.tref.liferay.portos.bo.model.FineLavori returnValue = FineLavoriServiceUtil.pagaInvia(fineLavoriId,
codiceFiscaleCommittente, importoBolli, importoSpese, codiceFiscaleCommittente, currentURL, serviceContext);
currentURL, serviceContext);
return it.tref.liferay.portos.bo.model.FineLavoriSoap.toSoapModel(returnValue); 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,6 +62,51 @@ import java.rmi.RemoteException;
* @generated * @generated
*/ */
public class PagamentoServiceSoap { 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, public static void updatePagamentoManuale(long pagamentoId, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) 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,12 +146,14 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
if (className.equals(DettPratica.class.getName())) { if (className.equals(DettPratica.class.getName())) {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(classPk); DettPratica dettPratica = dettPraticaLocalService.getDettPratica(classPk);
varianteNonSostanziale = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE) varianteNonSostanziale = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)
&& !dettPratica.getVarianteSostanziale() && !stato.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE); && !dettPratica.getVarianteSostanziale();
} }
String statoPraticaCode = varianteNonSostanziale ? "DPVNS" : PraticaUtil.getStatoPraticaCode(stato, intPratica); String statoPraticaCode = varianteNonSostanziale ? "DPVNS" : PraticaUtil.getStatoPraticaCode(stato, intPratica);
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode); String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate); propertiesTemplate);
_log.info("debugAvviso: " + propertiesTemplate + " (" + statoPraticaCode + ")"
+ (varianteNonSostanziale ? " non sostanziale" : StringPool.BLANK));
return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, fileEntryIdTemplate, classPk, return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, fileEntryIdTemplate, classPk,
className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, serviceContext); className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, serviceContext);
} }
@ -601,7 +603,6 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(PropertyFactoryUtil.forName("dtInvioSignal").isNull()); dynamicQuery.add(PropertyFactoryUtil.forName("dtInvioSignal").isNull());
dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("controlloPraticaId").ne(0L));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_INVIATO)); disjunction.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_INVIATO));
disjunction.add(PropertyFactoryUtil.forName("rifiutato").eq(true)); disjunction.add(PropertyFactoryUtil.forName("rifiutato").eq(true));
@ -646,7 +647,6 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(PropertyFactoryUtil.forName("dtTempistica").isNull()); dynamicQuery.add(PropertyFactoryUtil.forName("dtTempistica").isNull());
dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("controlloPraticaId").ne(0L));
if (Validator.isNotNull(avvisoId)) { if (Validator.isNotNull(avvisoId)) {
dynamicQuery.add(PropertyFactoryUtil.forName("avvisoId").eq(avvisoId)); dynamicQuery.add(PropertyFactoryUtil.forName("avvisoId").eq(avvisoId));
} }
@ -1106,12 +1106,9 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return avviso; return avviso;
} }
@Override
public Avviso simulaFirma(long avvisoId, ServiceContext serviceContext) throws Exception { public Avviso simulaFirma(long avvisoId, ServiceContext serviceContext) throws Exception {
if (configurazioneLocalService.isProduction()) { if (configurazioneLocalService.isDeveloper(serviceContext.getUserId())) {
throw new PortalException("Firma simulata non permessa");
} else {
Avviso avviso = fetchAvviso(avvisoId); Avviso avviso = fetchAvviso(avvisoId);
avviso.setFileEntryIdInvio(avviso.getFileEntryIdBase()); avviso.setFileEntryIdInvio(avviso.getFileEntryIdBase());
avviso = updateAvviso(avviso); avviso = updateAvviso(avviso);
@ -1120,6 +1117,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
avviso = updateAvvisoProtocollo(avviso.getAvvisoId(), protocollo); avviso = updateAvvisoProtocollo(avviso.getAvvisoId(), protocollo);
} }
return avviso; 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,6 +194,10 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
inviaMailnotifica(collaudoId, intPratica.getStatusByUserId(), now); inviaMailnotifica(collaudoId, intPratica.getStatusByUserId(), now);
} }
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); 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,8 +399,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
} }
@Override @Override
public void public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map<String, Serializable> workflowContext)
aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException { throws PortalException, SystemException {
ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId);

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

@ -1152,6 +1152,11 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
} }
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato);
delegaLocalService.concludiDeleghePagamento(dettPraticaId); 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,11 +16,14 @@ import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.base.FineLavoriLocalServiceBaseImpl; 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.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.AzioniPraticheUtil;
import it.tref.liferay.portos.bo.util.MailUtil; 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.PagamentiUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@ -35,8 +38,6 @@ import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.search.Indexable; import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType; import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
@ -67,8 +68,6 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
* it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil} to access the fine lavori local service. * 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 { private FineLavori initFineLavori(ServiceContext serviceContext) throws PortalException, SystemException {
User user = userLocalService.getUser(serviceContext.getUserId()); User user = userLocalService.getUser(serviceContext.getUserId());
@ -133,8 +132,8 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
@Indexable(type = IndexableType.REINDEX) @Indexable(type = IndexableType.REINDEX)
public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale, public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo, boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, String comunicazioneDirettoreLavori, boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws NoSuchFineLavoriException,
boolean richiestaAttestazione) throws NoSuchFineLavoriException, SystemException { SystemException {
FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId);
fineLavori.setParziale(parziale); fineLavori.setParziale(parziale);
@ -142,10 +141,8 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
fineLavori.setDataFineLavori(dataFineLavori); fineLavori.setDataFineLavori(dataFineLavori);
fineLavori.setCodiceFiscaleDelegato(codiceFiscaleDelegato); fineLavori.setCodiceFiscaleDelegato(codiceFiscaleDelegato);
fineLavori.setNormEsenteBollo(normEsenteBollo); fineLavori.setNormEsenteBollo(normEsenteBollo);
fineLavori.setNormEsenteSpese(normEsenteSpese);
fineLavori.setNormEsenteCollaudo(normEsenteCollaudo); fineLavori.setNormEsenteCollaudo(normEsenteCollaudo);
fineLavori.setComunicazioneDirettoreLavori(comunicazioneDirettoreLavori); fineLavori.setComunicazioneDirettoreLavori(comunicazioneDirettoreLavori);
fineLavori.setRichiestaAttestazione(richiestaAttestazione);
fineLavori = fineLavoriPersistence.update(fineLavori); fineLavori = fineLavoriPersistence.update(fineLavori);
return fineLavori; return fineLavori;
} }
@ -175,18 +172,16 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
} }
@Override @Override
public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String importoBolli, public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String currentURL,
String importoSpese, String currentURL, ServiceContext serviceContext) throws SystemException, ServiceContext serviceContext) throws SystemException, PortalException {
PortalException {
FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId);
fineLavori.setImportoBolli(importoBolli); BigDecimal importoBolli = PagamentiCommonUtil.getImportoBolli(fineLavori.getCompanyId(),
fineLavori.setImportoSpese(importoSpese); fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI);
fineLavori.setImportoBolli(importoBolli.toString());
fineLavori = updateFineLavori(fineLavori); fineLavori = updateFineLavori(fineLavori);
PagamentiUtil.nuovoPagamento(currentURL, fineLavoriId, FineLavori.class.getName(), PagamentiUtil.nuovoPagamento(currentURL, fineLavori.getFineLavoriId(), FineLavori.class.getName(),
PagamentoConstants.PAGAMENTO_BOLLI, importoBolli, codiceFiscaleCommittente, serviceContext); PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext);
PagamentiUtil.nuovoPagamento(currentURL, fineLavoriId, FineLavori.class.getName(),
PagamentoConstants.PAGAMENTO_ONERI, importoSpese, codiceFiscaleCommittente, serviceContext);
return fineLavori; return fineLavori;
} }
@ -218,6 +213,10 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
this.inviaMailnotifica(fineLavoriId, intPratica.getStatusByUserId(), now); this.inviaMailnotifica(fineLavoriId, intPratica.getStatusByUserId(), now);
} }
pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); 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,14 +73,13 @@ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl {
@Override @Override
public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale, public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale,
boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo, boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normEsenteCollaudo, String comunicazioneDirettoreLavori, boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws PortalException, SystemException {
boolean richiestaAttestazione) throws PortalException, SystemException {
FineLavori fineLavori = getFineLavori(fineLavoriId); FineLavori fineLavori = getFineLavori(fineLavoriId);
if (fineLavori.getUserId() == userId) { if (fineLavori.getUserId() == userId) {
fineLavori = fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, intPraticaId, parziale, fineLavori = fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, intPraticaId, parziale,
completata, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteSpese, completata, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo,
normEsenteCollaudo, comunicazioneDirettoreLavori, richiestaAttestazione); comunicazioneDirettoreLavori);
} }
return fineLavori; return fineLavori;
} }
@ -112,12 +111,10 @@ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl {
} }
@Override @Override
public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String importoBolli, public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String currentURL,
String importoSpese, String currentURL, ServiceContext serviceContext) throws SystemException, ServiceContext serviceContext) throws SystemException, PortalException {
PortalException {
return fineLavoriLocalService.pagaInvia(fineLavoriId, codiceFiscaleCommittente, importoBolli, importoSpese, return fineLavoriLocalService.pagaInvia(fineLavoriId, codiceFiscaleCommittente, currentURL, serviceContext);
currentURL, serviceContext);
} }
@Override @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 { try {
lista = intPraticaPersistence.findWithDynamicQuery(dq); lista = intPraticaPersistence.findWithDynamicQuery(dq);
} catch (SystemException e) { } catch (SystemException e) {
_log.error("Errore durante la selezione di pratiche sorteggiabili.", e); _log.error("Errore durante la selezione di mappe sorteggiabili.", e);
} }
HashMap<Long, String> territoriProvince = new HashMap<Long, String>(); HashMap<Long, String> territoriProvince = new HashMap<Long, String>();
for (IntPratica pratica : lista) { for (IntPratica pratica : lista) {
@ -500,7 +500,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
User newUser = userLocalService.getUser(soggettoId); User newUser = userLocalService.getUser(soggettoId);
// sostituisci int pratica // sostituisci int pratica
intPratica.setUserId(soggettoId); intPratica.setUserId(soggettoId);
intPratica.setUserName(newUser.getScreenName()); intPratica.setUserName(newUser.getFullName());
DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId);
dettPratica.setCodiceFiscaleDelegatoCommittente(newUser.getScreenName()); dettPratica.setCodiceFiscaleDelegatoCommittente(newUser.getScreenName());
dettPraticaLocalService.updateDettPratica(dettPratica); dettPraticaLocalService.updateDettPratica(dettPratica);
@ -948,6 +948,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
} }
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get( String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(
StatoPraticaConstants.ANNULLA_ISTANZA); StatoPraticaConstants.ANNULLA_ISTANZA);
_log.info("debugAvviso: " + propertiesTemplate);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate); propertiesTemplate);
avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO,
@ -973,6 +974,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
serviceContext.setCompanyId(controlloPratica.getCompanyId()); serviceContext.setCompanyId(controlloPratica.getCompanyId());
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get( String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(
StatoPraticaConstants.CAMBIO_ISTRUTTORE); StatoPraticaConstants.CAMBIO_ISTRUTTORE);
_log.info("debugAvviso: " + propertiesTemplate);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate); propertiesTemplate);
avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO,
@ -1065,6 +1067,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
territorio.getCodiceProvincia()); territorio.getCodiceProvincia());
String tipoDocumento = "DOM"; String tipoDocumento = "DOM";
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(tipoDocumento); String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(tipoDocumento);
_log.info("debugAvviso: " + propertiesTemplate);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(intPratica.getCompanyId(), long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(intPratica.getCompanyId(),
propertiesTemplate); propertiesTemplate);
String propertiesFolder = AvvisoUtil.getAllTipoDocumentoFolderProps().get(tipoDocumento); 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,6 +17,8 @@ import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl;
import it.tref.liferay.portos.bo.service.base.PagamentoLocalServiceBaseImpl; 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.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; 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 it.tref.liferay.portos.bo.util.PraticaUtil;
import java.io.IOException; import java.io.IOException;
@ -159,11 +161,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
if (updateReference) { if (updateReference) {
switch (tipoPagamento) { switch (tipoPagamento) {
case PagamentoConstants.PAGAMENTO_ONERI: case PagamentoConstants.PAGAMENTO_ONERI:
fineLavori.setPagamentoSpeseId(pagamento.getPagamentoId()); throw new SystemException("error.fields.fineLavori.pagamento.classPk.invalid");
fineLavori.setCodicePagamentoSpese(pagamento.getCodice());
fineLavori.setCausalePagamento(pagamento.getCausale());
fineLavori.setMezzoPagamento(mezzo);
break;
case PagamentoConstants.PAGAMENTO_BOLLI: case PagamentoConstants.PAGAMENTO_BOLLI:
fineLavori.setPagamentoId(pagamento.getPagamentoId()); fineLavori.setPagamentoId(pagamento.getPagamentoId());
fineLavori.setCodicePagamento(pagamento.getCodice()); fineLavori.setCodicePagamento(pagamento.getCodice());
@ -222,6 +220,14 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento); 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") @SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end) public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end)
@ -325,8 +331,8 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
private DynamicQuery createPendingQuery(Date date) { private DynamicQuery createPendingQuery(Date date) {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.in("utilizzata", dynamicQuery.add(RestrictionsFactoryUtil.in("utilizzata", new String[] {
new String[] { PagamentoConstants.UTILIZZATA_IN_CORSO })); PagamentoConstants.UTILIZZATA_IN_CORSO, PagamentoConstants.UTILIZZATA_ANNULLATO }));
dynamicQuery.add(RestrictionsFactoryUtil.le("createDate", date)); dynamicQuery.add(RestrictionsFactoryUtil.le("createDate", date));
return dynamicQuery; return dynamicQuery;
} }
@ -439,6 +445,90 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return dynamicQuery; 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 @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName, public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws IOException, PortalException, SystemException { 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,6 +13,8 @@ import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.base.PagamentoServiceBaseImpl; 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 it.tref.liferay.portos.bo.util.DelegheUtil;
import java.io.IOException; import java.io.IOException;
@ -41,6 +43,46 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl {
* it.tref.liferay.portos.bo.service.PagamentoServiceUtil} to access the pagamento remote service. * 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 @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName, public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws IOException, PortalException, SystemException { 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,45 +8,17 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.tref.liferay.portos.bo.NoSuchProvinciaException;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.service.base.SoggettoLocalServiceBaseImpl; import it.tref.liferay.portos.bo.service.base.SoggettoLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.SoggettiUtil; import it.tref.liferay.portos.bo.util.SoggettiUtil;
import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowConstants;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.Scanner;
import javax.portlet.PortletRequest;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.tool.xml.Pipeline;
import com.itextpdf.tool.xml.XMLWorker;
import com.itextpdf.tool.xml.XMLWorkerHelper;
import com.itextpdf.tool.xml.html.TagProcessorFactory;
import com.itextpdf.tool.xml.html.Tags;
import com.itextpdf.tool.xml.parser.XMLParser;
import com.itextpdf.tool.xml.pipeline.css.CSSResolver;
import com.itextpdf.tool.xml.pipeline.css.CssResolverPipeline;
import com.itextpdf.tool.xml.pipeline.end.PdfWriterPipeline;
import com.itextpdf.tool.xml.pipeline.html.HtmlPipeline;
import com.itextpdf.tool.xml.pipeline.html.HtmlPipelineContext;
import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.Disjunction;
import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil; import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil;
@ -54,22 +26,13 @@ import com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.HtmlUtil;
import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.User; import com.liferay.portal.model.User;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.ServiceContextFactory;
import com.liferay.portlet.documentlibrary.model.DLFolder;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil;
/** /**
* The implementation of the soggetto local service. * The implementation of the soggetto local service.
@ -91,8 +54,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
* it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil} to access the soggetto local service. * it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil} to access the soggetto local service.
*/ */
private static final Log _log = LogFactoryUtil.getLog(SoggettoLocalServiceImpl.class); public static final Log _log = LogFactoryUtil.getLog(SoggettoLocalServiceImpl.class);
private static final SimpleDateFormat SDF = new SimpleDateFormat("dd/MM/yyyy");
@Override @Override
public Soggetto addSoggetto(long userId, long dettPraticaId, long intPraticaId, String nome, String cognome, public Soggetto addSoggetto(long userId, long dettPraticaId, long intPraticaId, String nome, String cognome,
@ -367,7 +329,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
Soggetto ret = super.deleteSoggetto(soggetto); Soggetto ret = super.deleteSoggetto(soggetto);
long intPraticaId = soggetto.getIntPraticaId(); long intPraticaId = soggetto.getIntPraticaId();
long idSoggetto = soggetto.getSoggettoId(); long idSoggetto = soggetto.getSoggettoId();
List<Soggetto> soggettiIntPratica = findByIntPratica(intPraticaId); List<Soggetto> soggettiIntPratica = soggettoLocalService.findByIntPratica(intPraticaId);
for (Soggetto sgt : soggettiIntPratica) { for (Soggetto sgt : soggettiIntPratica) {
long sostituitoDa = sgt.getSostituitoDa(); long sostituitoDa = sgt.getSostituitoDa();
if (Validator.isNotNull(sostituitoDa) && sostituitoDa > 0 && idSoggetto == sostituitoDa) { if (Validator.isNotNull(sostituitoDa) && sostituitoDa > 0 && idSoggetto == sostituitoDa) {
@ -1155,8 +1117,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
} }
@Override @Override
public int public int countByUserId_CodiceFiscale_TipologiaSoggetto(long userId, String codiceFiscale, String tipologiaSoggetto)
countByUserId_CodiceFiscale_TipologiaSoggetto(long userId, String codiceFiscale, String tipologiaSoggetto)
throws SystemException { throws SystemException {
return soggettoPersistence.countByUserId_CodiceFiscale_TipologiaSoggetto(userId, codiceFiscale, return soggettoPersistence.countByUserId_CodiceFiscale_TipologiaSoggetto(userId, codiceFiscale,
@ -1167,7 +1128,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
public List<Long> findIntPraticaBySoggettoId(long soggettoId) throws PortalException, SystemException { public List<Long> findIntPraticaBySoggettoId(long soggettoId) throws PortalException, SystemException {
User user = userLocalService.getUser(soggettoId); User user = userLocalService.getUser(soggettoId);
DynamicQuery dynamicQuerySoggetti = dynamicQuery(); DynamicQuery dynamicQuerySoggetti = soggettoLocalService.dynamicQuery();
dynamicQuerySoggetti.add(RestrictionsFactoryUtil.ilike("codiceFiscale", user.getScreenName())); dynamicQuerySoggetti.add(RestrictionsFactoryUtil.ilike("codiceFiscale", user.getScreenName()));
dynamicQuerySoggetti.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil dynamicQuerySoggetti.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("intPraticaId"))); .property("intPraticaId")));
@ -1221,7 +1182,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (!SoggettiUtil.hasSoggettoPrincipale(dettPraticaId, soggetto.getTipologiaSoggetto())) { if (!SoggettiUtil.hasSoggettoPrincipale(dettPraticaId, soggetto.getTipologiaSoggetto())) {
updatePrincipale(dettPraticaId, soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto()); updatePrincipale(dettPraticaId, soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto());
} }
return updateSoggetto(soggetto); return soggettoLocalService.updateSoggetto(soggetto);
} }
@Override @Override
@ -1234,7 +1195,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPraticaIdRimozione)) { if (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPraticaIdRimozione)) {
updatePrincipale(dettPraticaIdRimozione, StringPool.BLANK, soggetto.getTipologiaSoggetto()); updatePrincipale(dettPraticaIdRimozione, StringPool.BLANK, soggetto.getTipologiaSoggetto());
} }
return updateSoggetto(soggetto); return soggettoLocalService.updateSoggetto(soggetto);
} }
@Override @Override
@ -1243,7 +1204,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
Soggetto soggetto = invalidaSoggetto(soggettoId, dettPraticaIdRimozione); Soggetto soggetto = invalidaSoggetto(soggettoId, dettPraticaIdRimozione);
soggetto.setSostituitoDa(sostituitoDa); soggetto.setSostituitoDa(sostituitoDa);
return updateSoggetto(soggetto); return soggettoLocalService.updateSoggetto(soggetto);
} }
@Override @Override
@ -1269,7 +1230,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
if (!SoggettiUtil.hasSoggettoPrincipale(soggetto.getDettPraticaId(), soggetto.getTipologiaSoggetto())) { if (!SoggettiUtil.hasSoggettoPrincipale(soggetto.getDettPraticaId(), soggetto.getTipologiaSoggetto())) {
updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto()); updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto());
} }
soggetto = updateSoggetto(soggetto); soggetto = soggettoLocalService.updateSoggetto(soggetto);
return soggetto; return soggetto;
} }
@ -1277,208 +1238,9 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
@Override @Override
public List<Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull(long intPraticaId) throws SystemException { public List<Soggetto> getSoggettiByIntPraticaId_DtRimozioneNull(long intPraticaId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = soggettoLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione"));
return dynamicQuery(dynamicQuery); return soggettoLocalService.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,20 +5947,13 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl<FineLavori>
fineLavoriImpl.setDataEffettuazione(fineLavori.getDataEffettuazione()); fineLavoriImpl.setDataEffettuazione(fineLavori.getDataEffettuazione());
fineLavoriImpl.setDataFineLavori(fineLavori.getDataFineLavori()); fineLavoriImpl.setDataFineLavori(fineLavori.getDataFineLavori());
fineLavoriImpl.setNormEsenteBollo(fineLavori.isNormEsenteBollo()); fineLavoriImpl.setNormEsenteBollo(fineLavori.isNormEsenteBollo());
fineLavoriImpl.setNormEsenteSpese(fineLavori.isNormEsenteSpese());
fineLavoriImpl.setNormEsenteCollaudo(fineLavori.isNormEsenteCollaudo()); fineLavoriImpl.setNormEsenteCollaudo(fineLavori.isNormEsenteCollaudo());
fineLavoriImpl.setComunicazioneDirettoreLavori(fineLavori.getComunicazioneDirettoreLavori()); fineLavoriImpl.setComunicazioneDirettoreLavori(fineLavori.getComunicazioneDirettoreLavori());
fineLavoriImpl.setPagamentoId(fineLavori.getPagamentoId()); fineLavoriImpl.setPagamentoId(fineLavori.getPagamentoId());
fineLavoriImpl.setPagamentoSpeseId(fineLavori.getPagamentoSpeseId());
fineLavoriImpl.setCodicePagamento(fineLavori.getCodicePagamento()); fineLavoriImpl.setCodicePagamento(fineLavori.getCodicePagamento());
fineLavoriImpl.setCodicePagamentoSpese(fineLavori.getCodicePagamentoSpese());
fineLavoriImpl.setCausalePagamento(fineLavori.getCausalePagamento()); fineLavoriImpl.setCausalePagamento(fineLavori.getCausalePagamento());
fineLavoriImpl.setCausalePagamentoSpese(fineLavori.getCausalePagamentoSpese());
fineLavoriImpl.setMezzoPagamento(fineLavori.getMezzoPagamento()); fineLavoriImpl.setMezzoPagamento(fineLavori.getMezzoPagamento());
fineLavoriImpl.setMezzoPagamentoSpese(fineLavori.getMezzoPagamentoSpese());
fineLavoriImpl.setImportoBolli(fineLavori.getImportoBolli()); fineLavoriImpl.setImportoBolli(fineLavori.getImportoBolli());
fineLavoriImpl.setImportoSpese(fineLavori.getImportoSpese());
fineLavoriImpl.setRichiestaAttestazione(fineLavori.isRichiestaAttestazione());
return fineLavoriImpl; 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,5 +1,8 @@
package it.tref.liferay.portos.bo.util; 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.Collaudo;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.FineLavori;
@ -11,12 +14,17 @@ 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.PagamentoConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import java.io.IOException;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.List;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.CalendarFactoryUtil; import com.liferay.portal.kernel.util.CalendarFactoryUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
@ -24,6 +32,82 @@ import com.liferay.portal.service.ServiceContext;
public abstract class PagamentiUtil { 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) public static BigDecimal getImportoBolli(long companyId, long dettPraticaId, String tipoIntegrazione)
throws PortalException, SystemException { throws PortalException, SystemException {
@ -64,10 +148,10 @@ public abstract class PagamentiUtil {
} else if (FineLavori.class.getName().equals(className)) { } else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPk); FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPk);
esenzioneBolli = fineLavori.isNormEsenteBollo(); esenzioneBolli = fineLavori.isNormEsenteBollo();
esenzioneSpeseIstruttoria = fineLavori.isNormEsenteSpese(); esenzioneSpeseIstruttoria = true;
tipoIntegrazione = TipoIntegrazioneUtil.FINE_LAVORI; tipoIntegrazione = TipoIntegrazioneUtil.FINE_LAVORI;
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
pagamentoId = fineLavori.getPagamentoSpeseId(); throw new SystemException("error.fields.fineLavori.pagamento.classPk.invalid");
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
pagamentoId = fineLavori.getPagamentoId(); pagamentoId = fineLavori.getPagamentoId();
} }
@ -84,6 +168,7 @@ public abstract class PagamentiUtil {
} else { } else {
throw new SystemException("error.fields.pratica.pagamento.classPk.invalid"); throw new SystemException("error.fields.pratica.pagamento.classPk.invalid");
} }
List<String> importi = new ArrayList<>();
if (esenzioneSpeseIstruttoria && esenzioneBolli) { if (esenzioneSpeseIstruttoria && esenzioneBolli) {
throw new SystemException("error.fields.pratica.pagamento.esente.oneri.bolli"); throw new SystemException("error.fields.pratica.pagamento.esente.oneri.bolli");
} else { } else {
@ -94,6 +179,15 @@ public abstract class PagamentiUtil {
try { try {
BigDecimal importoVal = new BigDecimal(importo); BigDecimal importoVal = new BigDecimal(importo);
importo = importoVal.toPlainString(); 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) { } catch (NumberFormatException e) {
throw new SystemException("error.fields.pratica.pagamento." throw new SystemException("error.fields.pratica.pagamento."
+ (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) ? "bolli" + (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) ? "bolli"
@ -123,7 +217,7 @@ public abstract class PagamentiUtil {
if (add) { if (add) {
return PagamentoLocalServiceUtil.addPagamentoAndUpdate(StringPool.BLANK, StringPool.BLANK, return PagamentoLocalServiceUtil.addPagamentoAndUpdate(StringPool.BLANK, StringPool.BLANK,
PagamentoConstants.MEZZO_MANUALE, codiceFiscaleCommittente, tipoPagamento, importo, PagamentoConstants.MEZZO_MANUALE, codiceFiscaleCommittente, tipoPagamento, importo,
PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, 0L, serviceContext); PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, 0l, serviceContext);
} }
return null; return null;
} }

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

@ -1,83 +0,0 @@
<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

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

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2849 build.number=2809
build.date=1659108769615 build.date=1652801248548
build.auto.upgrade=true 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:param name="tabs1" value="<%=tabs1%>" />
</portlet:actionURL> </portlet:actionURL>
<c:if test="<%= !ConfigurazioneLocalServiceUtil.isProduction() <c:if test="<%= ConfigurazioneLocalServiceUtil.isDeveloper(user)
&& avviso.getUserCodiceFiscalePrimaFirma().equalsIgnoreCase(user.getScreenName()) %>"> && avviso.getUserCodiceFiscalePrimaFirma().equalsIgnoreCase(user.getScreenName()) %>">
<portlet:actionURL name="simulaFirma" var="simulaFirmaURL"> <portlet:actionURL name="simulaFirma" var="simulaFirmaURL">
<portlet:param name="mvcPath" value="/html/gestionefirme/view.jsp" /> <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="Stato" value='<%= LanguageUtil.get(pageContext, "pagamento-utilizzata-"+pagamento.getUtilizzata()) %>'/>
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Spese Istruttoria" > <liferay-ui:search-container-column-text cssClass="text-nowrap" name="Spese Istruttoria" >
<c:if test="<%= PagamentoConstants.PAGAMENTO_ONERI.equalsIgnoreCase(pagamento.getTipoPagamento()) %>"> <c:if test="<%= PagamentoConstants.PAGAMENTO_ONERI.equalsIgnoreCase(pagamento.getTipoPagamento()) || PagamentoConstants.PAGAMENTO_ONERI_BOLLI.equals(pagamento.getTipoPagamento()) %>">
<% <%
String result = ""; String result = "";
if(dettPratica.isNormEsenteSpese()){ if(dettPratica.isNormEsenteSpese()){
@ -82,7 +82,10 @@
<liferay-ui:search-container-column-text> <liferay-ui:search-container-column-text>
<% <%
String[] notAllowed = new String[]{}; String[] notAllowed = new String[]{PagamentoConstants.UTILIZZATA_SOSTITUITA, PagamentoConstants.UTILIZZATA_RIFIUTATA, PagamentoConstants.UTILIZZATA_NON_PAGABILE};
%>
<c:if test="<%= !Arrays.asList(notAllowed).contains(pagamento.getUtilizzata()) %>">
<%
String buttonId = "pagamentoButton_"+index; String buttonId = "pagamentoButton_"+index;
String contentId = "pagamentoContent_"+index; String contentId = "pagamentoContent_"+index;
%> %>
@ -106,6 +109,11 @@
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(pagamento.getClassPk()) %>"/> <liferay-util:param name="dettPraticaId" value="<%= String.valueOf(pagamento.getClassPk()) %>"/>
</liferay-util:include> </liferay-util:include>
</c:if> </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> </div>
<liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="Dettaglio Pagamento"></liferay-util:param> <liferay-util:param name="titolo" value="Dettaglio Pagamento"></liferay-util:param>
@ -113,6 +121,7 @@
<liferay-util:param name="contentDiv" value="<%=contentId%>"></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="width" value="750"></liferay-util:param>
</liferay-util:include> </liferay-util:include>
</c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</c:if> </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" > <liferay-ui:search-container-column-text cssClass="text-nowrap" name="NumeroProgetto" >
<% <%
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(pagamento.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(pagamento.getIntPraticaId());
if (Validator.isNotNull(intPratica)) { if(Validator.isNotNull(intPratica)){
out.println(intPratica.getNumeroProgetto()); out.println(intPratica.getNumeroProgetto());
} }
%> %>
@ -64,6 +64,44 @@
</liferay-ui:search-container-column-text> </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="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 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-container-row>
<liferay-ui:search-iterator paginate="false" />
<liferay-ui:search-iterator paginate="<%= false %>" />
</liferay-ui:search-container> </liferay-ui:search-container>

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

@ -60,6 +60,14 @@
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span> <span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span>
<% } else if(pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%> <% } else if(pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-03") %></strong></span> <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 {%> <% } else {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-00") %></strong></span> <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,6 +35,12 @@
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span> <span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span>
<% } else if(pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%> <% } else if(pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-03") %></strong></span> <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 {%> <% } else {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-00") %></strong></span> <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,6 +35,14 @@
<span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span> <span><strong class="text-success"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-04") %></strong></span>
<% } else if(pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%> <% } else if(pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-03") %></strong></span> <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 {%> <% } else {%>
<span><strong class="text-warning"><%= LanguageUtil.get(pageContext, "pagamento-utilizzata-00") %></strong></span> <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,9 +57,6 @@ String dataSorteggio = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(compa
<%= dataSorteggio %>. <strong>Si è sicuri di volerlo lanciare?</strong> <%= dataSorteggio %>. <strong>Si è sicuri di volerlo lanciare?</strong>
</div> </div>
<aui:form action="<%= lanciaSorteggioURL %>" method="post" name="fmLanciaSorteggio"> <aui:form action="<%= lanciaSorteggioURL %>" method="post" name="fmLanciaSorteggio">
<div>
<aui:input name="dtRange" label="Data range" />
</div>
<div> <div>
<aui:button cssClass="btn-danger" type="submit" value="Lancia Sorteggio" /> <aui:button cssClass="btn-danger" type="submit" value="Lancia Sorteggio" />
</div> </div>

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

@ -1,45 +1,67 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.exception.PortalException"%>
<%@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.repository.model.FileEntry"%>
<%@page import="com.liferay.portal.kernel.util.CalendarUtil"%> <%@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="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.util.CalendarUtil"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@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.DateFormat"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.util.Date"%> <%@page import="java.util.Date"%>
<%@page import="javax.portlet.PortletURL"%> <%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%>
<%@page import="org.apache.commons.lang.time.DateUtils"%>
<%@include file="/html/sorteggio/init.jsp" %> <%@include file="/html/sorteggio/init.jsp" %>
<% <%
long companyId = company.getCompanyId(); long companyId = company.getCompanyId();
long groupId = themeDisplay.getScopeGroupId(); 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; Date dtUltimoSorteggio = null;
if (Validator.isNotNull(dataUltimoSorteggioString)) { if (Validator.isNotNull(dataUltimoSorteggioString)) {
Date now = DateUtils.truncate(new Date(), Calendar.DATE); 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); dataUltimoSorteggioString), Calendar.DATE);
} }
DateFormat formatDtSorteggio = DateFormat.getDateInstance(DateFormat.FULL, locale); DateFormat formatDtSorteggio = DateFormat.getDateInstance(DateFormat.FULL, locale);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
SimpleDateFormat sdfSorteggio = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); SimpleDateFormat sdfSorteggio = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
Date dtProssimoSorteggio = null; Date dtProssimoSorteggio = null;
String dataProssimoSorteggio = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, String dataProssimoSorteggio =
"conf.geniocivile.sorteggio.data.prossimo.sorteggio"); ConfigurazioneServiceUtil.findByC_ChiaveString(company.getCompanyId(), "conf.geniocivile.sorteggio.data.prossimo.sorteggio");
if(dataProssimoSorteggio != null && !dataProssimoSorteggio.equals("")){ if(dataProssimoSorteggio != null && !dataProssimoSorteggio.equals("")){
dtProssimoSorteggio = DateUtils.truncate(sdf.parse(dataProssimoSorteggio), Calendar.DATE); dtProssimoSorteggio = DateUtils.truncate(sdf.parse(dataProssimoSorteggio), Calendar.DATE);
} }
String homeURL = ParamUtil.getString(renderRequest, "homeURL"); String homeURL = ParamUtil.getString(renderRequest, "homeURL");
if (Validator.isNull(homeURL)) { if (Validator.isNull(homeURL)) {
homeURL = PortletURLUtil.getCurrent(renderRequest, renderResponse).toString(); homeURL = PortletURLUtil.getCurrent(renderRequest, renderResponse).toString();
} }
boolean search = ParamUtil.getBoolean(renderRequest, "search"); boolean search = ParamUtil.getBoolean(renderRequest, "search");
boolean detailSorteggio = ParamUtil.getBoolean(renderRequest, "detailSorteggio"); boolean detailSorteggio = ParamUtil.getBoolean(renderRequest, "detailSorteggio");
String anno = ParamUtil.getString(renderRequest, "anno"); String anno = ParamUtil.getString(renderRequest, "anno");
String mese = ParamUtil.getString(renderRequest, "mese"); String mese = ParamUtil.getString(renderRequest, "mese");
int settimana = ParamUtil.getInteger(renderRequest, "settimana"); int settimana = ParamUtil.getInteger(renderRequest, "settimana");
@ -48,24 +70,36 @@ String committente = ParamUtil.getString(renderRequest, "committente");
String tecnico = ParamUtil.getString(renderRequest, "tecnico"); String tecnico = ParamUtil.getString(renderRequest, "tecnico");
String pratica = ParamUtil.getString(renderRequest, "pratica"); String pratica = ParamUtil.getString(renderRequest, "pratica");
String numeroEstrazione = ParamUtil.getString(renderRequest, "numeroEstrazione"); String numeroEstrazione = ParamUtil.getString(renderRequest, "numeroEstrazione");
//Task 31433
String provincia = ParamUtil.getString(renderRequest, "provincia"); String provincia = ParamUtil.getString(renderRequest, "provincia");
String[] mesi = CalendarUtil.getMonths(locale); String[] mesi = CalendarUtil.getMonths(locale);
boolean isPublicLayout = layout.isPublicLayout(); boolean isPublicLayout = layout.isPublicLayout();
%> %>
<portlet:renderURL var="ricercaSorteggiURL"> <portlet:renderURL var="ricercaSorteggiURL">
<portlet:param name="homeURL" value="<%= homeURL %>" /> <portlet:param name="homeURL" value="<%= homeURL %>"/>
<portlet:param name="search" value="true" /> <portlet:param name="search" value="<%= String.valueOf(true) %>"/>
</portlet:renderURL> </portlet:renderURL>
<c:if test="<%= search || detailSorteggio %>"> <c:if test="<%= search || detailSorteggio %>">
<liferay-ui:header title="" backURL="<%= homeURL %>" />
<liferay-ui:header
title=""
backURL="<%=homeURL %>" />
</c:if> </c:if>
<div class="container-fluid" style="padding: 15px;"> <div class="container-fluid" style="padding: 15px;">
<c:if test="<%= !detailSorteggio %>"> <c:if test="<%=!detailSorteggio %>">
<aui:fieldset label="rs" style="width:100%"> <aui:fieldset label="rs" style="width:100%">
<aui:form action="<%= ricercaSorteggiURL %>" method="post" name="fm"> <aui:form action="<%= ricercaSorteggiURL %>" method="post" name="fm">
<div class="row"> <div class="row">
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-sm-12 col-md-4">
<aui:input name="anno" label="rs-anno" size="25" value="<%= anno %>"> <aui:input name="anno" label="rs-anno" size="25" value="<%=anno %>">
<aui:validator name="custom" errorMessage="campo-non-valido" > <aui:validator name="custom" errorMessage="campo-non-valido" >
function (val, fieldNode, ruleValue) { function (val, fieldNode, ruleValue) {
if(val != "") { if(val != "") {
@ -78,9 +112,9 @@ boolean isPublicLayout = layout.isPublicLayout();
} }
</aui:validator> </aui:validator>
</aui:input> </aui:input>
<c:if test="<%= !isPublicLayout %>"> <c:if test="<%=!isPublicLayout %>">
<aui:input name="numeroEstrazione" label="label.admingeniocivile.sorteggi.numeroEstrazione" <!-- Bug 32653 -->
size="25" value="<%= numeroEstrazione %>"> <aui:input name="numeroEstrazione" label="label.admingeniocivile.sorteggi.numeroEstrazione" size="25" value="<%= numeroEstrazione %>">
<aui:validator name="custom" errorMessage="campo-non-valido" > <aui:validator name="custom" errorMessage="campo-non-valido" >
function (val, fieldNode, ruleValue) { function (val, fieldNode, ruleValue) {
if(val != "") { if(val != "") {
@ -95,7 +129,7 @@ boolean isPublicLayout = layout.isPublicLayout();
</aui:input> </aui:input>
</c:if> </c:if>
</div> </div>
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-sm-12 col-md-4">
<aui:select name="mese" label="Mese"> <aui:select name="mese" label="Mese">
<aui:option value="null">-</aui:option> <aui:option value="null">-</aui:option>
<aui:option value="01" label='Gennaio'></aui:option> <aui:option value="01" label='Gennaio'></aui:option>
@ -111,15 +145,15 @@ boolean isPublicLayout = layout.isPublicLayout();
<aui:option value="11" label='Novembre'></aui:option> <aui:option value="11" label='Novembre'></aui:option>
<aui:option value="12" label='Dicembre'></aui:option> <aui:option value="12" label='Dicembre'></aui:option>
</aui:select> </aui:select>
<aui:input name="settimana" label="rs-settimana" size="10" <aui:input name="settimana" label="rs-settimana" size="10" value="<%= settimana > 0 ? settimana : \"\" %>" />
value="<%= settimana > 0 ? settimana : \"\" %>" />
</div> </div>
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-sm-12 col-md-4">
<aui:input name="provincia" label="rs-prov" size="25" value="<%= provincia %>" /> <!-- Task 31433 -->
<aui:input name="comune" label="rs-comune" size="25" value="<%= comune %>" /> <aui:input name="provincia" label="rs-prov" size="25" value="<%=provincia %>" />
<c:if test="<%= !isPublicLayout %>"> <aui:input name="comune" label="rs-comune" size="25" value="<%=comune %>" />
<aui:input name="pratica" label="label.admingeniocivile.sorteggi.pratica" size="25" <c:if test="<%=!isPublicLayout %>">
value="<%= pratica %>"> <!-- Bug 32653 -->
<aui:input name="pratica" label="label.admingeniocivile.sorteggi.pratica" size="25" value="<%=pratica %>">
<aui:validator name="custom" errorMessage="campo-non-valido" > <aui:validator name="custom" errorMessage="campo-non-valido" >
function (val, fieldNode, ruleValue) { function (val, fieldNode, ruleValue) {
if(val != "") { if(val != "") {
@ -134,54 +168,82 @@ boolean isPublicLayout = layout.isPublicLayout();
</aui:input> </aui:input>
</c:if> </c:if>
</div> </div>
<c:if test="<%= !isPublicLayout %>"> <c:if test="<%=!isPublicLayout %>">
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-sm-12 col-md-4">
<aui:input name="committente" label="rs-committente" size="25" <aui:input name="committente" label="rs-committente" size="25" value="<%=committente %>" />
value="<%= committente %>" /> <aui:input name="tecnico" label="rs-tecnico" size="25" value="<%=tecnico %>" />
<aui:input name="tecnico" label="rs-tecnico" size="25" value="<%= tecnico %>" />
</div> </div>
</c:if> </c:if>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-x
s-12 col-sm-12 col-md-12">
<aui:button type="submit" value="Cerca" /> <aui:button type="submit" value="Cerca" />
</div> </div>
</div> </div>
</aui:form> </aui:form>
</aui:fieldset> </aui:fieldset>
<!-- <c:if test="<%=dtUltimoSorteggio!=null %>">
<h3>
<liferay-ui:message key="rs-ultimo" />
<span>
<%=formatDtSorteggio.format(dtUltimoSorteggio) %>
</span>
</h3>
</c:if> -->
<h3> <h3>
<liferay-ui:message key="rs-prossimo" /> <liferay-ui:message key="rs-prossimo" />
<span> <span>
<%= formatDtSorteggio.format(dtProssimoSorteggio) %> <c:if test="<%=dtProssimoSorteggio != null %>"></c:if>
<%=formatDtSorteggio.format(dtProssimoSorteggio) %>
</span> </span>
</h3> </h3>
</c:if>
<c:choose> </c:if>
<c:when test="<%= search || detailSorteggio %>">
<c:if test="<%= detailSorteggio %>"> <c:choose>
<c:when test="<%=search || detailSorteggio %>">
<c:if test="<%=detailSorteggio %>">
<br /> <br /> <br /> <br />
</c:if> </c:if>
<div class="row-fluid" style="padding-left: 15px;padding-right: 15px;"> <div class="row-fluid" style="padding-left: 15px;padding-right: 15px;">
<div class="span12"> <div class="span12">
<% <%
try { try {
FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(companyId, FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(companyId,
themeDisplay.getScopeGroupId(), settimana, anno); themeDisplay.getScopeGroupId(), settimana, anno);
%> %>
<liferay-portlet:resourceURL var="downloadReportSorteggioURL" id="downloadReport"> <liferay-portlet:resourceURL var="downloadReportSorteggioURL" id="downloadReport">
<liferay-portlet:param name="fileEntryId" <liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(fileEntry.getFileEntryId()) %>" />
value="<%= String.valueOf(fileEntry.getFileEntryId()) %>" />
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
<liferay-ui:icon-menu icon="" showExpanded="false" showWhenSingleIcon="false">
<liferay-ui:icon label="Download Verbale Sorteggio" cssClass="btn" image="links" <liferay-ui:icon-menu icon="" showExpanded="<%=false %>" showWhenSingleIcon="<%=false%>">
message="Download Verbale Sorteggio" target="_blank" <liferay-ui:icon
url="<%= downloadReportSorteggioURL %>" /> label="Download Verbale Sorteggio"
cssClass="btn"
image="links"
message="Download Verbale Sorteggio"
target="_blank"
url="<%= downloadReportSorteggioURL %>"
/>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
<% <%
} catch(PortalException e) {} } catch(PortalException e) {
}
%> %>
</div> </div>
</div> </div>
<% <%
PortletURL searchURL = renderResponse.createRenderURL(); PortletURL searchURL = renderResponse.createRenderURL();
searchURL.setParameter("homeURL", homeURL); searchURL.setParameter("homeURL", homeURL);
@ -195,28 +257,40 @@ boolean isPublicLayout = layout.isPublicLayout();
searchURL.setParameter("tecnico", tecnico); searchURL.setParameter("tecnico", tecnico);
searchURL.setParameter("pratica", pratica); searchURL.setParameter("pratica", pratica);
searchURL.setParameter("numeroEstrazione", numeroEstrazione); searchURL.setParameter("numeroEstrazione", numeroEstrazione);
//Task 31433
searchURL.setParameter("provincia", provincia); 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.isNull(numeroEstrazione) ? Long numeroEstrazioneNumber = Validator.isNotNull(numeroEstrazione) ?
null : Long.parseLong(numeroEstrazione); Long.parseLong(numeroEstrazione) : null;
%> %>
<!-- Task 31433 -->
<!-- Bug 32653 -->
<liferay-ui:search-container-results <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, tecnico, comune, pratica, numeroEstrazioneNumber, provincia,
searchContainer.getStart(), searchContainer.getEnd()) %>" searchContainer.getStart(), searchContainer.getEnd()) %>"
total="<%= SorteggioLocalServiceUtil.count(null, anno, mese, settimana, committente, tecnico, total="<%=SorteggioLocalServiceUtil.count(null, anno, mese, settimana, committente,
comune, pratica, numeroEstrazioneNumber, provincia) %>" 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-numero-estrazioni" property="numeroEstrazione" />
<liferay-ui:search-container-column-text name="rs-data-estrazione" <liferay-ui:search-container-column-text name="rs-data-estrazione"
value="<%=sdfSorteggio.format(sorteggio.getDtSorteggio()) value="<%=sdfSorteggio.format(sorteggio.getDtSorteggio())
+ (sdfSorteggio.format(sorteggio.getDtSorteggio()).equals(\"05/03/2020 11:12:18\") + (sdfSorteggio.format(sorteggio.getDtSorteggio()).equals(
? \"<br>Sorteggio non valido ed annullato per doppia esecuzione\" \"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-pratica" property="pratica" />
<liferay-ui:search-container-column-text name="rs-committente" property="committente" /> <liferay-ui:search-container-column-text name="rs-committente" property="committente" />
<liferay-ui:search-container-column-text name="rs-comune" property="comune" /> <liferay-ui:search-container-column-text name="rs-comune" property="comune" />
@ -225,70 +299,107 @@ boolean isPublicLayout = layout.isPublicLayout();
value="<%=(sorteggio.getSettimana() == 24) && sorteggio.getAnno().equals(\"2020\") ? value="<%=(sorteggio.getSettimana() == 24) && sorteggio.getAnno().equals(\"2020\") ?
\"22-23-24\" : \"22-23-24\" :
String.valueOf(sorteggio.getSettimana()) %>" /> String.valueOf(sorteggio.getSettimana()) %>" />
<% <%
String tecnicoSorteggio = sorteggio.getTecnico(); String tecnicoSorteggio = StringPool.BLANK;
//if (sorteggio.isEsterna()) {
// tecnicoSorteggio = SorteggioLocalServiceUtil.getTecnicoSorteggioPraticaEsterna(
// sorteggio.getPraticaEsternaId());
//} else {
tecnicoSorteggio = sorteggio.getTecnico();
//}
%> %>
<liferay-ui:search-container-column-text name="rs-tecnico" <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="rs-prov" property="provincia" />
<liferay-ui:search-container-column-text name="Report Sorteggio"> <liferay-ui:search-container-column-text name="Report Sorteggio">
<% <%
try { try {
FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(companyId, FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(themeDisplay.getCompanyId(),
themeDisplay.getScopeGroupId(), settimana, anno); sorteggio.getGroupId(), sorteggio.getDtSorteggio());
%> %>
<liferay-portlet:resourceURL var="downloadReportURL" id="downloadReport"> <liferay-portlet:resourceURL var="downloadReportURL" id="downloadReport">
<liferay-portlet:param name="fileEntryId" <liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(fileEntry.getFileEntryId()) %>" />
value="<%= String.valueOf(fileEntry.getFileEntryId()) %>" />
</liferay-portlet:resourceURL> </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-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator /> <liferay-ui:search-iterator />
</liferay-ui:search-container> </liferay-ui:search-container>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found"> <liferay-ui:search-container emptyResultsMessage="no-entries-were-found">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results="<%=SorteggioLocalServiceUtil.findSorteggiGroupByAnnoMeseSettimana( results="<%=SorteggioLocalServiceUtil.findSorteggiGroupByAnnoMeseSettimana(
searchContainer.getStart(), searchContainer.getEnd()) %>" searchContainer.getStart(), searchContainer.getEnd()) %>"
total="<%=SorteggioLocalServiceUtil.countSorteggiGroupByAnnoMeseSettimana() %>" 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]; Long numeroPratiche = (Long) sorteggio[0];
String annoSorteggio = (String) sorteggio[1]; String annoSorteggio = (String) sorteggio[1];
/* String meseSorteggio = mesi[(Integer.parseInt((String) sorteggio[2])-1)]; */
String meseSorteggio = (String) sorteggio[2]; String meseSorteggio = (String) sorteggio[2];
String settimanaSorteggio = (String.valueOf((Integer) sorteggio[3])); String settimanaSorteggio = (String.valueOf((Integer) sorteggio[3]));
PortletURL buttonURL = renderResponse.createRenderURL(); PortletURL buttonURL = renderResponse.createRenderURL();
buttonURL.setParameter("homeURL", homeURL); buttonURL.setParameter("homeURL", homeURL);
buttonURL.setParameter("detailSorteggio", StringPool.TRUE); buttonURL.setParameter("detailSorteggio", String.valueOf(true));
buttonURL.setParameter("anno", annoSorteggio); buttonURL.setParameter("anno", annoSorteggio);
buttonURL.setParameter("mese", meseSorteggio); buttonURL.setParameter("mese", meseSorteggio);
buttonURL.setParameter("settimana", settimanaSorteggio); buttonURL.setParameter("settimana", settimanaSorteggio);
if (annoSorteggio.equals("2020") && settimanaSorteggio.equals("24")) { if (annoSorteggio.equals("2020") && settimanaSorteggio.equals("24")) {
settimanaSorteggio = "22-23-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-numero-pratiche" value="<%=String.valueOf(numeroPratiche) %>" cssClass="td-25"/>
<liferay-ui:search-container-column-text name="rs-anno" value="<%= annoSorteggio %>" <liferay-ui:search-container-column-text name="rs-anno" value="<%= annoSorteggio %>" cssClass="td-25"/>
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-settimana" value="<%= settimanaSorteggio %>"
cssClass="td-25"/>
<liferay-ui:search-container-column-text align="right" cssClass="text-center td-25"> <liferay-ui:search-container-column-text align="right" cssClass="text-center td-25">
<liferay-ui:icon-menu> <liferay-ui:icon-menu>
<liferay-ui:icon linkCssClass="btn" iconCssClass="fa fa-search-plus" message="show" <liferay-ui:icon
url="<%=buttonURL.toString()%>" /> linkCssClass="btn"
iconCssClass="fa fa-search-plus"
message="show"
url="<%=buttonURL.toString()%>"
/>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator /> <liferay-ui:search-iterator />
</liferay-ui:search-container> </liferay-ui:search-container>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</div> </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,30 +3,23 @@ package it.tref.liferay.portos.fe.portlet;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.SoggettoSoap; import it.tref.liferay.portos.bo.model.SoggettoSoap;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.bean.FirmeBean; import it.tref.liferay.portos.bo.shared.bean.FirmeBean;
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.FirmeUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.ValidazionePraticaUtil; import it.tref.liferay.portos.bo.util.ValidazionePraticaUtil;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
@ -48,10 +41,8 @@ import com.liferay.portal.kernel.json.JSONSerializer;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.servlet.HttpHeaders;
import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.upload.UploadPortletRequest; import com.liferay.portal.kernel.upload.UploadPortletRequest;
import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.DateFormatFactoryUtil; import com.liferay.portal.kernel.util.DateFormatFactoryUtil;
import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.HttpUtil; import com.liferay.portal.kernel.util.HttpUtil;
@ -344,60 +335,16 @@ public class SoggettiPraticaPortlet extends MVCPortlet {
} }
@Override @Override
public void serveResource(ResourceRequest request, ResourceResponse response) throws IOException, PortletException { public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException,
PortletException {
String id = resourceRequest.getResourceID();
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(request); ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest);
long companyId = serviceContext.getCompanyId(); if ("compilaSoggetti".equals(id)) {
String id = request.getResourceID(); long userId = ParamUtil.getLong(resourceRequest, "userId", 0L);
if ("inviaMailDelega".equals(id)) { String codiceFiscale = ParamUtil.getString(resourceRequest, "codiceFiscale");
JSONObject result = JSONFactoryUtil.createJSONObject(); String tipologiaSoggetto = ParamUtil.getString(resourceRequest, "tipologiaSoggetto");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(dettPratica.getIntPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.findByC_C(comune.getCompanyId(),
comune.getCodiceProvincia());
Soggetto committente = SoggettoLocalServiceUtil.fetchSoggetto(ParamUtil.getLong(request,
"committenteId"));
Soggetto titolare = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(
dettPratica.getIntPraticaId(), dettPratica.getCodiceFiscaleDelegatoCommittente()).get(0);
String[] to = { committente.getEmail() };
String[] cc = {};
String[] ccn = {};
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", committente.getNome() + ' ' + committente.getCognome());
templateVariables.put("titolareDigitale", titolare.getNome() + ' ' + titolare.getCognome());
templateVariables.put("titolareDigitaleMail", titolare.getEmail());
templateVariables.put("intervento", dettPratica.getDescLongIntervento());
templateVariables.put("comune", comune.getDenominazione());
templateVariables.put("provincia", provincia.getProvincia());
List<FileAttachment> fileAttachments = new ArrayList<>();
FileAttachment fileAttachment = new FileAttachment();
fileAttachment.setFileEntryId(SoggettoLocalServiceUtil.savePdfDelega(request));
fileAttachment.generateFile();
fileAttachments.add(fileAttachment);
MailManagerUtil.sendMailByTemplatName(DettPratica.class.getName(), dettPraticaId,
"INVIO-DELEGA-COMMITTENTE", to, cc, ccn, templateVariables, fileAttachments, serviceContext);
result.put("message", "Email inviata con successo a " + committente.getEmail());
writeJSON(request, response, result);
} else if ("delegaPdf".equals(id)) {
byte[] pdf = SoggettoLocalServiceUtil.getPdfDelega(request);
response.setContentType(ContentTypes.APPLICATION_PDF);
Soggetto committente = SoggettoLocalServiceUtil.fetchSoggetto(ParamUtil.getLong(request,
"committenteId"));
response.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"Delega_"
+ committente.getDescrizioneCompleta().replace(' ', '_') + ".pdf\"");
response.setContentLength(pdf.length);
OutputStream os = response.getPortletOutputStream();
os.write(pdf);
os.flush();
os.close();
} else if ("compilaSoggetti".equals(id)) {
long userId = ParamUtil.getLong(request, "userId", 0L);
String codiceFiscale = ParamUtil.getString(request, "codiceFiscale");
String tipologiaSoggetto = ParamUtil.getString(request, "tipologiaSoggetto");
JSONArray jsonSoggetti = JSONFactoryUtil.createJSONArray(); JSONArray jsonSoggetti = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(userId) && Validator.isNotNull(codiceFiscale) if (Validator.isNotNull(userId) && Validator.isNotNull(codiceFiscale)
&& Validator.isNotNull(tipologiaSoggetto)) { && Validator.isNotNull(tipologiaSoggetto)) {
@ -417,35 +364,35 @@ public class SoggettiPraticaPortlet extends MVCPortlet {
jsonSoggetti.put(serialized); jsonSoggetti.put(serialized);
} }
} }
writeJSON(request, response, jsonSoggetti); writeJSON(resourceRequest, resourceResponse, jsonSoggetti);
} else if ("province".equals(id)) { } else if ("province".equals(id)) {
JSONArray array = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
List<Provincia> province = ProvinciaLocalServiceUtil.findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, List<Provincia> province = ProvinciaLocalServiceUtil.findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS,
OrderByComparatorFactoryUtil.create("portos_bo_Provincia", "provincia", true)); OrderByComparatorFactoryUtil.create("portos_bo_Provincia", "provincia", true));
for (Provincia provincia : province) { for (Provincia provincia : province) {
JSONObject object = JSONFactoryUtil.createJSONObject(); JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
object.put("provinciaId", provincia.getCodiceProvincia()); jsonObject.put("provinciaId", provincia.getCodiceProvincia());
object.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia()); jsonObject.put("descLong", provincia.getSigla() + "- " + provincia.getProvincia());
array.put(object); jsonArray.put(jsonObject);
} }
writeJSON(request, response, array); writeJSON(resourceRequest, resourceResponse, jsonArray);
} else if ("comuni".equals(id)) { } else if ("comuni".equals(id)) {
String codiceProvincia = ParamUtil.getString(request, "provinciaId"); String codiceProvincia = ParamUtil.getString(resourceRequest, "provinciaId");
JSONArray array = JSONFactoryUtil.createJSONArray(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(codiceProvincia) && Validator.isNotNull(codiceProvincia)) { if (Validator.isNotNull(codiceProvincia) && Validator.isNotNull(codiceProvincia)) {
List<Comune> comuni = ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(companyId, List<Comune> comuni = ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(
codiceProvincia, QueryUtil.ALL_POS, QueryUtil.ALL_POS, serviceContext.getCompanyId(), codiceProvincia, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
OrderByComparatorFactoryUtil.create("portos_bo_Comune", "denominazione", true)); OrderByComparatorFactoryUtil.create("portos_bo_Comune", "denominazione", true));
for (Comune comune : comuni) { for (Comune comune : comuni) {
JSONObject object = JSONFactoryUtil.createJSONObject(); JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
object.put("comuneId", comune.getComuneId()); jsonObject.put("comuneId", comune.getComuneId());
object.put("descLong", comune.getDenominazione()); jsonObject.put("descLong", comune.getDenominazione());
array.put(object); jsonArray.put(jsonObject);
} }
} }
writeJSON(request, response, array); writeJSON(resourceRequest, resourceResponse, jsonArray);
} else { } else {
super.serveResource(request, response); super.serveResource(resourceRequest, resourceResponse);
} }
} catch (Exception e) { } catch (Exception e) {
_log.error(e, e); _log.error(e, e);

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -0,0 +1,217 @@
<%@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

@ -0,0 +1,45 @@
<%@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

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

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

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

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

@ -1,3 +1,6 @@
<%@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 contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.UniqueList"%> <%@page import="com.liferay.portal.kernel.util.UniqueList"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
@ -16,7 +19,6 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.SezioniUtil"%> <%@page import="it.tref.liferay.portos.bo.util.SezioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="java.util.Set"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
@ -30,11 +32,6 @@ if (dettPratica == null) {
} }
dettPraticaId = dettPratica.getDettPraticaId(); 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:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" />
@ -154,31 +151,6 @@ List<String> tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatori();
List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.COMMITTENTE, TipoSoggettoUtil.DITTA, TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.COLLAUDATORE); 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"> <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="col-xs-12 asseverazioni tab-error">
<div class="row asseverazioni-header"> <div class="row asseverazioni-header">
<div class="col-xs-12 text-center asseverazioni-header__title"> <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,20 +43,32 @@
boolean pagamentoOneriIsPagato = false; boolean pagamentoOneriIsPagato = false;
boolean pagamentoOneriIsPending = false; boolean pagamentoOneriIsPending = false;
boolean pagamentoOneriNonPagabile = false;
boolean pagamentoOneriRifiutato = false;
boolean pagamentoOneriAnnullato = false;
Pagamento pagamentoOneri = null; Pagamento pagamentoOneri = null;
if( Validator.isNotNull(dettPratica.getPagamentoIdOneri()) ){ if( Validator.isNotNull(dettPratica.getPagamentoIdOneri()) ){
pagamentoOneri = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdOneri()); pagamentoOneri = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdOneri());
pagamentoOneriIsPagato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA); pagamentoOneriIsPagato = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoOneriIsPending = pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO); 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 pagamentoBolliIsPagato = false;
boolean pagamentoBolliIsPending = false; boolean pagamentoBolliIsPending = false;
boolean pagamentoBolliNonPagabile = false;
boolean pagamentoBolliRifiutato = false;
boolean pagamentoBolliAnnullato = false;
Pagamento pagamentoBolli = null; Pagamento pagamentoBolli = null;
if( Validator.isNotNull(dettPratica.getPagamentoIdBolli()) ){ if( Validator.isNotNull(dettPratica.getPagamentoIdBolli()) ){
pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdBolli()); pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(dettPratica.getPagamentoIdBolli());
pagamentoBolliIsPagato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA); pagamentoBolliIsPagato = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA);
pagamentoBolliIsPending = pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO); 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"; String formRicevutaPagamento = "fmRicevuta";
@ -135,9 +147,18 @@
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<c:if <c:if
test="<%= pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>"> test="<%=!PagamentiCommonUtil.irisIsEnable(companyId) || pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15"> <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> <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>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row"> <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" <aui:form name="<%=formRicevutaPagamento%>" enctype="multipart/form-data" method="post"
@ -155,7 +176,39 @@
</aui:form> </aui:form>
</div> </div>
</c:if> </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> </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> </c:if>
</div> </div>
</div> </div>
@ -191,9 +244,19 @@
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<c:if <c:if
test="<%= pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>"> test="<%=!PagamentiCommonUtil.irisIsEnable(companyId) || pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15"> <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> <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>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row"> <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" <aui:form name="<%=formRicevutaPagamento%>" enctype="multipart/form-data" method="post"
@ -211,7 +274,40 @@
</aui:form> </aui:form>
</div> </div>
</c:if> </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> </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> </c:if>
</div> </div>
</div> </div>
@ -447,7 +543,11 @@
<div id='<%=renderResponse.getNamespace()+"saveAndCloseDiv"%>' class="hide"> <div id='<%=renderResponse.getNamespace()+"saveAndCloseDiv"%>' class="hide">
<% <%
String paymentConfirmText = ""; String paymentConfirmText = "";
if( PagamentiCommonUtil.irisIsEnable(companyId) ){
paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-iris");
} else{
paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-manual"); paymentConfirmText = LanguageUtil.get(pageContext, "label-confirm-payment-manual");
}
%> %>
<span style="min-height: 70px"><%=paymentConfirmText%></span> <span style="min-height: 70px"><%=paymentConfirmText%></span>
</div> </div>

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

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

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

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

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

@ -1,137 +0,0 @@
<%@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,6 +1,8 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%> <%@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.model.User"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
@ -17,11 +19,15 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%> <%@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.bean.FirmeDetail"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.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.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%> <%@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.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.SoggettiUtil"%> <%@page import="it.tref.liferay.portos.bo.util.SoggettiUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@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.HashMap"%>
<%@page import="java.util.Map"%> <%@page import="java.util.Map"%>
<%@include file="/html/soggettipratica/init.jsp"%> <%@include file="/html/soggettipratica/init.jsp"%>
@ -43,14 +49,6 @@ if (!ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId())) {
} }
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId());
boolean inBO = ParamUtil.getBoolean(request, "inBO", false); boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
Soggetto titolare = null;
if (Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCommittente())) {
List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(dettPratica.getIntPraticaId(),
dettPratica.getCodiceFiscaleDelegatoCommittente());
if (!titolari.isEmpty()) {
titolare = titolari.get(0);
}
}
%> %>
<aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" /> <aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" />
<% <%
@ -180,21 +178,6 @@ dataMap.put("id", PortletKeys.SOGGETTI + "_dialogEditSoggetto");
<liferay-ui:search-container-column-text name="Azioni" cssClass="text-center"> <liferay-ui:search-container-column-text name="Azioni" cssClass="text-center">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar"> cssClass="inline_toolbar">
<c:if test="<%= TipoSoggettoUtil.COMMITTENTE.equals(soggetto.getTipologiaSoggetto())
&& Validator.isNotNull(titolare) %>">
<liferay-portlet:renderURL portletName="<%= PortletKeys.SOGGETTI %>" var="delegaURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/soggettipratica/genera_delega.jsp" />
<liferay-portlet:param name="committenteId" value="<%= String.valueOf(soggetto.getSoggettoId()) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" />
</liferay-portlet:renderURL>
<%
dataMap.put("title", "Genera Delega");
%>
<liferay-ui:icon iconCssClass="fa fa-pencil" message="Genera Delega"
url="<%= delegaURL %>" linkCssClass="btn btn-action btn-success"
useDialog="true" data="<%= dataMap %>" />
</c:if>
<c:if test="<%= soggetto.getDettPraticaId() == dettPratica.getDettPraticaId() %>"> <c:if test="<%= soggetto.getDettPraticaId() == dettPratica.getDettPraticaId() %>">
<liferay-portlet:renderURL portletName="<%= PortletKeys.SOGGETTI %>" var="editURL" <liferay-portlet:renderURL portletName="<%= PortletKeys.SOGGETTI %>" var="editURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>"> windowState="<%= LiferayWindowState.POP_UP.toString() %>">
@ -529,6 +512,15 @@ dataMap.put("id", PortletKeys.SOGGETTI + "_dialogEditSoggetto");
inlineField="true" useNamespace="false" /> inlineField="true" useNamespace="false" />
</c:if> </c:if>
<c:if test="<%= inBO %>"> <c:if test="<%= inBO %>">
<%
List<Soggetto> titolari = SoggettoLocalServiceUtil
.getValidByIntPratica_CodiceFiscale(dettPratica.getIntPraticaId(),
dettPratica.getCodiceFiscaleDelegatoCommittente());
Soggetto titolare = null;
if (!titolari.isEmpty()) {
titolare = titolari.get(0);
}
%>
<c:if test="<%= Validator.isNotNull(titolare) %>"> <c:if test="<%= Validator.isNotNull(titolare) %>">
<aui:input disabled="<%= disabledInput || inBO %>" type="checkbox" <aui:input disabled="<%= disabledInput || inBO %>" type="checkbox"
name='<%= StringPool.UNDERLINE + PortletKeys.FASCICOLOFE name='<%= StringPool.UNDERLINE + PortletKeys.FASCICOLOFE

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,8 +151,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext( public it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK, EmailAttachmentPK emailAttachmentPK, long emailId,
long emailId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException; it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -257,7 +256,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @return the new email attachment * @return the new email attachment
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment create( public it.tref.liferay.portos.mailmanager.model.EmailAttachment create(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK); EmailAttachmentPK emailAttachmentPK);
/** /**
* Removes the email attachment with the primary key from the database. Also notifies the appropriate model listeners. * Removes the email attachment with the primary key from the database. Also notifies the appropriate model listeners.
@ -268,7 +267,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment remove( public it.tref.liferay.portos.mailmanager.model.EmailAttachment remove(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException; it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -285,7 +284,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey( public it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException; it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException;
@ -297,7 +296,7 @@ public interface EmailAttachmentPersistence extends BasePersistence<EmailAttachm
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey( public it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException; 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,8 +239,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment[] findByEmailId_PrevAndNext(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK, EmailAttachmentPK emailAttachmentPK, long emailId,
long emailId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException { it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
@ -368,7 +367,7 @@ public class EmailAttachmentUtil {
* @return the new email attachment * @return the new email attachment
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment create( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment create(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) { EmailAttachmentPK emailAttachmentPK) {
return getPersistence().create(emailAttachmentPK); return getPersistence().create(emailAttachmentPK);
} }
@ -381,7 +380,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment remove( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment remove(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException { it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
return getPersistence().remove(emailAttachmentPK); return getPersistence().remove(emailAttachmentPK);
@ -402,7 +401,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment findByPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException, throws com.liferay.portal.kernel.exception.SystemException,
it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException { it.tref.liferay.portos.mailmanager.NoSuchEmailAttachmentException {
return getPersistence().findByPrimaryKey(emailAttachmentPK); return getPersistence().findByPrimaryKey(emailAttachmentPK);
@ -416,7 +415,7 @@ public class EmailAttachmentUtil {
* @throws SystemException if a system exception occurred * @throws SystemException if a system exception occurred
*/ */
public static it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey( public static it.tref.liferay.portos.mailmanager.model.EmailAttachment fetchByPrimaryKey(
it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPK emailAttachmentPK) EmailAttachmentPK emailAttachmentPK)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchByPrimaryKey(emailAttachmentPK); 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,11 +1,26 @@
package it.tref.liferay.portos.mailmanager.hook.listener; 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.ModelListenerException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.BaseModelListener; import com.liferay.portal.model.BaseModelListener;
import com.liferay.portlet.documentlibrary.model.DLFileEntry; import com.liferay.portlet.documentlibrary.model.DLFileEntry;
public class DLFileEntryListener extends BaseModelListener<DLFileEntry> { public class DLFileEntryListener extends BaseModelListener<DLFileEntry> {
@Override @Override
public void onBeforeRemove(DLFileEntry model) throws ModelListenerException {} 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);
}
}
} }

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

Caricamento…
Annulla
Salva