Mattia Gosetto 3 anni fa
parent
commit
6ae9603ad5
  1. 1
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.tern-project
  2. 123
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml
  3. 32
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml
  4. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
  5. 123
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/MappeUtil.java
  6. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java
  7. 139
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java
  8. 28
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java
  9. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java
  10. 71
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java
  11. 39
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java
  12. 677
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java
  13. 66
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java
  14. 73
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java
  15. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  16. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
  17. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  18. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  19. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  20. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties
  21. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  22. 133
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/portlet/RicercaPosizionePortlet.java
  23. 95
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java
  24. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java
  25. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java
  26. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java
  27. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java
  28. 53
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java
  29. 66
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java
  30. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoImpl.java
  31. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/SoggettoModelListener.java
  32. 23
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PaesaggisticaAdministrationPortlet.java
  33. 457
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java
  34. 178
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  35. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java
  36. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java
  37. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java
  38. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java
  39. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
  40. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java
  41. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java
  42. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java
  43. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java
  44. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java
  45. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java
  46. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java
  47. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
  48. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java
  49. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java
  50. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java
  51. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java
  52. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java
  53. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java
  54. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java
  55. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java
  56. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java
  57. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  58. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/web.xml
  59. 258
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp
  60. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_riepilogo.jsp
  61. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp
  62. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp
  63. 37
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/paesaggistica_administration/view.jsp
  64. 551
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/ricerca-posizione/view.jsp
  65. 110
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/js/main.js
  66. 1
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.tern-project
  67. BIN
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/commons-logging.jar
  68. BIN
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/jstl-api.jar
  69. BIN
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  70. BIN
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/log4j.jar
  71. BIN
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-bridges.jar
  72. BIN
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-taglib.jar
  73. 8
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/liferay-portlet.xml
  74. 9
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/portlet.xml
  75. 4
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/service.properties
  76. 572
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/tld/c.tld
  77. 2
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml.MD5
  78. 20
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/liferay-portlet.xml
  79. 31
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp
  80. 284
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp
  81. 90
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp
  82. 61
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_riepilogo.jsp
  83. 11
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/main.js
  84. 1
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.tern-project
  85. 1
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/build.xml
  86. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/tref-mapit-shared.jar
  87. 305
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/html/plugin/top.jsp
  88. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/images/marker.png
  89. BIN
      liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/images/result.png
  90. 5
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java
  91. 18
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/.classpath
  92. 1
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/.gitignore
  93. 17
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/.project
  94. 17
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/bin/.project
  95. 7
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/build.xml
  96. 47
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/constants/Constants.java
  97. 6
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/constants/DestinationNames.java
  98. 28
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/constants/PortletConfiguration.java
  99. 5
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/constants/WebKeys.java
  100. 38
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/messaging/AssetResolverMessageListener.java
  101. Some files were not shown because too many files have changed in this diff Show More

1
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.tern-project

@ -0,0 +1 @@
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}

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

@ -70,153 +70,112 @@
</scheduler-entry>
<asset-renderer-factory>it.tref.liferay.portos.bo.asset.ControlloPraticaAssetRendererFactory</asset-renderer-factory>
<workflow-handler>it.tref.liferay.portos.bo.workflow.ControlloPraticaWorkflowHandler</workflow-handler>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>fascicolo-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>2</portlet-name>
<icon>/icon.png</icon>
<control-panel-entry-category>
configuration
</control-panel-entry-category>
<control-panel-entry-category>configuration</control-panel-entry-category>
<control-panel-entry-weight>1.5</control-panel-entry-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>
tabelle-di-sistema-portlet
</css-class-wrapper>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>tabelle-di-sistema-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>4</portlet-name>
<icon>/icon.png</icon>
<render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>
gestione-firme-portlet
</css-class-wrapper>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>gestione-firme-portlet</css-class-wrapper>
<add-default-resource>true</add-default-resource>
</portlet>
<portlet>
<portlet-name>5</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>
doc-aggiuntiva-portlet
</css-class-wrapper>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>doc-aggiuntiva-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>6</portlet-name>
<icon>/icon.png</icon>
<render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>
gestione-attivita
</css-class-wrapper>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>gestione-attivita</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>7</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>
allegati-manuali-portlet
</css-class-wrapper>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>allegati-manuali-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>8</portlet-name>
<icon>/icon.png</icon>
<render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>
gestione-attivita-istruttore-portlet
</css-class-wrapper>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>gestione-attivita-istruttore-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>9</portlet-name>
<icon>/icon.png</icon>
<css-class-wrapper>
carichi-di-lavoro-portlet
</css-class-wrapper>
<css-class-wrapper>carichi-di-lavoro-portlet</css-class-wrapper>
<add-default-resource>true</add-default-resource>
<system>true</system>
</portlet>
<portlet>
<portlet-name>10</portlet-name>
<icon>/icon.png</icon>
<css-class-wrapper>
tempistiche-portlet
</css-class-wrapper>
<css-class-wrapper>tempistiche-portlet</css-class-wrapper>
<add-default-resource>true</add-default-resource>
</portlet>
<portlet>
<portlet-name>11</portlet-name>
<icon>/icon.png</icon>
<css-class-wrapper>
generate-protocollo-csv-portlet
</css-class-wrapper>
<css-class-wrapper>generate-protocollo-csv-portlet</css-class-wrapper>
<add-default-resource>true</add-default-resource>
</portlet>
<portlet>
<portlet-name>12</portlet-name>
<icon>/icon.png</icon>
<control-panel-entry-category>
configuration
</control-panel-entry-category>
<control-panel-entry-category>configuration</control-panel-entry-category>
<control-panel-entry-weight>1.6</control-panel-entry-weight>
<css-class-wrapper>
pending-pagamenti-portlet
</css-class-wrapper>
<css-class-wrapper>pending-pagamenti-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>portos-administration</portlet-name>
<icon>/icon.png</icon>
<control-panel-entry-category>
configuration
</control-panel-entry-category>
<control-panel-entry-category>configuration</control-panel-entry-category>
<control-panel-entry-weight>1.6</control-panel-entry-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>
portos-administration-portlet
</css-class-wrapper>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>portos-administration-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>ricerca-posizione</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>ricerca-posizione-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>22</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>22-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>13</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>13-portlet</css-class-wrapper>
</portlet>
<role-mapper>

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

@ -403,6 +403,38 @@
<role-name>user</role-name>
</security-role-ref>
</portlet>
<portlet>
<portlet-name>ricerca-posizione</portlet-name>
<display-name>Ricerca per posizione</display-name>
<portlet-class>it.mwg.sismica.bo.portlet.RicercaPosizionePortlet</portlet-class>
<init-param>
<name>view-template</name>
<value>/html/ricerca-posizione/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<resource-bundle>content.Language</resource-bundle>
<portlet-info>
<title>Ricerca per posizione</title>
<short-title>Ricerca posizione</short-title>
<keywords></keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
<portlet>
<portlet-name>22</portlet-name>
<display-name>Ricerca Protocollo</display-name>

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

@ -810,6 +810,10 @@
<column name="tipoPratica" type="String"></column>
<column name="territorioId" type="long" />
<column name="tipoProcedura" type="String"></column>
<column name="latitudine" type="double" convert-null="false"/>
<column name="longitudine" type="double" convert-null="false"/>
<!-- Annullamento fields -->
<column name="dtAnnullamento" type="Date" />
<column name="docPraticaAnnullamentoId" type="long" />
<column name="unitaOperativa" type="int" />

123
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/MappeUtil.java

@ -0,0 +1,123 @@
package it.mwg.sismica.bo.util;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.StringUtils;
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.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.theme.ThemeDisplay;
public class MappeUtil {
private final static Log _log = LogFactoryUtil.getLog(MappeUtil.class);
public static String getUrlFe(HttpServletRequest request, DettPratica dettPratica, Comune comune, boolean readOnly)
throws UnsupportedEncodingException, PortalException, SystemException {
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
long companyId = td.getCompanyId();
String baseUrl = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.MAPPE_URL_IFRAME_FE);
return getUrlComune(request, baseUrl, dettPratica, comune, readOnly);
}
public static String getUrlBo(HttpServletRequest request, DettPratica dettPratica, Comune comune, boolean readOnly)
throws UnsupportedEncodingException, PortalException, SystemException {
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
long companyId = td.getCompanyId();
String baseUrl = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.MAPPE_URL_IFRAME_BO);
return getUrlComune(request, baseUrl, dettPratica, comune, readOnly);
}
private static String getUrlComune(HttpServletRequest request,
String baseUrl, DettPratica dettPratica, Comune comune,
boolean readOnly) throws UnsupportedEncodingException,
PortalException, SystemException {
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
long companyId = td.getCompanyId();
long intPraticaId = dettPratica.getIntPraticaId();
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
String sharedSecret = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.MAPPE_SHARED_SECRET);
long date = new Date().getTime() / 1000;
String auth = DigestUtils.sha256Hex(date + sharedSecret + request.getServerName());
String url = baseUrl;
if(Validator.isNotNull(comune))
url = url.replace("{{COD_BELFIORE}}", urlEncode(comune.getCodiceBelfiore()));
else
url = url.replace("{{COD_BELFIORE}}", "");
if(Validator.isNotNull(dettPratica))
url = url.replace("{{ESTREMI_CAT}}", urlEncode(dettPratica.getEstremiCatastali()));
else
url = url.replace("{{ESTREMI_CAT}}", "");
String localizzazione = dettPratica.getLocalizzazioneGeografica();
String lat = "";
String lng = "";
if(Validator.isNotNull(localizzazione)){
String[] coordinate = StringUtils.split(localizzazione, "|");
if(coordinate.length > 1){
lat = coordinate[0];
lng = coordinate[1];
}
}
url = url.replace("{{LAT}}", lat);
url = url.replace("{{LNG}}", lng);
url = url.replace("{{IDPRATICA}}", String.valueOf(intPraticaId));
url = url.replace("{{NPRATICA}}", String.valueOf(intPratica.getNumeroProgetto()));
url = url.replace("{{READONLY}}", (readOnly ? "true" : "false"));
String query = StringPool.BLANK;
String[] parti = StringUtils.split(url, StringPool.QUESTION);
if (parti.length > 1) {
query = parti[1];
}
if (query == null) {
query = StringPool.BLANK;
} else if (!query.equals(StringPool.BLANK)) {
query += StringPool.AMPERSAND;
}
query += "date=" + date + "&auth=" + auth;
url = parti[0] + StringPool.QUESTION + query;
_log.info(url);
return url;
}
private static String urlEncode(String str) {
String encoded;
try {
encoded = URLEncoder.encode(str, StringPool.UTF8);
} catch (UnsupportedEncodingException e) {
encoded = str;
}
return encoded;
}
}

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

@ -41,4 +41,12 @@ public interface IntPratica extends IntPraticaModel, PersistedModel {
throws com.liferay.portal.kernel.exception.SystemException;
public int getTipoRichiesta();
public java.lang.String getIndirizzo()
throws com.liferay.portal.kernel.exception.SystemException;
public java.lang.Integer calcolaDistanzaOrtodromica(double lat, double lng)
throws com.liferay.portal.kernel.exception.SystemException;
public java.lang.Integer getDistanzaOrtodromica();
}

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

@ -87,6 +87,8 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
attributes.put("tipoPratica", getTipoPratica());
attributes.put("territorioId", getTerritorioId());
attributes.put("tipoProcedura", getTipoProcedura());
attributes.put("latitudine", getLatitudine());
attributes.put("longitudine", getLongitudine());
attributes.put("dtAnnullamento", getDtAnnullamento());
attributes.put("docPraticaAnnullamentoId", getDocPraticaAnnullamentoId());
attributes.put("unitaOperativa", getUnitaOperativa());
@ -182,6 +184,18 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
setTipoProcedura(tipoProcedura);
}
Double latitudine = (Double)attributes.get("latitudine");
if (latitudine != null) {
setLatitudine(latitudine);
}
Double longitudine = (Double)attributes.get("longitudine");
if (longitudine != null) {
setLongitudine(longitudine);
}
Date dtAnnullamento = (Date)attributes.get("dtAnnullamento");
if (dtAnnullamento != null) {
@ -577,6 +591,52 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
}
}
@Override
public double getLatitudine() {
return _latitudine;
}
@Override
public void setLatitudine(double latitudine) {
_latitudine = latitudine;
if (_intPraticaRemoteModel != null) {
try {
Class<?> clazz = _intPraticaRemoteModel.getClass();
Method method = clazz.getMethod("setLatitudine", double.class);
method.invoke(_intPraticaRemoteModel, latitudine);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public double getLongitudine() {
return _longitudine;
}
@Override
public void setLongitudine(double longitudine) {
_longitudine = longitudine;
if (_intPraticaRemoteModel != null) {
try {
Class<?> clazz = _intPraticaRemoteModel.getClass();
Method method = clazz.getMethod("setLongitudine", double.class);
method.invoke(_intPraticaRemoteModel, longitudine);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public Date getDtAnnullamento() {
return _dtAnnullamento;
@ -1125,6 +1185,25 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
}
}
@Override
public java.lang.String getIndirizzo() {
try {
String methodName = "getIndirizzo";
Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { };
java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override
public java.lang.String getTitle(java.util.Locale locale, boolean completed) {
try {
@ -1165,6 +1244,46 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
}
}
@Override
public java.lang.Integer getDistanzaOrtodromica() {
try {
String methodName = "getDistanzaOrtodromica";
Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { };
java.lang.Integer returnObj = (java.lang.Integer)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override
public java.lang.Integer calcolaDistanzaOrtodromica(double lat, double lng) {
try {
String methodName = "calcolaDistanzaOrtodromica";
Class<?>[] parameterTypes = new Class<?>[] {
double.class, double.class
};
Object[] parameterValues = new Object[] { lat, lng };
java.lang.Integer returnObj = (java.lang.Integer)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override
public int getTipoRichiesta() {
try {
@ -1308,6 +1427,8 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
clone.setTipoPratica(getTipoPratica());
clone.setTerritorioId(getTerritorioId());
clone.setTipoProcedura(getTipoProcedura());
clone.setLatitudine(getLatitudine());
clone.setLongitudine(getLongitudine());
clone.setDtAnnullamento(getDtAnnullamento());
clone.setDocPraticaAnnullamentoId(getDocPraticaAnnullamentoId());
clone.setUnitaOperativa(getUnitaOperativa());
@ -1381,7 +1502,7 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
@Override
public String toString() {
StringBundler sb = new StringBundler(65);
StringBundler sb = new StringBundler(69);
sb.append("{uuid=");
sb.append(getUuid());
@ -1405,6 +1526,10 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
sb.append(getTerritorioId());
sb.append(", tipoProcedura=");
sb.append(getTipoProcedura());
sb.append(", latitudine=");
sb.append(getLatitudine());
sb.append(", longitudine=");
sb.append(getLongitudine());
sb.append(", dtAnnullamento=");
sb.append(getDtAnnullamento());
sb.append(", docPraticaAnnullamentoId=");
@ -1454,7 +1579,7 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(100);
StringBundler sb = new StringBundler(106);
sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.IntPratica");
@ -1504,6 +1629,14 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
"<column><column-name>tipoProcedura</column-name><column-value><![CDATA[");
sb.append(getTipoProcedura());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>latitudine</column-name><column-value><![CDATA[");
sb.append(getLatitudine());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>longitudine</column-name><column-value><![CDATA[");
sb.append(getLongitudine());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>dtAnnullamento</column-name><column-value><![CDATA[");
sb.append(getDtAnnullamento());
@ -1606,6 +1739,8 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
private String _tipoPratica;
private long _territorioId;
private String _tipoProcedura;
private double _latitudine;
private double _longitudine;
private Date _dtAnnullamento;
private long _docPraticaAnnullamentoId;
private int _unitaOperativa;

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

@ -251,6 +251,34 @@ public interface IntPraticaModel extends BaseModel<IntPratica>,
*/
public void setTipoProcedura(String tipoProcedura);
/**
* Returns the latitudine of this int pratica.
*
* @return the latitudine of this int pratica
*/
public double getLatitudine();
/**
* Sets the latitudine of this int pratica.
*
* @param latitudine the latitudine of this int pratica
*/
public void setLatitudine(double latitudine);
/**
* Returns the longitudine of this int pratica.
*
* @return the longitudine of this int pratica
*/
public double getLongitudine();
/**
* Sets the longitudine of this int pratica.
*
* @param longitudine the longitudine of this int pratica
*/
public void setLongitudine(double longitudine);
/**
* Returns the dt annullamento of this int pratica.
*

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

@ -42,6 +42,8 @@ public class IntPraticaSoap implements Serializable {
soapModel.setTipoPratica(model.getTipoPratica());
soapModel.setTerritorioId(model.getTerritorioId());
soapModel.setTipoProcedura(model.getTipoProcedura());
soapModel.setLatitudine(model.getLatitudine());
soapModel.setLongitudine(model.getLongitudine());
soapModel.setDtAnnullamento(model.getDtAnnullamento());
soapModel.setDocPraticaAnnullamentoId(model.getDocPraticaAnnullamentoId());
soapModel.setUnitaOperativa(model.getUnitaOperativa());
@ -203,6 +205,22 @@ public class IntPraticaSoap implements Serializable {
_tipoProcedura = tipoProcedura;
}
public double getLatitudine() {
return _latitudine;
}
public void setLatitudine(double latitudine) {
_latitudine = latitudine;
}
public double getLongitudine() {
return _longitudine;
}
public void setLongitudine(double longitudine) {
_longitudine = longitudine;
}
public Date getDtAnnullamento() {
return _dtAnnullamento;
}
@ -416,6 +434,8 @@ public class IntPraticaSoap implements Serializable {
private String _tipoPratica;
private long _territorioId;
private String _tipoProcedura;
private double _latitudine;
private double _longitudine;
private Date _dtAnnullamento;
private long _docPraticaAnnullamentoId;
private int _unitaOperativa;

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

@ -61,6 +61,8 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
attributes.put("tipoPratica", getTipoPratica());
attributes.put("territorioId", getTerritorioId());
attributes.put("tipoProcedura", getTipoProcedura());
attributes.put("latitudine", getLatitudine());
attributes.put("longitudine", getLongitudine());
attributes.put("dtAnnullamento", getDtAnnullamento());
attributes.put("docPraticaAnnullamentoId", getDocPraticaAnnullamentoId());
attributes.put("unitaOperativa", getUnitaOperativa());
@ -156,6 +158,18 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
setTipoProcedura(tipoProcedura);
}
Double latitudine = (Double)attributes.get("latitudine");
if (latitudine != null) {
setLatitudine(latitudine);
}
Double longitudine = (Double)attributes.get("longitudine");
if (longitudine != null) {
setLongitudine(longitudine);
}
Date dtAnnullamento = (Date)attributes.get("dtAnnullamento");
if (dtAnnullamento != null) {
@ -550,6 +564,46 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
_intPratica.setTipoProcedura(tipoProcedura);
}
/**
* Returns the latitudine of this int pratica.
*
* @return the latitudine of this int pratica
*/
@Override
public double getLatitudine() {
return _intPratica.getLatitudine();
}
/**
* Sets the latitudine of this int pratica.
*
* @param latitudine the latitudine of this int pratica
*/
@Override
public void setLatitudine(double latitudine) {
_intPratica.setLatitudine(latitudine);
}
/**
* Returns the longitudine of this int pratica.
*
* @return the longitudine of this int pratica
*/
@Override
public double getLongitudine() {
return _intPratica.getLongitudine();
}
/**
* Sets the longitudine of this int pratica.
*
* @param longitudine the longitudine of this int pratica
*/
@Override
public void setLongitudine(double longitudine) {
_intPratica.setLongitudine(longitudine);
}
/**
* Returns the dt annullamento of this int pratica.
*
@ -1204,6 +1258,23 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
return _intPratica.getTipoRichiesta();
}
@Override
public java.lang.String getIndirizzo()
throws com.liferay.portal.kernel.exception.SystemException {
return _intPratica.getIndirizzo();
}
@Override
public java.lang.Integer calcolaDistanzaOrtodromica(double lat, double lng)
throws com.liferay.portal.kernel.exception.SystemException {
return _intPratica.calcolaDistanzaOrtodromica(lat, lng);
}
@Override
public java.lang.Integer getDistanzaOrtodromica() {
return _intPratica.getDistanzaOrtodromica();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {

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

@ -364,6 +364,17 @@ public interface IntPraticaLocalService extends BaseLocalService,
public int countFascicoliNotProgetto()
throws com.liferay.portal.kernel.exception.SystemException;
public int countByPosizione(double lat, double lng, int raggio)
throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByPosizione(
double lat, double lng, int raggio)
throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByPosizione(
double lat, double lng, int raggio, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica addNumeroProgetto(
long intPraticaId)
@ -400,6 +411,34 @@ public interface IntPraticaLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoProgetti(
long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoArchivio(
long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti(
long companyId, long soggettoId, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public int countByCompanyIdSoggettoAltriProgetti(long companyId,
long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCanAddFineLavori(
long companyId, java.lang.String codiceFiscale, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,

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

File diff soppresso perché troppo grande Load Diff

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

@ -407,6 +407,23 @@ public class IntPraticaLocalServiceUtil {
return getService().countFascicoliNotProgetto();
}
public static int countByPosizione(double lat, double lng, int raggio)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByPosizione(lat, lng, raggio);
}
public static java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByPosizione(
double lat, double lng, int raggio)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByPosizione(lat, lng, raggio);
}
public static java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByPosizione(
double lat, double lng, int raggio, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByPosizione(lat, lng, raggio, start, end);
}
public static it.tref.liferay.portos.bo.model.IntPratica addNumeroProgetto(
long intPraticaId)
throws com.liferay.portal.kernel.exception.PortalException,
@ -454,6 +471,55 @@ public class IntPraticaLocalServiceUtil {
getService().updateStatus(intPraticaId, status);
}
public static java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoProgetti(
long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.findByCompanyIdSoggettoProgetti(companyId, soggettoId);
}
public static int countByCompanyIdSoggettoProgetti(long companyId,
long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.countByCompanyIdSoggettoProgetti(companyId, soggettoId);
}
public static java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoArchivio(
long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.findByCompanyIdSoggettoArchivio(companyId, soggettoId);
}
public static int countByCompanyIdSoggettoArchivio(long companyId,
long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.countByCompanyIdSoggettoArchivio(companyId, soggettoId);
}
public static java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti(
long companyId, long soggettoId, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.findByCompanyIdSoggettoAltriProgetti(companyId, soggettoId,
start, end);
}
public static int countByCompanyIdSoggettoAltriProgetti(long companyId,
long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.countByCompanyIdSoggettoAltriProgetti(companyId, soggettoId);
}
public static java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCanAddFineLavori(
long companyId, java.lang.String codiceFiscale, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,

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

@ -434,6 +434,27 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService,
return _intPraticaLocalService.countFascicoliNotProgetto();
}
@Override
public int countByPosizione(double lat, double lng, int raggio)
throws com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.countByPosizione(lat, lng, raggio);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByPosizione(
double lat, double lng, int raggio)
throws com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.findByPosizione(lat, lng, raggio);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByPosizione(
double lat, double lng, int raggio, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.findByPosizione(lat, lng, raggio, start,
end);
}
@Override
public it.tref.liferay.portos.bo.model.IntPratica addNumeroProgetto(
long intPraticaId)
@ -490,6 +511,58 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService,
_intPraticaLocalService.updateStatus(intPraticaId, status);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoProgetti(
long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.findByCompanyIdSoggettoProgetti(companyId,
soggettoId);
}
@Override
public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.countByCompanyIdSoggettoProgetti(companyId,
soggettoId);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoArchivio(
long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.findByCompanyIdSoggettoArchivio(companyId,
soggettoId);
}
@Override
public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.countByCompanyIdSoggettoArchivio(companyId,
soggettoId);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCompanyIdSoggettoAltriProgetti(
long companyId, long soggettoId, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.findByCompanyIdSoggettoAltriProgetti(companyId,
soggettoId, start, end);
}
@Override
public int countByCompanyIdSoggettoAltriProgetti(long companyId,
long soggettoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.countByCompanyIdSoggettoAltriProgetti(companyId,
soggettoId);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.IntPratica> findByCanAddFineLavori(
long companyId, java.lang.String codiceFiscale, int start, int end)

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

@ -452,8 +452,8 @@ public class ValidazionePraticaUtil {
}
if (!intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1)
&& !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) {
if (Validator.isNull(dettPratica.getDcFoglio()))
notCompleted.add("Foglio mancante");
/*if (Validator.isNull(dettPratica.getDcFoglio()))
notCompleted.add("Foglio mancante");*/
if (Validator.isNull(dettPratica.getDcParticelle())
|| dettPratica.getLocalizzazioneGeografica().startsWith("||"))

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

@ -562,6 +562,8 @@ create table portos_bo_IntPratica (
tipoPratica VARCHAR(75) null,
territorioId LONG,
tipoProcedura VARCHAR(75) null,
latitudine DOUBLE,
longitudine DOUBLE,
dtAnnullamento DATE null,
docPraticaAnnullamentoId LONG,
unitaOperativa INTEGER,

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

@ -590,6 +590,8 @@
<property name="tipoPratica" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="territorioId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="tipoProcedura" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="latitudine" type="com.liferay.portal.dao.orm.hibernate.DoubleType" />
<property name="longitudine" type="com.liferay.portal.dao.orm.hibernate.DoubleType" />
<property name="dtAnnullamento" type="org.hibernate.type.TimestampType" />
<property name="docPraticaAnnullamentoId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property name="unitaOperativa" type="com.liferay.portal.dao.orm.hibernate.IntegerType" />

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

@ -641,6 +641,8 @@
<field name="tipoProcedura" type="String">
<hint name="max-lenght">2</hint>
</field>
<field name="latitudine" type="double" />
<field name="longitudine" type="double" />
<field name="dtAnnullamento" type="Date" />
<field name="docPraticaAnnullamentoId" type="long" />
<field name="unitaOperativa" type="int" />

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

@ -750,6 +750,8 @@
<basic name="tipoPratica" />
<basic name="territorioId" />
<basic name="tipoProcedura" />
<basic name="latitudine" />
<basic name="longitudine" />
<basic name="dtAnnullamento">
<temporal>TIMESTAMP</temporal>
</basic>

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

@ -43,6 +43,8 @@ soggetto_title_recapiti = Recapiti
n-progetto = Numero progetto
titolare-digitale = Titolare
tecnico-istruttore = Istruttore
distanza = Distanza&nbsp;<sup>[A]</sup>
distanza-tooltip = A: Distanza ortodromica espressa in metri
#Portlet amministazione: il campo deve corrispondere al nome delle relative cartelle in html/tabs
stato_tabelle = Stato delle Tabelle
@ -324,3 +326,7 @@ NonApprovato = Non approvato
label-integrazione-05 = Richiesta Integrazione
label-integrazione-13 = Variante
ricerca-posizione = Ricerca per posizione
ricerca-indirizzo = Ricerca per indirizzo
ricerca-progetto = Ricerca per progetto

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

@ -195,10 +195,10 @@ dp-variante = Dettagli Variante
dp-variante-sostanziale = sostanziale
dp-variante-non-sostanziale = non sostanziale
dp-ppp = Piano paesaggistico provinciale
dett-principali = Dettagli principali
dp = Piano paesaggistico provinciale
piano-paesaggistico = Piano paesaggistico provinciale
dp-zona-sismica = Livello di tutela
paesaggio-locale = Contesto paesaggistico
livello-di-tutela = Livello di tutela
vincoli = Vincoli
@ -229,6 +229,7 @@ dp-allegato = Allegato
dp-particelle = Particelle
dp-lat= Latitudine
dp-long= Longitudine
dp-raggio = Raggio di ricerca
opera-conforme = Opera conforme
@ -308,9 +309,9 @@ cl-rischio-post-int-16 = G*
interv-fin-pub = L'intervento è oggetto di Finanziamento Pubblico ai sensi del D.Lgs. 18/04/2016 n. 50 (obbligo documento A24 o asseverazione di esclusione/non assoggettabilità al procedimento di verifica preventiva dell’interesse archeologico)
interv-fin-pub-desc = Descrizione intervento oggetto di Finanziamento Pubblico
interv-no-viarch = I lavori in progetto, rientranti nell’ambito di applicazione del D.Lgs. 50/2016, sono esclusi e/o non assoggettati al procedimento di verifica preventiva dell’interesse archeologico, ex art. 25 del D.Lgs. 50/2016, poiché:
interv-in-area-di-interesse = L’area oggetto dell’intervento:<br/>è già dichiarata di interesse archeologico, ai sensi degli artt. 10 e/o 142, comma 1 lettera m, del D.Lgs. 42/2004;<br/>e/o è classificata come parco archeologico, ai sensi dell’art. 101 del D.Lgs. 42/2004;<br/>e/o è di documentato interesse archeologico;<br/>e/o è contigua alle suddette aree.
interv-non-modificante = Si tratta di intervento che non comporta:<br/>mutamento nell’aspetto esteriore e/o nello stato e dei luoghi,<br/>e/o movimentazioni di terreno (comprese scarificazioni e impianto e/o reimpianto di essenze vegetali);<br/>e/o nuove edificazioni (anche se realizzate nell’ambito della ristrutturazione di manufatti esistenti);<br/>e/o scavi a quote diverse da quelle già impegnate da manufatti esistenti.
interv-non-assoggettabile = le opere previste in progetto non sono assoggettabili al Codice dei Contratti (D.Lgs. 50/2016).
interv-in-area-di-interesse = L’area oggetto dell’intervento: è già dichiarata di interesse archeologico, ai sensi degli artt. 10 e/o 142, comma 1 lettera m, del D.Lgs. 42/2004; e/o è classificata come parco archeologico, ai sensi dell’art. 101 del D.Lgs. 42/2004; e/o è di documentato interesse archeologico; e/o è contigua alle suddette aree.
interv-non-modificante = Si tratta di intervento che non comporta: mutamento nell’aspetto esteriore e/o nello stato e dei luoghi, e/o movimentazioni di terreno (comprese scarificazioni e impianto e/o reimpianto di essenze vegetali); e/o nuove edificazioni (anche se realizzate nell’ambito della ristrutturazione di manufatti esistenti); e/o scavi a quote diverse da quelle già impegnate da manufatti esistenti.
interv-non-assoggettabile = Le opere previste in progetto non sono assoggettabili al Codice dei Contratti (D.Lgs. 50/2016).
sanatorie-obbligatorie = Selezionare almeno una Sanatoria Edilizia
### DESTINAZIONE (RIFERIMENTO AL REGOLAMENTO N.36/R DEL 9/7/2009, ALL.A)
@ -1318,5 +1319,17 @@ tipo_procedura_Q9 = Accertamento di compatibilità paesaggistica per istanze di
label_procedura_Q10 = 10
tipo_procedura_Q10 = Certificazione di sussistenza vincoli
mappe-bbcc = Mappe BBCC
mappe-openstreetmap = OpenStreetmap
#tipo_procedura_Q11 = 1) Autorizzazione per interventi su Beni Culturali mobili
#tipo_procedura_Q12 = 2) Autorizzazione per interventi su Beni Culturali immobili
#tipo_procedura_Q13 = 3) Verifica preventiva dell’interesse archeologico
#tipo_procedura_Q14 = 4) Autorizzazione prevista dagli strumenti urbanistici per interventi in aree e immobili non assoggettati a tutela ai sensi del D.Lgs. 42/2004 (c.d. centri storici)
#tipo_procedura_Q15 = 5) Autorizzazione per "Settori Speciali"
#tipo_procedura_Q16 = 6) Autorizzazione paesaggistica
#tipo_procedura_Q17 = 7) Autorizzazione paesaggistica per interventi di lieve entità
#tipo_procedura_Q18 = 8) Accertamento di compatibilità paesaggistica
#tipo_procedura_Q19 = 9) Condono Edilizio
sanatoria-edilizia = Sanatoria edilizia
intervento-voce-p7 = L.R. 5/2019, art. 3, allegato B: intervento alla voce B

133
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/portlet/RicercaPosizionePortlet.java

@ -0,0 +1,133 @@
package it.mwg.sismica.bo.portlet;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletException;
import javax.portlet.ResourceRequest;
import javax.portlet.ResourceResponse;
import org.apache.commons.lang.StringUtils;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONArray;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
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.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.ServiceContextFactory;
import com.liferay.util.bridges.mvc.MVCPortlet;
public class RicercaPosizionePortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(RicercaPosizionePortlet.class);
@SuppressWarnings("serial")
private static final List<String> campi = new ArrayList<String>() {
{
add("tabs1");
add("numeroProgetto");
add("provincia");
add("comune");
add("via");
add("lat");
add("long");
add("raggio");
}
};
public void ricerca(ActionRequest actionRequest, ActionResponse actionResponse) {
// PortalUtil.copyRequestParameters(actionRequest, actionResponse);
for (String campo : campi) {
String val = ParamUtil.getString(actionRequest, campo, StringPool.BLANK);
actionResponse.setRenderParameter(campo, val);
}
}
public void localizzaProgetto(ActionRequest actionRequest, ActionResponse actionResponse)
throws IOException, SystemException {
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
JSONObject object = JSONFactoryUtil.createJSONObject();
if (Validator.isNotNull(numeroProgetto)) {
IntPratica pratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto);
if (Validator.isNotNull(pratica)) {
DettPratica dett = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(pratica
.getIntPraticaId());
if (Validator.isNotNull(dett)) {
String localizzazione = dett.getLocalizzazioneGeografica();
if (Validator.isNotNull(localizzazione)) {
String[] parti = StringUtils.split(localizzazione, '|');
if (parti.length > 1) {
object.put("lat", Double.valueOf(parti[0]));
object.put("lng", Double.valueOf(parti[1]));
}
}
}
}
}
writeJSON(actionRequest, actionResponse, object);
}
@Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse)
throws IOException, PortletException {
String id = resourceRequest.getResourceID();
ServiceContext serviceContext;
try {
serviceContext = ServiceContextFactory.getInstance(resourceRequest);
long companyId = serviceContext.getCompanyId();
JSONArray array = JSONFactoryUtil.createJSONArray();
switch (id) {
case "province":
for (String codice : TerritorioLocalServiceUtil.getActiveProvince()) {
JSONObject object = JSONFactoryUtil.createJSONObject();
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(companyId, codice);
object.put("id", provincia.getCodiceProvincia());
object.put("nome", provincia.getProvincia());
array.put(object);
}
writeJSON(resourceRequest, resourceResponse, array);
break;
case "comuni":
String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId");
if (Validator.isNotNull(provinciaId)) {
List<Long> comuni = TerritorioLocalServiceUtil
.getActiveComuniByCodiceProvincia(provinciaId);
for (long comuneId : comuni) {
JSONObject object = JSONFactoryUtil.createJSONObject();
Comune comune = ComuneLocalServiceUtil.getComune(comuneId);
object.put("id", comune.getComuneId());
object.put("nome", comune.getDenominazione());
array.put(object);
}
}
writeJSON(resourceRequest, resourceResponse, array);
break;
default:
super.serveResource(resourceRequest, resourceResponse);
}
} catch (PortalException | SystemException e) {
e.printStackTrace();
}
}
}

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

@ -15,6 +15,7 @@ import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.DocAggiuntiva;
import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.model.HistoryWorkflowAction;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.model.ParereGeologo;
@ -32,6 +33,7 @@ import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DocAggiuntivaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil;
import it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil;
@ -141,7 +143,9 @@ import com.liferay.portlet.messageboards.model.MBThread;
import com.liferay.portlet.messageboards.service.MBDiscussionLocalServiceUtil;
import com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil;
import com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil;
import com.liferay.portlet.ratings.model.RatingsEntry;
import com.liferay.portlet.ratings.model.RatingsStats;
import com.liferay.portlet.ratings.service.RatingsEntryLocalServiceUtil;
import com.liferay.portlet.ratings.service.RatingsStatsLocalServiceUtil;
import com.liferay.portlet.wiki.model.WikiNode;
import com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil;
@ -232,8 +236,10 @@ public class ManutenzioneDatabase {
.getWorkflowInstanceLink(companyId, groupId, ControlloPratica.class.getName(),
controllo.getPrimaryKey());
long workflowInstanceId = workflowInstancelink.getWorkflowInstanceId();
WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(
controllo.getCompanyId(), workflowInstanceId);
// WorkflowInstance workflowInstance =
// WorkflowInstanceManagerUtil
// .getWorkflowInstance(controllo.getCompanyId(),
// workflowInstanceId);
List<Integer> types = new ArrayList<>();
types.add(WorkflowLog.TASK_ASSIGN);
logs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(companyId,
@ -296,11 +302,13 @@ public class ManutenzioneDatabase {
esitoLog(esito, svuotaEmailAttachment());
esitoLog(esito, svuotaFineLavori());
esitoLog(esito, svuotaGroup(companyId));
esitoLog(esito, svuotaHistoryWorkflowAction());
esitoLog(esito, svuotaMBDiscussion(companyId));
esitoLog(esito, svuotaMBMessage(companyId));
esitoLog(esito, svuotaMBThread());
esitoLog(esito, svuotaPagamento(companyId));
esitoLog(esito, svuotaParereGeologo());
esitoLog(esito, svuotaRatingsEntry());
esitoLog(esito, svuotaRatingsStats(companyId));
esitoLog(esito, svuotaResourcePermission(companyId));
esitoLog(esito, svuotaSoggetto());
@ -308,6 +316,7 @@ public class ManutenzioneDatabase {
esitoLog(esito, svuotaSyncDLObject());
esitoLog(esito, svuotaSystemEvent(companyId));
esitoLog(esito, svuotaTempistica());
esitoLog(esito, svuotaWorkflowInstance());
return esito;
}
@ -409,7 +418,8 @@ public class ManutenzioneDatabase {
int rimossi = 0;
fileEntries = DLAppServiceUtil.getFileEntries(repositoryId, folderId, start, start + SLICE);
for (FileEntry fileEntry : fileEntries) {
String[] parti = StringUtil.split(fileEntry.getTitle(), '_');
String[] parti = StringUtil.split(fileEntry.getTitle()
.replaceAll("\\.p7m$", StringPool.BLANK), '_');
String strId1 = parti[0];
String tipo = StringPool.BLANK;
String strId2 = StringPool.BLANK;
@ -422,6 +432,11 @@ public class ManutenzioneDatabase {
tipo = parti[1] + StringPool.UNDERLINE + parti[2];
strId2 = parti[3];
break;
case 5:
if (parti[4].equals("protocollato")) {
tipo = parti[1] + StringPool.UNDERLINE + parti[2];
strId2 = parti[3];
}
}
if ((strId1.length() == 10) && (strId2.length() > 0) && SismicaUtil.isLong(strId1)
&& SismicaUtil.isLong(strId2)) {
@ -434,7 +449,11 @@ public class ManutenzioneDatabase {
rimossi++;
}
break;
case "AI_B":
case "CO_B":
case "IN_B":
case "IN_F":
case "MA_F":
if (!avvisiFileEntries.contains(fileEntry.getFileEntryId())) {
DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId());
cancellati++;
@ -774,6 +793,26 @@ public class ManutenzioneDatabase {
return "Cancellati " + cancellati + " Group";
}
private static String svuotaHistoryWorkflowAction() throws SystemException {
int start = 0;
int cancellati = 0;
List<HistoryWorkflowAction> actions = null;
do {
int rimossi = 0;
actions = HistoryWorkflowActionLocalServiceUtil.getHistoryWorkflowActions(start, start + SLICE);
for (HistoryWorkflowAction action : actions) {
if (!esiste(INTPRATICA_CLASS_NAME, action.getIntPraticaId())
|| !esiste(DETTPRATICA_CLASS_NAME, action.getDettPraticaId())) {
HistoryWorkflowActionLocalServiceUtil.deleteHistoryWorkflowAction(action);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (actions.size() > 0);
return "Cancellati " + cancellati + " HistoryWorkflowAction";
}
private static String svuotaMBDiscussion(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
@ -878,6 +917,25 @@ public class ManutenzioneDatabase {
return "Cancellati " + cancellati + " ParereGeologo";
}
private static String svuotaRatingsEntry() throws SystemException {
int start = 0;
int cancellati = 0;
List<RatingsEntry> entries = null;
do {
int rimossi = 0;
entries = RatingsEntryLocalServiceUtil.getRatingsEntries(start, start + SLICE);
for (RatingsEntry entry : entries) {
if (!esiste(entry.getClassName(), entry.getClassPK())) {
RatingsEntryLocalServiceUtil.deleteRatingsEntry(entry);
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (entries.size() > 0);
return "Cancellati " + cancellati + " RatingsEntry";
}
private static String svuotaRatingsStats(long companyId) throws SystemException {
int start = 0;
int cancellati = 0;
@ -1066,6 +1124,37 @@ public class ManutenzioneDatabase {
return "Cancellati " + cancellati + " User";
}
private static String svuotaWorkflowInstance() throws SystemException, PortalException {
int start = 0;
int cancellati = 0;
List<WorkflowInstanceLink> links = null;
do {
int rimossi = 0;
links = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLinks(start, start + SLICE);
for (WorkflowInstanceLink link : links) {
if (!esiste(link.getClassName(), link.getClassPK())) {
_log.info("Manca " + link.getClassName() + " " + link.getClassPK());
WorkflowInstance instance = null;
try {
instance = WorkflowInstanceManagerUtil.getWorkflowInstance(link.getCompanyId(),
link.getWorkflowInstanceId());
} catch (PortalException e) {
}
if (Validator.isNull(instance)) {
WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(link);
} else {
WorkflowInstanceManagerUtil.deleteWorkflowInstance(link.getCompanyId(),
instance.getWorkflowInstanceId());
}
cancellati++;
rimossi++;
}
}
start += SLICE - rimossi;
} while (links.size() > 0);
return "Cancellati " + cancellati + " WorkflowInstance";
}
private static boolean esiste(String className, long classPK) throws SystemException {
return esiste(className, classPK, 0);
}

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

@ -43,9 +43,12 @@ public class CollaudoImpl extends CollaudoBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a collaudo model instance should use the {@link
* Never reference this class directly. All methods that expect a collaudo
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Collaudo} interface instead.
*/
public CollaudoImpl() {
}
private static final Log _log = LogFactoryUtil.getLog(CollaudoImpl.class);

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

@ -35,8 +35,11 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial")
public class DelegaImpl extends DelegaBaseImpl {
/*
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a delega model instance should
* use the {@link it.tref.liferay.portos.bo.model.Delega} interface instead.
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a delega
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Delega} interface instead.
*/
public DelegaImpl() {
}

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

@ -41,8 +41,11 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial")
public class FineLavoriImpl extends FineLavoriBaseImpl {
/*
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a fine lavori model instance
* should use the {@link it.tref.liferay.portos.bo.model.FineLavori} interface instead.
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a fine
* lavori model instance should use the {@link
* it.tref.liferay.portos.bo.model.FineLavori} interface instead.
*/
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);

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

@ -38,7 +38,7 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
Externalizable {
@Override
public String toString() {
StringBundler sb = new StringBundler(65);
StringBundler sb = new StringBundler(69);
sb.append("{uuid=");
sb.append(uuid);
@ -62,6 +62,10 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
sb.append(territorioId);
sb.append(", tipoProcedura=");
sb.append(tipoProcedura);
sb.append(", latitudine=");
sb.append(latitudine);
sb.append(", longitudine=");
sb.append(longitudine);
sb.append(", dtAnnullamento=");
sb.append(dtAnnullamento);
sb.append(", docPraticaAnnullamentoId=");
@ -163,6 +167,9 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
intPraticaImpl.setTipoProcedura(tipoProcedura);
}
intPraticaImpl.setLatitudine(latitudine);
intPraticaImpl.setLongitudine(longitudine);
if (dtAnnullamento == Long.MIN_VALUE) {
intPraticaImpl.setDtAnnullamento(null);
}
@ -255,6 +262,8 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
tipoPratica = objectInput.readUTF();
territorioId = objectInput.readLong();
tipoProcedura = objectInput.readUTF();
latitudine = objectInput.readDouble();
longitudine = objectInput.readDouble();
dtAnnullamento = objectInput.readLong();
docPraticaAnnullamentoId = objectInput.readLong();
unitaOperativa = objectInput.readInt();
@ -319,6 +328,8 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
objectOutput.writeUTF(tipoProcedura);
}
objectOutput.writeDouble(latitudine);
objectOutput.writeDouble(longitudine);
objectOutput.writeLong(dtAnnullamento);
objectOutput.writeLong(docPraticaAnnullamentoId);
objectOutput.writeInt(unitaOperativa);
@ -379,6 +390,8 @@ public class IntPraticaCacheModel implements CacheModel<IntPratica>,
public String tipoPratica;
public long territorioId;
public String tipoProcedura;
public double latitudine;
public double longitudine;
public long dtAnnullamento;
public long docPraticaAnnullamentoId;
public int unitaOperativa;

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

@ -12,12 +12,27 @@
package it.tref.liferay.portos.bo.model.impl;
import static java.lang.Math.PI;
import static java.lang.Math.atan2;
import static java.lang.Math.cos;
import static java.lang.Math.pow;
import static java.lang.Math.round;
import static java.lang.Math.sin;
import static java.lang.Math.sqrt;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants;
import java.util.Locale;
import org.apache.commons.lang.StringUtils;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
@ -44,6 +59,7 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
*/
private static final Log _log = LogFactoryUtil.getLog(IntPraticaImpl.class);
private Integer distanzaOrtodromica = null;
public IntPraticaImpl() {
}
@ -95,7 +111,6 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
@Override
public int getTipoRichiesta(){
switch(getTipoProcedura()){
case Constants.PROCEDURA_P1:
case Constants.PROCEDURA_Q1:
@ -141,5 +156,41 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
}
}
public String getIndirizzo() throws SystemException {
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(getTerritorioId());
Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId());
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(getIntPraticaId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
return comune.getDenominazione() + " (" + provincia.getSigla() + ")<br/>" + dettPratica.getVia();
}
@Override
public Integer calcolaDistanzaOrtodromica(double lat, double lng) throws SystemException {
String localizzazione = null;
distanzaOrtodromica = null;
DettPratica dett = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(getIntPraticaId());
if (Validator.isNotNull(dett.getLocalizzazioneGeografica())) {
localizzazione = dett.getLocalizzazioneGeografica();
}
if (Validator.isNotNull(localizzazione)) {
String[] parti = StringUtils.split(localizzazione, '|');
if (parti.length >= 2) {
double mylat = Double.valueOf(parti[0]);
double mylng = Double.valueOf(parti[1]);
double degRad = PI / 180;
double a = pow(sin((mylat - lat) * degRad / 2), 2) + cos(lat * degRad) * cos(mylat * degRad)
* pow(sin((mylng - lng) * degRad / 2), 2);
distanzaOrtodromica = (int) round((12742e3 * atan2(sqrt(a), sqrt(1 - a))));
}
}
return distanzaOrtodromica;
}
@Override
public Integer getDistanzaOrtodromica() {
return distanzaOrtodromica;
}
}

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

@ -78,6 +78,8 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
{ "tipoPratica", Types.VARCHAR },
{ "territorioId", Types.BIGINT },
{ "tipoProcedura", Types.VARCHAR },
{ "latitudine", Types.DOUBLE },
{ "longitudine", Types.DOUBLE },
{ "dtAnnullamento", Types.TIMESTAMP },
{ "docPraticaAnnullamentoId", Types.BIGINT },
{ "unitaOperativa", Types.INTEGER },
@ -100,7 +102,7 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
{ "controlloObbligatorio", Types.BOOLEAN },
{ "inLavorazioneSue", Types.BOOLEAN }
};
public static final String TABLE_SQL_CREATE = "create table portos_bo_IntPratica (uuid_ VARCHAR(75) null,intPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,tipoPratica VARCHAR(75) null,territorioId LONG,tipoProcedura VARCHAR(75) null,dtAnnullamento DATE null,docPraticaAnnullamentoId LONG,unitaOperativa INTEGER,statoPratica VARCHAR(10) null,numeroProgetto VARCHAR(75) null,validata BOOLEAN,status INTEGER,statusByUserId LONG,statusDate DATE null,esitoControllo INTEGER,dtPratica DATE null,sospesa BOOLEAN,dtSospensione DATE null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,fineLavoriParziale BOOLEAN,fineLavoriTotale BOOLEAN,collaudoParziale BOOLEAN,collaudoTotale BOOLEAN,controlloObbligatorio BOOLEAN,inLavorazioneSue BOOLEAN)";
public static final String TABLE_SQL_CREATE = "create table portos_bo_IntPratica (uuid_ VARCHAR(75) null,intPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,tipoPratica VARCHAR(75) null,territorioId LONG,tipoProcedura VARCHAR(75) null,latitudine DOUBLE,longitudine DOUBLE,dtAnnullamento DATE null,docPraticaAnnullamentoId LONG,unitaOperativa INTEGER,statoPratica VARCHAR(10) null,numeroProgetto VARCHAR(75) null,validata BOOLEAN,status INTEGER,statusByUserId LONG,statusDate DATE null,esitoControllo INTEGER,dtPratica DATE null,sospesa BOOLEAN,dtSospensione DATE null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,fineLavoriParziale BOOLEAN,fineLavoriTotale BOOLEAN,collaudoParziale BOOLEAN,collaudoTotale BOOLEAN,controlloObbligatorio BOOLEAN,inLavorazioneSue BOOLEAN)";
public static final String TABLE_SQL_DROP = "drop table portos_bo_IntPratica";
public static final String ORDER_BY_JPQL = " ORDER BY intPratica.intPraticaId ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_bo_IntPratica.intPraticaId ASC";
@ -149,6 +151,8 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
model.setTipoPratica(soapModel.getTipoPratica());
model.setTerritorioId(soapModel.getTerritorioId());
model.setTipoProcedura(soapModel.getTipoProcedura());
model.setLatitudine(soapModel.getLatitudine());
model.setLongitudine(soapModel.getLongitudine());
model.setDtAnnullamento(soapModel.getDtAnnullamento());
model.setDocPraticaAnnullamentoId(soapModel.getDocPraticaAnnullamentoId());
model.setUnitaOperativa(soapModel.getUnitaOperativa());
@ -245,6 +249,8 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
attributes.put("tipoPratica", getTipoPratica());
attributes.put("territorioId", getTerritorioId());
attributes.put("tipoProcedura", getTipoProcedura());
attributes.put("latitudine", getLatitudine());
attributes.put("longitudine", getLongitudine());
attributes.put("dtAnnullamento", getDtAnnullamento());
attributes.put("docPraticaAnnullamentoId", getDocPraticaAnnullamentoId());
attributes.put("unitaOperativa", getUnitaOperativa());
@ -340,6 +346,18 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
setTipoProcedura(tipoProcedura);
}
Double latitudine = (Double)attributes.get("latitudine");
if (latitudine != null) {
setLatitudine(latitudine);
}
Double longitudine = (Double)attributes.get("longitudine");
if (longitudine != null) {
setLongitudine(longitudine);
}
Date dtAnnullamento = (Date)attributes.get("dtAnnullamento");
if (dtAnnullamento != null) {
@ -679,6 +697,28 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
_tipoProcedura = tipoProcedura;
}
@JSON
@Override
public double getLatitudine() {
return _latitudine;
}
@Override
public void setLatitudine(double latitudine) {
_latitudine = latitudine;
}
@JSON
@Override
public double getLongitudine() {
return _longitudine;
}
@Override
public void setLongitudine(double longitudine) {
_longitudine = longitudine;
}
@JSON
@Override
public Date getDtAnnullamento() {
@ -1053,6 +1093,8 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
intPraticaImpl.setTipoPratica(getTipoPratica());
intPraticaImpl.setTerritorioId(getTerritorioId());
intPraticaImpl.setTipoProcedura(getTipoProcedura());
intPraticaImpl.setLatitudine(getLatitudine());
intPraticaImpl.setLongitudine(getLongitudine());
intPraticaImpl.setDtAnnullamento(getDtAnnullamento());
intPraticaImpl.setDocPraticaAnnullamentoId(getDocPraticaAnnullamentoId());
intPraticaImpl.setUnitaOperativa(getUnitaOperativa());
@ -1217,6 +1259,10 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
intPraticaCacheModel.tipoProcedura = null;
}
intPraticaCacheModel.latitudine = getLatitudine();
intPraticaCacheModel.longitudine = getLongitudine();
Date dtAnnullamento = getDtAnnullamento();
if (dtAnnullamento != null) {
@ -1318,7 +1364,7 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
@Override
public String toString() {
StringBundler sb = new StringBundler(65);
StringBundler sb = new StringBundler(69);
sb.append("{uuid=");
sb.append(getUuid());
@ -1342,6 +1388,10 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
sb.append(getTerritorioId());
sb.append(", tipoProcedura=");
sb.append(getTipoProcedura());
sb.append(", latitudine=");
sb.append(getLatitudine());
sb.append(", longitudine=");
sb.append(getLongitudine());
sb.append(", dtAnnullamento=");
sb.append(getDtAnnullamento());
sb.append(", docPraticaAnnullamentoId=");
@ -1391,7 +1441,7 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(100);
StringBundler sb = new StringBundler(106);
sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.IntPratica");
@ -1441,6 +1491,14 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
"<column><column-name>tipoProcedura</column-name><column-value><![CDATA[");
sb.append(getTipoProcedura());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>latitudine</column-name><column-value><![CDATA[");
sb.append(getLatitudine());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>longitudine</column-name><column-value><![CDATA[");
sb.append(getLongitudine());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>dtAnnullamento</column-name><column-value><![CDATA[");
sb.append(getDtAnnullamento());
@ -1556,6 +1614,8 @@ public class IntPraticaModelImpl extends BaseModelImpl<IntPratica>
private long _originalTerritorioId;
private boolean _setOriginalTerritorioId;
private String _tipoProcedura;
private double _latitudine;
private double _longitudine;
private Date _dtAnnullamento;
private long _docPraticaAnnullamentoId;
private int _unitaOperativa;

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

@ -25,12 +25,14 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.util.DLUtil;
/**
* The extended model implementation for the Pagamento service. Represents a row in the &quot;portos_bo_Pagamento&quot;
* database table, with each column mapped to a property of this class.
* The extended model implementation for the Pagamento service. Represents a row
* in the &quot;portos_bo_Pagamento&quot; database table, with each column
* mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Pagamento} interface.
* Helper methods and all application logic should be put in this class.
* Whenever methods are added, rerun ServiceBuilder to copy their definitions
* into the {@link it.tref.liferay.portos.bo.model.Pagamento} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -38,15 +40,17 @@ import com.liferay.portlet.documentlibrary.util.DLUtil;
@SuppressWarnings("serial")
public class PagamentoImpl extends PagamentoBaseImpl {
/*
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a pagamento model instance
* should use the {@link it.tref.liferay.portos.bo.model.Pagamento} interface instead.
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a pagamento
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Pagamento} interface instead.
*/
public PagamentoImpl() {
}
@Override
public String getDownloadUrl(ThemeDisplay themeDisplay) throws PortalException, SystemException {
if (Validator.isNull(getFileEntryId())) {
return null;
}
@ -56,7 +60,6 @@ public class PagamentoImpl extends PagamentoBaseImpl {
@Override
public String getImportoString() {
String importo = getImporto();
BigDecimal importoVal;
if (Validator.isNotNull(importo)) {

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/SoggettoModelListener.java

@ -27,6 +27,7 @@ public class SoggettoModelListener extends BaseModelListener<Soggetto> {
} catch (SearchException e) {
_log.error(e, e);
}
super.onAfterUpdate(model);
}
}

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

@ -2,7 +2,9 @@ package it.tref.liferay.portos.bo.portlet;
import it.mwg.sismica.bo.util.ManutenzioneDatabase;
import it.mwg.sismica.bo.util.SismicaUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import java.sql.SQLException;
import java.util.ArrayList;
@ -14,6 +16,8 @@ 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.kernel.util.WebKeys;
@ -23,9 +27,26 @@ import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.util.bridges.mvc.MVCPortlet;
public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
private final static Log _log = LogFactoryUtil.getLog(PaesaggisticaAdministrationPortlet.class);
public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
public void impostazioniMappe(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException {
String urlIframeFE = ParamUtil.getString(actionRequest, "urlIframeFE");
String urlIframeBO = ParamUtil.getString(actionRequest, "urlIframeBO");
String sharedSecret = ParamUtil.getString(actionRequest, "sharedSecret");
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
// Company company = themeDisplay.getCompany();
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.MAPPE_URL_IFRAME_FE, urlIframeFE,
serviceContext);
ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.MAPPE_URL_IFRAME_BO, urlIframeBO,
serviceContext);
ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.MAPPE_SHARED_SECRET, sharedSecret,
serviceContext);
}
public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
List<String> esito = new ArrayList<String>();
esito.add("<h3>Env:</h3>");
for (Map.Entry<String, String> entry : System.getenv().entrySet()) {

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

@ -186,212 +186,250 @@ public class IntPraticaLocalServiceClpInvoker {
_methodParameterTypes189 = new String[] { };
_methodName191 = "addNumeroProgetto";
_methodName191 = "countByPosizione";
_methodParameterTypes191 = new String[] { "long" };
_methodParameterTypes191 = new String[] { "double", "double", "int" };
_methodName192 = "sospendiPratica";
_methodName192 = "findByPosizione";
_methodParameterTypes192 = new String[] { "long", "boolean" };
_methodParameterTypes192 = new String[] { "double", "double", "int" };
_methodName193 = "cambiaTitolare";
_methodName193 = "findByPosizione";
_methodParameterTypes193 = new String[] {
"double", "double", "int", "int", "int"
};
_methodName195 = "addNumeroProgetto";
_methodParameterTypes195 = new String[] { "long" };
_methodName196 = "sospendiPratica";
_methodParameterTypes196 = new String[] { "long", "boolean" };
_methodName197 = "cambiaTitolare";
_methodParameterTypes197 = new String[] {
"long", "long", "com.liferay.portal.service.ServiceContext"
};
_methodName194 = "updateStatoPratica";
_methodName198 = "updateStatoPratica";
_methodParameterTypes198 = new String[] { "long", "java.lang.String" };
_methodName199 = "findByC_UserId";
_methodParameterTypes199 = new String[] { "long", "long", "int", "int" };
_methodName200 = "countByC_UserId";
_methodParameterTypes200 = new String[] { "long", "long" };
_methodName201 = "updateStatus";
_methodParameterTypes194 = new String[] { "long", "java.lang.String" };
_methodParameterTypes201 = new String[] { "long", "int" };
_methodName195 = "findByC_UserId";
_methodName202 = "findByCompanyIdSoggettoProgetti";
_methodParameterTypes195 = new String[] { "long", "long", "int", "int" };
_methodParameterTypes202 = new String[] { "long", "long" };
_methodName196 = "countByC_UserId";
_methodName203 = "countByCompanyIdSoggettoProgetti";
_methodParameterTypes196 = new String[] { "long", "long" };
_methodParameterTypes203 = new String[] { "long", "long" };
_methodName197 = "updateStatus";
_methodName205 = "findByCompanyIdSoggettoArchivio";
_methodParameterTypes197 = new String[] { "long", "int" };
_methodParameterTypes205 = new String[] { "long", "long" };
_methodName198 = "findByCanAddFineLavori";
_methodName206 = "countByCompanyIdSoggettoArchivio";
_methodParameterTypes198 = new String[] {
_methodParameterTypes206 = new String[] { "long", "long" };
_methodName208 = "findByCompanyIdSoggettoAltriProgetti";
_methodParameterTypes208 = new String[] { "long", "long", "int", "int" };
_methodName209 = "countByCompanyIdSoggettoAltriProgetti";
_methodParameterTypes209 = new String[] { "long", "long" };
_methodName211 = "findByCanAddFineLavori";
_methodParameterTypes211 = new String[] {
"long", "java.lang.String", "int", "int"
};
_methodName199 = "countByCanAddFineLavori";
_methodName212 = "countByCanAddFineLavori";
_methodParameterTypes199 = new String[] { "long", "java.lang.String" };
_methodParameterTypes212 = new String[] { "long", "java.lang.String" };
_methodName201 = "findByCanAddCollaudo";
_methodName214 = "findByCanAddCollaudo";
_methodParameterTypes201 = new String[] {
_methodParameterTypes214 = new String[] {
"long", "java.lang.String", "int", "int"
};
_methodName202 = "countByCanAddCollaudo";
_methodName215 = "countByCanAddCollaudo";
_methodParameterTypes202 = new String[] { "long", "java.lang.String" };
_methodParameterTypes215 = new String[] { "long", "java.lang.String" };
_methodName203 = "search";
_methodName216 = "search";
_methodParameterTypes203 = new String[] { "java.util.List", "int", "int" };
_methodParameterTypes216 = new String[] { "java.util.List", "int", "int" };
_methodName204 = "countSearch";
_methodName217 = "countSearch";
_methodParameterTypes204 = new String[] { "java.util.List" };
_methodParameterTypes217 = new String[] { "java.util.List" };
_methodName205 = "searchWithIntPraticaId";
_methodName218 = "searchWithIntPraticaId";
_methodParameterTypes205 = new String[] {
_methodParameterTypes218 = new String[] {
"java.util.List", "long", "int", "int"
};
_methodName206 = "allegaFileAnnullamento";
_methodName219 = "allegaFileAnnullamento";
_methodParameterTypes206 = new String[] {
_methodParameterTypes219 = new String[] {
"long", "byte[][]", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName207 = "generateFileAnnullamento";
_methodName220 = "generateFileAnnullamento";
_methodParameterTypes207 = new String[] {
_methodParameterTypes220 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName208 = "deleteFileAnnullamento";
_methodName221 = "deleteFileAnnullamento";
_methodParameterTypes208 = new String[] { "long" };
_methodParameterTypes221 = new String[] { "long" };
_methodName209 = "completeAnnullamento";
_methodName222 = "completeAnnullamento";
_methodParameterTypes209 = new String[] { "long" };
_methodParameterTypes222 = new String[] { "long" };
_methodName210 = "cambiaIstruttore";
_methodName223 = "cambiaIstruttore";
_methodParameterTypes210 = new String[] { "long", "long", "long" };
_methodParameterTypes223 = new String[] { "long", "long", "long" };
_methodName211 = "countCaricoLavoroCF";
_methodName224 = "countCaricoLavoroCF";
_methodParameterTypes211 = new String[] {
_methodParameterTypes224 = new String[] {
"long", "java.lang.String", "java.lang.Long[][]"
};
_methodName212 = "countCaricoLavoroIstruttore";
_methodName225 = "countCaricoLavoroIstruttore";
_methodParameterTypes212 = new String[] { "long", "java.lang.String" };
_methodParameterTypes225 = new String[] { "long", "java.lang.String" };
_methodName213 = "generateReportPratica";
_methodName226 = "generateReportPratica";
_methodParameterTypes213 = new String[] {
_methodParameterTypes226 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long"
};
_methodName214 = "updateModifiedDate";
_methodName227 = "updateModifiedDate";
_methodParameterTypes214 = new String[] { "long", "java.util.Date" };
_methodParameterTypes227 = new String[] { "long", "java.util.Date" };
_methodName215 = "countAutorizzazione";
_methodName228 = "countAutorizzazione";
_methodParameterTypes215 = new String[] {
_methodParameterTypes228 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName216 = "countSanatorie";
_methodName229 = "countSanatorie";
_methodParameterTypes216 = new String[] {
_methodParameterTypes229 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName217 = "countOpereMinoreImportanza";
_methodName230 = "countOpereMinoreImportanza";
_methodParameterTypes217 = new String[] {
_methodParameterTypes230 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName218 = "countDeposito";
_methodName231 = "countDeposito";
_methodParameterTypes218 = new String[] {
_methodParameterTypes231 = new String[] {
"java.util.Date", "java.util.Date", "long", "boolean"
};
_methodName219 = "countVidimate";
_methodName232 = "countVidimate";
_methodParameterTypes219 = new String[] {
_methodParameterTypes232 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String",
"boolean"
};
_methodName220 = "countControllo";
_methodName233 = "countControllo";
_methodParameterTypes220 = new String[] {
_methodParameterTypes233 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String",
"boolean"
};
_methodName221 = "riparaWorkflow";
_methodName234 = "riparaWorkflow";
_methodParameterTypes221 = new String[] { };
_methodParameterTypes234 = new String[] { };
_methodName222 = "reIndexFascicolo";
_methodName235 = "reIndexFascicolo";
_methodParameterTypes222 = new String[] {
_methodParameterTypes235 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long"
};
_methodName223 = "reIndexFasciolo";
_methodName236 = "reIndexFasciolo";
_methodParameterTypes223 = new String[] { "java.lang.String", "long" };
_methodParameterTypes236 = new String[] { "java.lang.String", "long" };
_methodName224 = "reIndexFasciolo";
_methodName237 = "reIndexFasciolo";
_methodParameterTypes224 = new String[] { "long", "long" };
_methodParameterTypes237 = new String[] { "long", "long" };
_methodName225 = "findByNumeroProgetto";
_methodName238 = "findByNumeroProgetto";
_methodParameterTypes225 = new String[] { "java.lang.String" };
_methodParameterTypes238 = new String[] { "java.lang.String" };
_methodName226 = "findByTerritorioId";
_methodName239 = "findByTerritorioId";
_methodParameterTypes226 = new String[] { "long" };
_methodParameterTypes239 = new String[] { "long" };
_methodName227 = "reportTempisticheIstruttorieAvvisiAutorizzazioni";
_methodName240 = "reportTempisticheIstruttorieAvvisiAutorizzazioni";
_methodParameterTypes227 = new String[] {
_methodParameterTypes240 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String"
};
_methodName228 = "reportPraticheVidimate";
_methodName241 = "reportPraticheVidimate";
_methodParameterTypes228 = new String[] {
_methodParameterTypes241 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String"
};
_methodName229 = "countIngressiAutorizzazioni";
_methodName242 = "countIngressiAutorizzazioni";
_methodParameterTypes229 = new String[] {
_methodParameterTypes242 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName230 = "countIngressiDepositi";
_methodName243 = "countIngressiDepositi";
_methodParameterTypes230 = new String[] {
_methodParameterTypes243 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName231 = "countIngressiCO";
_methodName244 = "countIngressiCO";
_methodParameterTypes231 = new String[] {
_methodParameterTypes244 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName232 = "getOrganizationByIntPraticaId";
_methodName245 = "getOrganizationByIntPraticaId";
_methodParameterTypes232 = new String[] { "long" };
_methodParameterTypes245 = new String[] { "long" };
}
public Object invokeMethod(String name, String[] parameterTypes,
@ -586,128 +624,189 @@ public class IntPraticaLocalServiceClpInvoker {
if (_methodName191.equals(name) &&
Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) {
return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue());
return IntPraticaLocalServiceUtil.countByPosizione(((Double)arguments[0]).doubleValue(),
((Double)arguments[1]).doubleValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName192.equals(name) &&
Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) {
return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue());
return IntPraticaLocalServiceUtil.findByPosizione(((Double)arguments[0]).doubleValue(),
((Double)arguments[1]).doubleValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName193.equals(name) &&
Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByPosizione(((Double)arguments[0]).doubleValue(),
((Double)arguments[1]).doubleValue(),
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue(),
((Integer)arguments[4]).intValue());
}
if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) {
return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue());
}
if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue());
}
if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[2]);
}
if (_methodName194.equals(name) &&
Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) {
if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) {
if (_methodName199.equals(name) &&
Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
if (_methodName200.equals(name) &&
Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue());
return null;
}
if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName208.equals(name) &&
Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName209.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName211.equals(name) &&
Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName199.equals(name) &&
Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
if (_methodName212.equals(name) &&
Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return IntPraticaLocalServiceUtil.search((java.util.List<java.lang.Long>)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
return IntPraticaLocalServiceUtil.countSearch((java.util.List<java.lang.Long>)arguments[0]);
}
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
if (_methodName218.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) {
return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List<java.lang.Long>)arguments[0],
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
if (_methodName219.equals(name) &&
Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) {
return IntPraticaLocalServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3],
(com.liferay.portal.service.ServiceContext)arguments[4]);
}
if (_methodName207.equals(name) &&
Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
if (_methodName220.equals(name) &&
Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) {
return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[1]);
}
if (_methodName208.equals(name) &&
Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
if (_methodName221.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) {
IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue());
return null;
}
if (_methodName209.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) {
IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue());
return null;
}
if (_methodName210.equals(name) &&
Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) {
if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue());
@ -715,144 +814,144 @@ public class IntPraticaLocalServiceClpInvoker {
return null;
}
if (_methodName211.equals(name) &&
Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.Long[])arguments[2]);
}
if (_methodName212.equals(name) &&
Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName213.equals(name) &&
Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) {
if (_methodName226.equals(name) &&
Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) {
return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0],
((Long)arguments[1]).longValue());
}
if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
if (_methodName227.equals(name) &&
Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) {
return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(),
(java.util.Date)arguments[1]);
}
if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
if (_methodName228.equals(name) &&
Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) {
return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
if (_methodName229.equals(name) &&
Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) {
return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
if (_methodName230.equals(name) &&
Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) {
return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName218.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) {
if (_methodName231.equals(name) &&
Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) {
return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
((Boolean)arguments[3]).booleanValue());
}
if (_methodName219.equals(name) &&
Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) {
if (_methodName232.equals(name) &&
Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) {
return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3],
((Boolean)arguments[4]).booleanValue());
}
if (_methodName220.equals(name) &&
Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) {
if (_methodName233.equals(name) &&
Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) {
return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3],
((Boolean)arguments[4]).booleanValue());
}
if (_methodName221.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) {
if (_methodName234.equals(name) &&
Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) {
return IntPraticaLocalServiceUtil.riparaWorkflow();
}
if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) {
if (_methodName235.equals(name) &&
Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0],
((Long)arguments[1]).longValue());
return null;
}
if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
if (_methodName236.equals(name) &&
Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0],
((Long)arguments[1]).longValue());
return null;
}
if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
if (_methodName237.equals(name) &&
Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
return null;
}
if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
if (_methodName238.equals(name) &&
Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]);
}
if (_methodName226.equals(name) &&
Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) {
if (_methodName239.equals(name) &&
Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue());
}
if (_methodName227.equals(name) &&
Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) {
if (_methodName240.equals(name) &&
Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) {
return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3]);
}
if (_methodName228.equals(name) &&
Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) {
if (_methodName241.equals(name) &&
Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) {
return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3]);
}
if (_methodName229.equals(name) &&
Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) {
if (_methodName242.equals(name) &&
Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) {
return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName230.equals(name) &&
Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) {
if (_methodName243.equals(name) &&
Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) {
return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName231.equals(name) &&
Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) {
if (_methodName244.equals(name) &&
Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) {
return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName232.equals(name) &&
Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) {
if (_methodName245.equals(name) &&
Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) {
return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue());
}
@ -929,8 +1028,6 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes192;
private String _methodName193;
private String[] _methodParameterTypes193;
private String _methodName194;
private String[] _methodParameterTypes194;
private String _methodName195;
private String[] _methodParameterTypes195;
private String _methodName196;
@ -941,32 +1038,26 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes198;
private String _methodName199;
private String[] _methodParameterTypes199;
private String _methodName200;
private String[] _methodParameterTypes200;
private String _methodName201;
private String[] _methodParameterTypes201;
private String _methodName202;
private String[] _methodParameterTypes202;
private String _methodName203;
private String[] _methodParameterTypes203;
private String _methodName204;
private String[] _methodParameterTypes204;
private String _methodName205;
private String[] _methodParameterTypes205;
private String _methodName206;
private String[] _methodParameterTypes206;
private String _methodName207;
private String[] _methodParameterTypes207;
private String _methodName208;
private String[] _methodParameterTypes208;
private String _methodName209;
private String[] _methodParameterTypes209;
private String _methodName210;
private String[] _methodParameterTypes210;
private String _methodName211;
private String[] _methodParameterTypes211;
private String _methodName212;
private String[] _methodParameterTypes212;
private String _methodName213;
private String[] _methodParameterTypes213;
private String _methodName214;
private String[] _methodParameterTypes214;
private String _methodName215;
@ -1005,4 +1096,30 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes231;
private String _methodName232;
private String[] _methodParameterTypes232;
private String _methodName233;
private String[] _methodParameterTypes233;
private String _methodName234;
private String[] _methodParameterTypes234;
private String _methodName235;
private String[] _methodParameterTypes235;
private String _methodName236;
private String[] _methodParameterTypes236;
private String _methodName237;
private String[] _methodParameterTypes237;
private String _methodName238;
private String[] _methodParameterTypes238;
private String _methodName239;
private String[] _methodParameterTypes239;
private String _methodName240;
private String[] _methodParameterTypes240;
private String _methodName241;
private String[] _methodParameterTypes241;
private String _methodName242;
private String[] _methodParameterTypes242;
private String _methodName243;
private String[] _methodParameterTypes243;
private String _methodName244;
private String[] _methodParameterTypes244;
private String _methodName245;
private String[] _methodParameterTypes245;
}

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

@ -56,7 +56,10 @@ import it.tref.liferay.portos.report.shared.util.ReportUtil;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
@ -214,7 +217,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
@Override
public IntPratica deleteIntPratica(IntPratica intPratica, boolean forced) throws SystemException, PortalException {
if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || forced) {
if (Validator.isNotNull(intPratica.getDocPraticaAnnullamentoId())) {
deleteFileAnnullamento(intPratica.getDocPraticaAnnullamentoId());
@ -305,7 +307,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
@Indexable(type = IndexableType.REINDEX)
public IntPratica cloneIntPratica(long intPraticaId, ServiceContext serviceContext) throws SystemException,
PortalException {
IntPratica intPraticaToClone = getIntPratica(intPraticaId);
IntPratica intPraticaCloned = addIntPratica(intPraticaToClone.getTerritorioId(),
intPraticaToClone.getTipoProcedura(), serviceContext);
@ -344,6 +345,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return intPratica;
}
@Override
public IntPratica fetchIntPratica(long intPraticaId) throws SystemException, PortalException {
@ -377,6 +379,44 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return dynamicQuery;
}
public int countByPosizione(double lat, double lng, int raggio) throws SystemException {
List<IntPratica> lista = findByPosizione(lat, lng, raggio);
return lista.size();
}
public List<IntPratica> findByPosizione(double lat, double lng, int raggio) throws SystemException {
return findByPosizione(lat, lng, raggio, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
}
public List<IntPratica> findByPosizione(double lat, double lng, int raggio, int start, int end)
throws SystemException {
DynamicQuery query = queryPosizione();
List<IntPratica> trovate = new ArrayList<>();
for (IntPratica pratica : (List<IntPratica>) intPraticaPersistence.findWithDynamicQuery(query)) {
if (pratica.calcolaDistanzaOrtodromica(lat, lng) <= raggio) {
trovate.add(pratica);
}
}
Collections.sort(trovate, new Comparator<IntPratica>() {
@Override
public int compare(IntPratica o1, IntPratica o2) {
return o1.getDistanzaOrtodromica().compareTo(o2.getDistanzaOrtodromica());
}
});
if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS)) {
return trovate;
} else {
return trovate.subList(start, Math.min(end, trovate.size()));
}
}
private DynamicQuery queryPosizione() {
DynamicQuery query = IntPraticaLocalServiceUtil.dynamicQuery();
query.add(RestrictionsFactoryUtil.ne("numeroProgetto", StringPool.BLANK));
query.add(RestrictionsFactoryUtil.isNotNull("numeroProgetto"));
return query;
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addNumeroProgetto(long intPraticaId) throws PortalException, SystemException {
@ -432,6 +472,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica updateStatoPratica(long intPraticaId, String statoPratica) throws PortalException,
SystemException {
@ -440,12 +481,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
IntPratica intPratica = getIntPratica(intPraticaId);
intPratica.setModifiedDate(new Date());
intPratica.setStatoPratica(statoPratica);
return updateIntPratica(intPratica);
}
@Override
public List<IntPratica> findByC_UserId(long companyId, long userId, int start, int end) throws SystemException {
return intPraticaPersistence.findByC_UserId(companyId, userId, start, end);
}
@ -493,6 +534,133 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
intPratica = updateIntPratica(intPratica);
}
@Override
public List<IntPratica> findByCompanyIdSoggettoProgetti(long companyId, long soggettoId)
throws SystemException, PortalException {
DynamicQuery dynamicQuery = createQueryProgetti(companyId, soggettoId);
return intPraticaPersistence.findWithDynamicQuery(dynamicQuery);
}
@Override
public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException,
PortalException {
DynamicQuery dynamicQuery = createQueryProgetti(companyId, soggettoId);
return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery);
}
private DynamicQuery createQueryProgetti(long companyId, long soggettoId) throws SystemException,
PortalException {
DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery();
dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId));
dynamicQuery.add(PropertyFactoryUtil.forName("userId").eq(soggettoId));
dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_ANY));
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE));
// disjunction.add(RestrictionsFactoryUtil.eq("status",
// WorkflowConstants.STATUS_DRAFT));
dynamicQuery.add(disjunction);
return dynamicQuery;
}
@Override
public List<IntPratica> findByCompanyIdSoggettoArchivio(long companyId, long soggettoId)
throws SystemException, PortalException {
List<Long> ids = soggettoLocalService.findIntPraticaBySoggettoId(soggettoId);
if (ids.isEmpty()) {
return Collections.<IntPratica> emptyList();
}
DynamicQuery dynamicQuery = createQueryArchivio(companyId, soggettoId, ids);
return intPraticaPersistence.findWithDynamicQuery(dynamicQuery);
}
@Override
public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException,
PortalException {
List<Long> ids = soggettoLocalService.findIntPraticaBySoggettoId(soggettoId);
if (ids.isEmpty()) {
return 0;
}
DynamicQuery dynamicQuery = createQueryArchivio(companyId, soggettoId, ids);
return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery);
}
private DynamicQuery createQueryArchivio(long companyId, long soggettoId, List<Long> ids)
throws SystemException, PortalException {
DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery();
dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_EXPIRED));
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_IN_TRASH));
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_APPROVED));
disjunction.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.ANNULLATA));
dynamicQuery.add(disjunction);
Disjunction disjunctionSoggetti = RestrictionsFactoryUtil.disjunction();
disjunctionSoggetti.add(RestrictionsFactoryUtil.eq("userId", soggettoId));
disjunctionSoggetti.add(RestrictionsFactoryUtil.in("intPraticaId", ids));
dynamicQuery.add(disjunctionSoggetti);
return dynamicQuery;
}
@Override
public List<IntPratica> findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start,
int end) throws SystemException, PortalException {
List<Long> ids = soggettoLocalService.findIntPraticaBySoggettoId(soggettoId);
if (ids.isEmpty()) {
return Collections.EMPTY_LIST;
}
DynamicQuery dynamicQuery = createQueryAltriProgetti(companyId, ids);
return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
}
@Override
public int countByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId) throws SystemException,
PortalException {
List<Long> ids = soggettoLocalService.findIntPraticaBySoggettoId(soggettoId);
if (ids.isEmpty()) {
return 0;
}
DynamicQuery dynamicQuery = createQueryAltriProgetti(companyId, ids);
return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery);
}
private DynamicQuery createQueryAltriProgetti(long companyId, List<Long> ids) throws SystemException,
PortalException {
DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery();
dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_ANY));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA));
dynamicQuery.add(RestrictionsFactoryUtil.in("intPraticaId", ids));
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<IntPratica> findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end)
@ -503,6 +671,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
public int countByCanAddFineLavori(long companyId, String codiceFiscale) throws SystemException, PortalException {
DynamicQuery dynamicQuery = createQueryFineLavori(companyId, codiceFiscale);
@ -568,6 +737,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtPratica"));
dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA));
return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
}
@Override
@ -1092,6 +1262,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return intPraticaPersistence.findByTerritorioId(territorioId);
}
// ADT: report tempistiche istruttorie
@Override
public List<Object[]> reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, long groupId,
@ -1104,7 +1275,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
@Override
public List<Object[]> reportPraticheVidimate(Date dtMin, Date dtMax, long groupId, String type)
throws SystemException {
return IntPraticaFinderUtil.reportPraticheVidimate(dtMin, dtMax, groupId, type);
}

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchAllegatoManualeException;
import it.tref.liferay.portos.bo.model.AllegatoManuale;
import it.tref.liferay.portos.bo.model.impl.AllegatoManualeImpl;
import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence;
import java.io.Serializable;

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

@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchAsseverazioneException;
import it.tref.liferay.portos.bo.model.Asseverazione;
import it.tref.liferay.portos.bo.model.impl.AsseverazioneImpl;
import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence;
import java.io.Serializable;

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

@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchAvvisoException;
import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.model.impl.AvvisoImpl;
import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchCollaudoException;
import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.impl.CollaudoImpl;
import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence;
import java.io.Serializable;

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

@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchComuneException;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.impl.ComuneImpl;
import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ComunePersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchComunicazioneException;
import it.tref.liferay.portos.bo.model.Comunicazione;
import it.tref.liferay.portos.bo.model.impl.ComunicazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchConfigurazioneException;
import it.tref.liferay.portos.bo.model.Configurazione;
import it.tref.liferay.portos.bo.model.impl.ConfigurazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchControlloPraticaException;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.impl.ControlloPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence;
import java.io.Serializable;

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

@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchDelegaException;
import it.tref.liferay.portos.bo.model.Delega;
import it.tref.liferay.portos.bo.model.impl.DelegaImpl;
import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchDettPraticaException;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException;
import it.tref.liferay.portos.bo.model.DocAggiuntiva;
import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaImpl;
import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence;
import java.io.Serializable;

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

@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchDocPraticaException;
import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.impl.DocPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchFineLavoriException;
import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.model.impl.FineLavoriImpl;
import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl;
import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence;
import java.io.Serializable;

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

@ -42,7 +42,6 @@ import it.tref.liferay.portos.bo.NoSuchHistoryWorkflowActionException;
import it.tref.liferay.portos.bo.model.HistoryWorkflowAction;
import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl;
import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl;
import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence;
import java.io.Serializable;

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

@ -48,7 +48,6 @@ import it.tref.liferay.portos.bo.NoSuchIntPraticaException;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence;
import java.io.Serializable;
@ -4398,6 +4397,8 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl<IntPratica>
intPraticaImpl.setTipoPratica(intPratica.getTipoPratica());
intPraticaImpl.setTerritorioId(intPratica.getTerritorioId());
intPraticaImpl.setTipoProcedura(intPratica.getTipoProcedura());
intPraticaImpl.setLatitudine(intPratica.getLatitudine());
intPraticaImpl.setLongitudine(intPratica.getLongitudine());
intPraticaImpl.setDtAnnullamento(intPratica.getDtAnnullamento());
intPraticaImpl.setDocPraticaAnnullamentoId(intPratica.getDocPraticaAnnullamentoId());
intPraticaImpl.setUnitaOperativa(intPratica.getUnitaOperativa());

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

@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchPagamentoException;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.model.impl.PagamentoImpl;
import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchParereGeologoException;
import it.tref.liferay.portos.bo.model.ParereGeologo;
import it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl;
import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence;
import java.io.Serializable;

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

@ -43,7 +43,6 @@ import it.tref.liferay.portos.bo.NoSuchProvinciaException;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.impl.ProvinciaImpl;
import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchSoggettoException;
import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.impl.SoggettoImpl;
import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence;
import java.io.Serializable;

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

@ -42,7 +42,6 @@ import it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException;
import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica;
import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence;
import java.io.Serializable;

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

@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchTempisticaException;
import it.tref.liferay.portos.bo.model.Tempistica;
import it.tref.liferay.portos.bo.model.impl.TempisticaImpl;
import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence;
import java.io.Serializable;

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

@ -44,7 +44,6 @@ import it.tref.liferay.portos.bo.NoSuchTerritorioException;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.model.impl.TerritorioImpl;
import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl;
import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence;
import java.io.Serializable;

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

@ -13,8 +13,8 @@
##
build.namespace=portos_bo
build.number=3217
build.date=1624968076399
build.number=3159
build.date=1625231374376
build.auto.upgrade=true
##

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

@ -1,2 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"/>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
</web-app>

258
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp

@ -1,37 +1,37 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="it.mwg.sismica.bo.util.MappeUtil"%>
<%@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.util.AzioniPraticheUtil"%>
<%@page import="java.util.regex.Pattern"%>
<%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@ include file="/html/fascicolo/init.jsp" %>
<%@page import="java.util.regex.Pattern"%>
<%@include file="/html/fascicolo/init.jsp"%>
<%
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l);
DettPratica dettPratica;
if(Validator.isNotNull(dettPraticaId)) {
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0L);
DettPratica dettPratica;
if (Validator.isNotNull(dettPraticaId)) {
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
} else {
dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData");
}
IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica");
if(intPratica == null){
} else {
dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData");
}
IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica");
if (Validator.isNull(intPratica)) {
intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
boolean isDisabledMap = ParamUtil.getBoolean(request, "isDisabledMap", false);
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
boolean isDisabledMap = ParamUtil.getBoolean(request, "isDisabledMap", false);
String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune, true);
%>
<c:if test="<%= Validator.isNull(dettPraticaId) %>">
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%=application %>"/>
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>"/>
</c:if>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<c:if test="<%= AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId()) && TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) %>">
<div class="module-group">
@ -67,21 +67,20 @@
<%= LanguageUtil.get(pageContext, "sanatoria-edilizia-326") %>
</div>
</div>
</c:if>
<c:if test="<%= intPratica.getTipoRichiesta() == Constants.LIEVE_ENTITA %>">
<div class="row">
<div class="col-sm-12">
<%= LanguageUtil.get(pageContext, "intervento-voce-p7") %> <span class=""><%=dettPratica.getInterventoVoceP7()%></span>
<div class="fascicolo_header_row"></div>
</div>
</div>
</c:if>
<c:if test="<%= intPratica.getTipoRichiesta() == Constants.LIEVE_ENTITA %>">
<div class="row">
<div class="col-sm-12">
<div class="fascicolo_header_row"></div>
<%= LanguageUtil.get(pageContext, "intervento-voce-p7") %> <span class=""><%=dettPratica.getInterventoVoceP7()%></span>
</div>
</div>
</c:if>
<div class="row">
<div class="col-sm-12 col-md-12">
@ -94,6 +93,37 @@
<br />
<%=BeanPropertiesUtil.getString(dettPratica, "intervFinPubDesc") %>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"></div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<strong><%= LanguageUtil.get(pageContext, "interv-no-viarch") %></strong>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<strong><span class='<%=dettPratica.getIntervInAreaDiInteresse() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "interv-in-area-di-interesse") %>
</div>
<div class="col-sm-12">
<strong><span class='<%=dettPratica.getIntervNonModificante() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "interv-non-modificante") %>
</div>
<div class="col-sm-12">
<strong><span class='<%=dettPratica.getIntervNonAssoggettabile() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "interv-non-assoggettabile") %>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"></div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "normEsenteBollo") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "norm-esente-bollo") %>
@ -136,18 +166,14 @@
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "nominaCollaudatore") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "nomina-collaudatore") %>
</div>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_descrizione" >
<div class="prog-description">
@ -157,11 +183,9 @@
</div>
</div>
</div>
<c:if test="<%= !isDisabledMap %>">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_ubicazione" >
<div class="container-fluid">
@ -211,46 +235,51 @@
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dc-particelle") %>
</div>
<%
String[] particelle= dettPratica.getDcParticelle().split(Pattern.quote("|"));
%>
<% String[] particelle= dettPratica.getDcParticelle().split(Pattern.quote("|")); %>
<div class="col-sm-6 col-md-3">
<div class="col-md-3 col-sm-3 col-xs-6 no-padding-left">
<div class="col-sm-3 col-xs-6 no-padding-left">
<span><strong><%= particelle.length > 0 ? particelle[0] : StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col-xs-6">
<div class="col-sm-3 col-xs-6">
<span><strong><%= particelle.length > 1 ? particelle[1] : StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col-xs-6">
<div class="col-sm-3 col-xs-6">
<span><strong><%= particelle.length > 2 ? particelle[2] : StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col-xs-6 no-padding-right">
<div class="col-sm-3 col-xs-6 no-padding-right">
<span><strong><%= particelle.length > 3 ? particelle[3] : StringPool.BLANK %></strong></span>
</div>
</div>
</div>
<c:if test='<%= Validator.isNotNull(dettPratica.getEstremiCatastali()) %>'>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "estremi-catastali") %>
<div class="col-xs-12 cont_maps">
<% String[] geolocalization = dettPratica.getLocalizzazioneGeografica().split(Pattern.quote("|")); %>
<aui:input name="lat" label="" type="hidden"
value='<%= geolocalization.length > 0 ? geolocalization[0] : StringPool.BLANK %>' />
<aui:input name="long" label="" type="hidden"
value='<%= geolocalization.length > 1 ? geolocalization[1] : StringPool.BLANK %>'/>
<aui:input name="zoom" label="" type="hidden" value="16" />
<aui:input type="hidden" name="geoIsEditable" value="false" label=""/>
<liferay-ui:tabs names="mappe-bbcc,mappe-openstreetmap" refresh="false">
<liferay-ui:section>
<div class="col-xs-12">
<!-- Integrazione geoportal -->
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<div style="border:none;width:100%;height:700px">
<iframe src="<%= urlIframeMappe %>" style="border:none;width:100%;height:700px"></iframe>
</div>
</div>
<div class="col-sm-6 col-md-3">
<strong><%= dettPratica.getEstremiCatastali() %></strong>
</div>
</div>
</c:if>
<div class="row">
<div class="col-md-12">
<%
String[] geolocalization = dettPratica.getLocalizzazioneGeografica().split(Pattern.quote("|"));
%>
<aui:input name="lat" label="" type="hidden"
value='<%=geolocalization.length > 0 ? geolocalization[0] : StringPool.BLANK %>' />
<aui:input name="long" label="" type="hidden"
value='<%=geolocalization.length > 1 ? geolocalization[1] : StringPool.BLANK %>'/>
<aui:input type="hidden" name="geoIsEditable" value='<%= false %>' label=""/>
<liferay-portlet:runtime portletName="5_WAR_trefmapitmapportlet" queryString='<%="mapitNamespace="+renderResponse.getNamespace()%>' />
</div>
</liferay-ui:section>
<liferay-ui:section>
<liferay-portlet:runtime portletName="<%= PortletKeys.MAPIT %>" queryString='<%= "mapitNamespace=" + renderResponse.getNamespace() %>' />
</liferay-ui:section>
</liferay-ui:tabs>
</div>
</div>
</div>
@ -260,21 +289,21 @@
</div>
</c:if>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp" >
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-3">
<div class="col-sm-6 col-md-6">
<%= LanguageUtil.get(pageContext, "livello-di-tutela") %>
</div>
<div class="col-sm-6 col-md-3">
<div class="col-sm-6 col-md-6">
<%= dettPratica.getLivelloDiTutela() %>
</div>
<div class="col-sm-6 col-md-3">
<div class="col-sm-6 col-md-6">
<%= LanguageUtil.get(pageContext, "paesaggio-locale") %>
</div>
<div class="col-sm-6 col-md-3">
<div class="col-sm-6 col-md-6">
<%= dettPratica.getPaesaggioLocale() %>
</div>
</div>
@ -290,24 +319,23 @@
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="destinazione" >
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<%
String label = dettPratica.getDestinazione();
String uso = "";
String title = "";
if (!label.equals("")) {
String uso = StringPool.BLANK;
String title = StringPool.BLANK;
if (!label.equals(StringPool.BLANK)) {
String pref = label.substring(0, 1);
if (label.length() > 1) {
title = label.substring(0, label.length()-1);
uso = title.substring(title.length()-1);
out.print(LanguageUtil.get(pageContext, "destinazione-uso-"+uso)+":");
title = label.substring(0, label.length() - 1);
uso = title.substring(title.length() - 1);
out.print(LanguageUtil.get(pageContext, "destinazione-uso-" + uso) + StringPool.COLON);
out.newLine();
out.print(LanguageUtil.get(pageContext, "destinazione-"+title)+":");
out.print(LanguageUtil.get(pageContext, "destinazione-" + title) + StringPool.COLON);
}
}
%>
<strong><%=LanguageUtil.get(pageContext, "destinazione-"+ label)%></strong>
<strong><%= LanguageUtil.get(pageContext, "destinazione-" + label) %></strong>
</div>
</div>
</div>
@ -316,22 +344,22 @@
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_intervento" >
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<strong><span class='<%=dettPratica.getTcNuovaCostruzione() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-nuova-costruzione") %>
<strong><span class='<%= dettPratica.getTcNuovaCostruzione() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-nuova-costruzione") %>
</div>
<div class="col-xs-12">
<strong><span class='<%=dettPratica.getTcNuovaCostruzionePertinenza() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-nuova-costruzione-pertinenza") %>
<strong><span class='<%= dettPratica.getTcNuovaCostruzionePertinenza() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-nuova-costruzione-pertinenza") %>
</div>
<div class="col-xs-12">
<strong><span class='<%=dettPratica.getTcCostruzioniEsistenti() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-costruzioni-esistenti") %>
<strong><span class='<%= dettPratica.getTcCostruzioniEsistenti() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-costruzioni-esistenti") %>
</div>
<div class="col-xs-12">
<strong><span class='<%=dettPratica.getTcManutOrdStraord() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
@ -355,7 +383,7 @@
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_tipologia_costruttiva" >
<div class="container-fluid">
@ -364,56 +392,56 @@
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcInCA") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-in-c-a") %>
</div>
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcInOpera") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-in-opera") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcInOpera") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-in-opera") %>
</div>
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcPrefabbricato") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-prefabbricato") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcPrefabbricato") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-prefabbricato") %>
</div>
</div>
<div class="row">
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcInAcciaio") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-in-acciaio") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcInAcciaio") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-in-acciaio") %>
</div>
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcMista") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-mista") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcMista") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-mista") %>
</div>
</div>
<div class="row">
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcInMuratura") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-in-muratura") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcInMuratura") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-in-muratura") %>
</div>
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcInMuraturaOrdinaria") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-in-muratura-ordinaria") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcInMuraturaOrdinaria") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-in-muratura-ordinaria") %>
</div>
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcInMuraturaArmata") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-in-muratura-armata") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcInMuraturaArmata") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-in-muratura-armata") %>
</div>
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcInMuraturaMista") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-in-muratura-mista") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcInMuraturaMista") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-in-muratura-mista") %>
</div>
</div>
<div class="row">
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcInLegno") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-in-legno") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcInLegno") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-in-legno") %>
</div>
</div>
<div class="row">
<div class="col-sm-3 col-md-3">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcAltro") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-altro") %>
<div class="col-sm-3">
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcAltro") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-altro") %>
</div>
<div class="col-sm-9 col-md-9">
<span><strong><%=BeanPropertiesUtil.getString(dettPratica, "tcAltroDescrizione") %></strong></span>
<div class="col-sm-9">
<span><strong><%= BeanPropertiesUtil.getString(dettPratica, "tcAltroDescrizione") %></strong></span>
</div>
</div>
</div>

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_riepilogo.jsp

@ -155,6 +155,17 @@ List<HistoryWorkflowAction> historyWorkflowActions = HistoryWorkflowActionLocalS
<%= dettPratica.getVincoli() %>
</div>
</div>
<c:if test='<%= Validator.isNotNull(dettPratica.getEstremiCatastali()) %>'>
<div class="row">
<div class="col-sm-6">
<%= LanguageUtil.get(pageContext, "estremi-catastali") %>
</div>
<div class="col-sm-6">
<strong><%= dettPratica.getEstremiCatastali() %></strong>
</div>
</div>
</c:if>
<c:if test="<%= intPratica.getTipoRichiesta() == Constants.SANATORIE %>">
<div class="row">
<div class="col-sm-6">

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp

@ -196,7 +196,7 @@ String keywords = StringPool.BLANK;
<%
long intPraticaId = intPratica.getIntPraticaId();
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
Log _log = LogFactoryUtil.getLog("fascicolo/view.jsp");
Log _log = LogFactoryUtil.getLog("fascicolo_view_jsp");
if (lastDettPratica == null) {
_log.info("intPraticaId=" + intPraticaId + ", lastDettPratica null");
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp

@ -2,6 +2,7 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@ include file="/html/fascicolo/init.jsp" %>
<%
String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali", "page_desc_edificio", "page_sez_geologica",
"page_soggetti", "page_allegati", "page_asseverazioni", "page_pagamenti", "page_andamento", "page_avvisi",
"page_storico_titolari", "page_versioning" };
@ -25,6 +26,7 @@ DettPratica dettPraticaLastData = dettPraticaLast;
request.setAttribute("bean.intPratica", intPratica);
request.setAttribute("bean.dettPratica.last", dettPraticaLast);
request.setAttribute("bean.dettPratica.lastData", dettPraticaLastData);
%>
<liferay-util:buffer var="htmlBottom">
<%@ include file="/html/fascicolo/html_bottom.jspf" %>

37
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/paesaggistica_administration/view.jsp

@ -1,13 +1,46 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/paesaggistica_administration/init.jsp"%>
<%@page import="org.apache.commons.lang.time.DateUtils"%>
<%@page import="java.util.Calendar"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.Map"%>
<%@ include file="/html/paesaggistica_administration/init.jsp"%>
<%
SimpleDateFormat simpleDateTimeFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
long companyId = company.getCompanyId();
String urlIframeFE = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.MAPPE_URL_IFRAME_FE);
String urlIframeBO = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.MAPPE_URL_IFRAME_BO);
String sharedSecret = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.MAPPE_SHARED_SECRET);
%>
<hr style="margin: 0" />
<liferay-portlet:actionURL name="impostazioniMappe" var="impostazioniMappeURL" />
<liferay-portlet:actionURL name="reIndexFasciolo" var="reIndexFascicoloURL" />
<liferay-portlet:actionURL name="reIndexFascicoli" var="reIndexFascicoliURL" />
<liferay-portlet:actionURL name="mostraConfigurazione" var="mostraConfigurazioneURL" />
<liferay-portlet:actionURL name="manutenzioneDatabase" var="manutenzioneDatabaseURL" />
<div class="row-fluid" style="margin-top: 10px">
<div class="span6">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 10px">Form per reindicizzare un fascicolo</div>
<div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">Impostazioni sistema mappe<br>
Valore di test: https://test2.mwg.it/geoportal.php</div>
<aui:form action="<%=impostazioniMappeURL%>" method="post" name="fmImpostazioniMappe">
<div>
<aui:input type="text" cssClass="span12" name="sharedSecret" label="Segreto condiviso" value="<%= sharedSecret %>"/>
<aui:input type="text" cssClass="span12" name="urlIframeFE" label="Url iframe Front End" value="<%= urlIframeFE %>"/>
<aui:input type="text" cssClass="span12" name="urlIframeBO" label="Url iframe Back Office" value="<%= urlIframeBO %>"/>
<aui:button type="submit" value="Salva" />
</div>
</aui:form>
</div>
</div>
<div class="row-fluid" style="margin-top: 10px">
<div class="span6">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">Form per reindicizzare un
fascicolo</div>
<aui:form action="<%= reIndexFascicoloURL %>" method="post" name="fmReIndexFasciolo">
<div>
<aui:input name="intPraticaId" label="IntPraticaId">

551
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/ricerca-posizione/view.jsp

@ -0,0 +1,551 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/init.jsp" %>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@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.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="java.text.DecimalFormat"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Locale"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="it.mwg.sismica.bo.util.MappeUtil"%>
<%
String numeroProgetto = ParamUtil.getString(request, "numeroProgetto", StringPool.BLANK);
String codiceProvincia = ParamUtil.getString(request, "provincia", StringPool.BLANK);
String idComune = ParamUtil.getString(request, "comune", StringPool.BLANK);
String via = ParamUtil.getString(request, "via", StringPool.BLANK);
String lat = ParamUtil.getString(request, "lat", StringPool.BLANK);
String lng = ParamUtil.getString(request, "long", StringPool.BLANK);
String raggio = ParamUtil.getString(request, "raggio", StringPool.BLANK);
boolean targetBlank = ParamUtil.getBoolean(request, "blank", true);
String target = (targetBlank ? "_blank" : StringPool.BLANK);
PortletURL iteratorURL = liferayPortletResponse.createRenderURL();
if (Validator.isNotNull(numeroProgetto)) {
iteratorURL.setParameter("numeroProgetto", numeroProgetto);
}
if (Validator.isNotNull(codiceProvincia)) {
iteratorURL.setParameter("provincia", codiceProvincia);
}
if (Validator.isNotNull(idComune)) {
iteratorURL.setParameter("comune", idComune);
}
if (Validator.isNotNull(via)) {
iteratorURL.setParameter("via", via);
}
if (Validator.isNotNull(lat)) {
iteratorURL.setParameter("lat", lat);
}
if (Validator.isNotNull(lng)) {
iteratorURL.setParameter("long", lng);
}
if (Validator.isNotNull(raggio)) {
iteratorURL.setParameter("raggio", raggio);
}
iteratorURL.setParameter("blank", String.valueOf(targetBlank));
DecimalFormat fmt = (DecimalFormat) NumberFormat.getInstance(Locale.ITALY);
boolean showNotes = false;
int[] raggi = { 500, 1000, 2000, 3000, 5000, 10000 };
String urlIframeMappe = MappeUtil.getUrlBo(request, null, null, false);
%>
<liferay-portlet:actionURL name="ricerca" var="ricercaURL" />
<liferay-portlet:actionURL name="localizzaProgetto" var="localizzaProgettoURL" />
<div class="container-fluid">
<div class="row">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="ricerca-posizione">
<div class="container-fluid">
<div class="row">
<div class="col-xs-6">
<aui:form method="POST" name="ricerca" action="<%= ricercaURL %>">
<liferay-ui:tabs names="ricerca-indirizzo,ricerca-progetto" refresh="false">
<liferay-ui:section>
<br/>
<div class="row">
<div class="col-xs-12 col-md-6">
<aui:select name="provincia" label="dp-dc-prov" showEmptyOption="true">
</aui:select>
</div>
<div class="col-xs-12 col-md-6">
<aui:select name="comune" label="dp-dc-comune" showEmptyOption="true">
</aui:select>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<aui:input name="via" label="dp-dc-via" />
</div>
</div>
<div class="row">
<div class="col-xs-12">
<aui:button name="localizzaBtn" cssClass="btn btn-primary pull-right" onClick="localize(true)" value="Localizza"/>
</div>
</div>
</liferay-ui:section>
<liferay-ui:section>
<br/>
<div class="row">
<div class="col-xs-12">
<aui:input name="numeroProgetto" label="n-progetto" />
</div>
</div>
<div class="row">
<div class="col-xs-12">
<aui:button name="localizzaProgettoBtn" cssClass="btn btn-primary pull-right" onClick="localizzaProgetto()" value="Localizza"/>
</div>
</div>
</liferay-ui:section>
</liferay-ui:tabs>
<div class="row">
<div class="col-xs-12 col-md-6">
<aui:input name="lat" label="dp-lat" required="true" />
</div>
<div class="col-xs-12 col-md-6">
<aui:input name="long" label="dp-long" required="true" />
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<aui:select name="raggio" label="dp-raggio">
<% for (int i = 0; i < raggi.length; i++) { %>
<aui:option value="<%= raggi[i] %>"><%= fmt.format(raggi[i] / 1000.0) %> Km</aui:option>
<% } %>
</aui:select>
</div>
</div>
<aui:button type="submit" value="search" />
</aui:form>
</div>
<div class="col-xs-6 cont_maps">
<liferay-ui:tabs names="mappe-bbcc,mappe-openstreetmap" refresh="false">
<liferay-ui:section>
<div class="col-xs-12">
<!-- Integrazione geoportal -->
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<div style="border:none;width:100%;height:700px">
<iframe src="<%= urlIframeMappe %>" style="border:none;width:100%;height:700px"></iframe>
</div>
<script>
document.addEventListener('DOMContentLoaded', function(event) {
window.addEventListener('message', messageListener, false);
});
function messageListener(event) {
try {
var data = JSON.parse(event.data);
} catch (e) {
return;
}
var trasferiti = [];
for (key in data) {
switch (key) {
case 'latitudine':
var name = 'lat';
break;
case 'longitudine':
var name = 'long';
break;
default:
var name = 'input_' + key;
}
var el = document.getElementById('<portlet:namespace/>' + name);
if (null !== el) {
el.value = data[key];
trasferiti.push(key);
}
}
if (trasferiti.length > 0) {
//console.log('Trasferiti correttamente: ' + trasferiti.join(', '));
}
}
</script>
</div>
</div>
</div>
</div>
</liferay-ui:section>
<liferay-ui:section>
<c:set var="mapitNamespace" scope="request" value="<%= renderResponse.getNamespace() %>" />
<liferay-portlet:runtime portletName="<%= PortletKeys.MAPIT %>"
queryString="&mapitNamespace=${mapitNamespace}&verifyComune=false" />
</liferay-ui:section>
<aui:input type="hidden" name="geoIsEditable" value="true" />
<aui:input type="hidden" name="lat_hidden" value="" />
<aui:input type="hidden" name="long_hidden" value="" />
<aui:input type="hidden" name="zoom" value="12" />
</liferay-ui:tabs>
</div>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
<div class="row">
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" iteratorURL="<%= iteratorURL %>" >
<%
int indice = searchContainer.getStart();
double dlat = 0;
double dlng = 0;
List<IntPratica> pratiche;
try {
dlat = Double.valueOf(lat);
dlng = Double.valueOf(lng);
int iraggio = Integer.valueOf(raggio);
pratiche = IntPraticaLocalServiceUtil.findByPosizione(dlat, dlng, iraggio, indice,
searchContainer.getEnd());
searchContainer.setTotal(IntPraticaLocalServiceUtil.countByPosizione(dlat, dlng, iraggio));
showNotes = pratiche.size() > 0;
} catch (Exception e) {
pratiche = new ArrayList<IntPratica>();
searchContainer.setTotal(0);
}
%>
<liferay-ui:search-container-results results="<%= pratiche %>" />
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.IntPratica" modelVar="pratica">
<%
long intPraticaId = pratica.getIntPraticaId();
DettPratica dettaglio = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(
intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(),
comune.getCodiceProvincia());
Soggetto titolare = null;
String committenti = StringPool.BLANK;
String esito = StringPool.BLANK;
if (Validator.isNotNull(dettaglio)) {
List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(
intPraticaId, dettaglio.getCodiceFiscaleDelegatoCommittente());
if (!titolari.isEmpty()) {
titolare = titolari.get(0);
}
StringBuilder builder = new StringBuilder();
List<Soggetto> soggetti = SoggettoLocalServiceUtil
.findByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE);
for (Soggetto soggetto : soggetti) {
if (builder.length() > 0) {
builder.append("<hr/>");
}
builder.append(soggetto.getTitle())
.append("<br/>")
.append(soggetto.getCodiceFiscale());
}
committenti = builder.toString();
esito = LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(
pratica.getStatoPratica(), intPraticaId));
}
List<Avviso> avvisi = AvvisoLocalServiceUtil.findByIntPratica(intPraticaId,
QueryUtil.ALL_POS,
QueryUtil.ALL_POS,
OrderByComparatorFactoryUtil.create("portos_bo_Avviso", "createDate", false));
int variantiCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(
intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE));
int integrazioniCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(
intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
%>
<liferay-portlet:renderURL var="viewURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= iteratorURL.toString() %>" />
</liferay-portlet:renderURL>
<liferay-ui:search-container-column-text name="#" cssClass="text-center">
<%= ++indice %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="distanza" title="distanza-tooltip" cssClass="text-center">
<%= numeroProgetto.equals(pratica.getNumeroProgetto()) ? "Riferimento<br/>ricerca" : fmt.format(pratica.getDistanzaOrtodromica()) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="n-progetto" href="<%= viewURL %>" target="<%= target %>" cssClass="text-nowrap">
<%= pratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="titolare-digitale" href="<%= viewURL %>" target="<%= target %>" cssClass="text-nowrap">
<c:if test="<%= Validator.isNotNull(titolare) %>">
<%= titolare.getTitle() %><br/><%= titolare.getCodiceFiscale() %>
</c:if>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="committenti" href="<%= viewURL %>" target="<%= target %>">
<%= committenti %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="esito" href="<%= viewURL %>" target="<%= target %>" cssClass="text-nowrap text-center middle-aligned">
<strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(pratica.getStatoPratica(), intPraticaId)) %></strong>
<span class="text-center display-block" style="margin-top:5px">
<%
if (!avvisi.isEmpty()) {
StringBuilder sb = new StringBuilder();
sb.append("<ul class='avvisi-tooltip'>");
for (Avviso avviso : avvisi) {
sb.append("<li class='avviso-tooltip'>");
sb.append(LanguageUtil.get(pageContext, avviso.translateTipoDocumento()));
sb.append("</li>");
}
sb.append("</ul>");
%>
<liferay-portlet:renderURL var="fascicoloAvvisiURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-portlet:renderURL>
<a class="btn status-icon tooltip-info btn-action"
title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>"
href="<%= fascicoloAvvisiURL.toString() + "#_" + PortletKeys.FASCICOLO
+ "_tab=_" + PortletKeys.FASCICOLO + "_page_avvisi" %>" target="<%= target %>">
<i class="fa fa-envelope relative">
<span class="fa-hover fa-top-right txt-bold"><%= avvisi.size() %></span>
</i>
</a>
<%
}
%>
<c:if test="<%= variantiCount > 0 %>">
<span class="btn status-icon tooltip-info btn-action" title="Varianti Presentate">
<span class="relative txt-bold status-icon-text">
V
<span class="sup top-right txt-bold"><%= variantiCount %></span>
</span>
</span>
</c:if>
<c:if test="<%= integrazioniCount > 0 %>">
<span class="btn status-icon tooltip-info btn-action txt-bold" title="Integrazioni Presentate">
<span class="relative txt-bold status-icon-text">
I
<span class="sup top-right txt-bold"><%= integrazioniCount %></span>
</span>
</span>
</c:if>
<c:if test="<%= pratica.isFineLavoriParziale() || pratica.isFineLavoriTotale() %>">
<c:if test="<%= !pratica.isFineLavoriTotale()%>">
<span class="btn status-icon tooltip-info btn-action" title="Fine Lavori Parziale presente">
<i class="fa fa-gavel relative">
<span class="fa-hover fa-top-right txt-orange txt-bold">P</span>
</i>
</span>
</c:if>
<c:if test="<%= pratica.isFineLavoriTotale()%>">
<span class="btn status-icon tooltip-info btn-action" title="Fine Lavori Totale presente">
<i class="fa fa-gavel relative">
<span class="fa-hover fa-top-right txt-green txt-bold">T</span>
</i>
</span>
</c:if>
</c:if>
<c:if test="<%= pratica.isCollaudoParziale() || pratica.isCollaudoTotale() %>">
<c:if test="<%= !pratica.isCollaudoTotale() %>">
<span class="btn status-icon tooltip-info btn-action" title="Collaudo Parziale presente">
<i class="fa fa-briefcase relative">
<span class="fa-hover fa-top-right txt-orange txt-bold">P</span>
</i>
</span>
</c:if>
<c:if test="<%= pratica.isCollaudoTotale() %>">
<span class="btn status-icon tooltip-info btn-action" title="Collaudo Totale presente">
<i class="fa fa-briefcase relative">
<span class="fa-hover fa-top-right txt-green txt-bold">T</span>
</i>
</span>
</c:if>
</c:if>
</span>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="col-desc-interv" href="<%= viewURL %>" target="<%= target %>">
Territorio: <strong><%= comune.getDenominazione() %>
<%= (dettaglio == null || dettaglio.getLocalita().isEmpty()) ?
"" :
"(Loc. " + dettaglio.getLocalita() + ")"
%> - <%= provincia.getProvincia() %></strong><br/>
Localizzazione: <strong><%= dettaglio == null ? "" : dettaglio.getVia() %></strong><br/>
<strong><%= LanguageUtil.get(pageContext, "tipo_procedura_" + pratica.getTipoProcedura()) %></strong><br/><br/>
<%= dettaglio == null ? "" : dettaglio.getDescLongIntervento() %>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="true" />
</liferay-ui:search-container>
<c:if test="<%= showNotes %>">
<div class="col-xs-12">
<br/>
<small>
Note:<br/>
<%= LanguageUtil.get(pageContext, "distanza-tooltip") %>
</small>
</div>
</c:if>
</div>
</div>
<script>
var <portlet:namespace/>comuneSelezionato = '';
Liferay.on('mapIt-ready',function(event) {
AUI().one('#_<%= PortletKeys.MAPIT %>_container_btn .bloccamap').set('disabled', false).removeClass('disabled');
});
function localize(showAlert) {
AUI().use('aui-io-request', function(A) {
var indirizzo = AUI().one('#<portlet:namespace/>via').val().trim()
var comune = AUI().one('#<portlet:namespace/>comune option:selected');
if (undefined == comune) {
comune = '';
} else {
comune = comune.text().trim();
}
var provincia = AUI().one('#<portlet:namespace/>provincia option:selected');
if (undefined == provincia) {
provincia = '';
} else {
provincia = provincia.text().trim();
}
var localization = [indirizzo, comune, provincia];
var url = 'https://nominatim.openstreetmap.org/search?format=json&addressdetails=0&q='
+ encodeURIComponent(localization.join(' '));
A.io.request(url, {
dataType: 'json',
on: {
success: function() {
var response = this.get('responseData');
if (response.length == 0) {
if (showAlert) {
alert('Nessun risultato per i dati immessi');
}
} else if (response && response[0]) {
Liferay.fire(
'geolocation-ready',
{
latitude: response[0].lat,
longitude : response[0].lon,
fullAddress : indirizzo !== ''
}
);
}
},
}
});
});
}
function localizzaProgetto() {
AUI().use('aui-io-request', function(A) {
var numeroProgetto = AUI().one('#<portlet:namespace/>numeroProgetto').val().trim();
A.io.request('<%= localizzaProgettoURL %>', {
dataType: 'json',
data: {
<portlet:namespace/>numeroProgetto: numeroProgetto,
},
on: {
success: function() {
var data = this.get('responseData');
console.log(data);
if ((undefined == data.lat) || (undefined == data.lng)) {
alert('Nessun risultato per i dati immessi');
} else {
AUI().one('#<portlet:namespace/>lat').val(data.lat);
AUI().one('#<portlet:namespace/>long').val(data.lng);
}
},
}
});
});
}
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1,
});
}
);
</script>
<liferay-portlet:resourceURL id="province" var="getProvinceURL" />
<liferay-portlet:resourceURL id="comuni" var="getComuniURL" />
<aui:script use="aui-io-request,liferay-dynamic-select">
var getProvince = function(callback) {
A.io.request(
'<%= getProvinceURL %>',
{
dataType: 'json',
on: {
success: function() {
var data = this.get('responseData');
<portlet:namespace/>province = {};
for (var i = 0; i < data.length; i++) {
<portlet:namespace/>province[data[i].nome.replaceAll(' ', '-').toLowerCase()] = data[i].id;
}
callback(data);
}
}
}
);
};
var getComuni = function(callback, provinciaId) {
A.io.request(
'<%= getComuniURL %>',
{
dataType: 'json',
data: {
<portlet:namespace />provinciaId: provinciaId
},
on: {
success: function() {
var data = this.get('responseData');
callback(data);
if ('' !== <portlet:namespace/>comuneSelezionato) {
for (var i = 0; i < data.length; i++) {
if (data[i].nome.replaceAll(' ', '-').toLowerCase() === <portlet:namespace/>comuneSelezionato) {
A.one('#<portlet:namespace/>comune').set('value', data[i].id);
}
}
<portlet:namespace/>comuneSelezionato = '';
}
}
}
}
);
};
new Liferay.DynamicSelect([
{
select: '<portlet:namespace />provincia',
selectData: getProvince,
selectDesc: 'nome',
selectId: 'id',
selectSort: true,
selectVal: '<%= codiceProvincia %>',
},
{
select: '<portlet:namespace />comune',
selectData: getComuni,
selectDesc: 'nome',
selectId: 'id',
selectSort: true,
selectDisableOnEmpty: true,
selectVal: '<%= idComune %>',
},
]);
</aui:script>

110
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/js/main.js

@ -1,103 +1,13 @@
/*
var versionamento = {
changes : [],
init : function(idPratica, lastVersion, currentVersion) {
var scope = this;
this.loadJsonVersion(idPratica, lastVersion, true);
if (currentVersion > 0) {
this.loadJsonVersion(idPratica, currentVersion, false);
setTimeout(function() {
scope.getChanges(idPratica, currentVersion);
}, 300)
} else {
$('#_1_WAR_portosboportlet_version_number .version_body').html(
"<p class=\"text-center version_item\">Nessuna Versione precedente all'attuale</p>")
}
},
sliderChange : function(idPratica, currentVersion) {
var scope = this;
this.loadJsonVersion(idPratica, currentVersion, false);
setTimeout(function() {
scope.getChanges(idPratica, currentVersion);
}, 300)
},
loadJsonVersion : function(idPratica, versionNumber, last) {
var scope = this;
Liferay.Service('/portos-bo-portlet.dettpratica/get-json-version', {
intPraticaId : idPratica,
version : versionNumber
}, function(obj) {
var item = last ? "_1_WAR_portosboportlet_version_last" : "_1_WAR_portosboportlet_version_number";
scope.updateHTML(JSON.parse(obj), item, last ? false : versionNumber);
if ($('.cont_maps').length) {
$('.cont_maps ul li').click(function () {
var map = mapItMap.getInstance();
setTimeout(function () {
map.updateSize();
if (map.layers.length > 0)
map.layers[0].redraw();
}, 100);
});
},
getChanges : function(idPratica, versionNumber) {
var scope = this;
Liferay.Service('/portos-bo-portlet.dettpratica/call-for-changes',
{
intPraticaId : idPratica,
version : versionNumber
},
function(obj) {
var arr = JSON.parse(obj);
$("#_1_WAR_portosboportlet_version_number .version_item").removeClass("background-red")
$("#_1_WAR_portosboportlet_version_last .version_item").removeClass("background-green")
for (index in arr) {
var key = arr[index];
var left = $("#_1_WAR_portosboportlet_version_number .item_" + key), right = $("#_1_WAR_portosboportlet_version_last .item_"
+ key);
left.addClass("background-red")
right.addClass("background-green")
var heights = [ left, right ].map(function(item) {
return $(item).outerHeight();
});
left.css('height', Math.max.apply(null, heights));
right.css('height', Math.max.apply(null, heights));
}
}
);
},
updateHTML : function(obj, containerId, versionNumber) {
var scope = this;
var version_container = $('#' + containerId);
if (versionNumber) {
version_container.find(".number").html(versionNumber);
}
for (item in obj) {
var item_value = obj[item].replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&#034;/g, "\"");
version_container.find('.item_' + item + " .item_value").html("<strong>" + item_value + "</strong>")
}
}
}
var sliderVersion = {
init : function(val, idPratica) {
var initialValue = val;
var min = 1;
var maxValue = (val - 1) > 0 ? val - 1 : 0;
versionamento.init(idPratica, val, maxValue);
$("#label-slider").text(maxValue);
if (maxValue <= 1) {
$("#label-slider").css("margin-left", '0');
}
$(function() {
$("#slider").slider({
value : val,
min : 1,
max : maxValue,
step : 1,
slide : function(event, ui) {
$("#label-slider").text(ui.value);
if (maxValue == 0) {
$("#label-slider").css("margin-left", '0');
} else {
$("#label-slider").css("margin-left", (ui.value - min) / (maxValue - min) * 100 + '%');
}
$("#label-slider").css("left", "-15px");
versionamento.sliderChange(idPratica, ui.value);
}
});
});
},
}
*/

1
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.tern-project

@ -0,0 +1 @@
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}

BIN
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/jstl-api.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/jstl-impl.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/log4j.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-bridges.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-taglib.jar

File binario non mostrato.

8
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -5,15 +5,11 @@
<portlet>
<portlet-name>1</portlet-name>
<icon>/icon.png</icon>
<control-panel-entry-category>
configuration
</control-panel-entry-category>
<control-panel-entry-category>configuration</control-panel-entry-category>
<control-panel-entry-weight>1.5</control-panel-entry-weight>
<control-panel-entry-class>it.tref.liferay.portos.deployalert.control.DeployAlertControl</control-panel-entry-class>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>notificator-portlet</css-class-wrapper>
</portlet>
<role-mapper>

9
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/portlet.xml

@ -1,12 +1,13 @@
<?xml version="1.0"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0">
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
version="2.0">
<portlet>
<portlet-name>1</portlet-name>
<display-name>Deploy Alert</display-name>
<portlet-class>
it.tref.liferay.portos.deployalert.portlet.NotificatorPortlet
</portlet-class>
<portlet-class>it.tref.liferay.portos.deployalert.portlet.NotificatorPortlet</portlet-class>
<init-param>
<name>view-template</name>
<value>/html/notificator/view.jsp</value>

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

@ -13,8 +13,8 @@
##
build.namespace=DA
build.number=9
build.date=1606299034524
build.number=10
build.date=1612446773513
build.auto.upgrade=true
##

572
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/tld/c.tld

@ -1,572 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<description>JSTL 1.2 core library</description>
<display-name>JSTL core</display-name>
<tlib-version>1.2</tlib-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jsp/jstl/core</uri>
<validator>
<description>
Provides core validation features for JSTL tags.
</description>
<validator-class>
org.apache.taglibs.standard.tlv.JstlCoreTLV
</validator-class>
</validator>
<tag>
<description>
Catches any Throwable that occurs in its body and optionally
exposes it.
</description>
<name>catch</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
exception thrown from a nested action. The type of the
scoped variable is the type of the exception thrown.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
&lt;when&gt; and &lt;otherwise&gt;
</description>
<name>choose</name>
<tag-class>com.liferay.taglib.core.ChooseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Simple conditional tag, which evalutes its body if the
supplied condition is true and optionally exposes a Boolean
scripting variable representing the evaluation of this condition
</description>
<name>if</name>
<tag-class>com.liferay.taglib.core.IfTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or
not the body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resulting value of the test condition. The type
of the scoped variable is Boolean.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Retrieves an absolute or relative URL and exposes its contents
to either the page, a String in 'var', or a Reader in 'varReader'.
</description>
<name>import</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to import.
</description>
<name>url</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is Reader.
</description>
<name>varReader</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when accessing a relative
URL resource that belongs to a foreign
context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Character encoding of the content at the input
resource.
</description>
<name>charEncoding</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
The basic iteration tag, accepting many different
collection types and supporting subsetting and other
functionality
</description>
<name>forEach</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
Collection of items to iterate over.
</description>
<name>items</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.Object</type>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
If items specified:
Iteration begins at the item located at the
specified index. First item of the collection has
index 0.
If items not specified:
Iteration begins with index set at the value
specified.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
If items specified:
Iteration ends at the item located at the
specified index (inclusive).
If items not specified:
Iteration ends when index reaches the value
specified.
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step items of
the collection, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility. Its type depends
on the object of the underlying collection.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of type
javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Iterates over tokens, separated by the supplied delimeters
</description>
<name>forTokens</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
String of tokens to iterate over.
</description>
<name>items</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<deferred-value>
<type>java.lang.String</type>
</deferred-value>
</attribute>
<attribute>
<description>
The set of delimiters (the characters that
separate the tokens in the string).
</description>
<name>delims</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
</attribute>
<attribute>
<description>
Iteration begins at the token located at the
specified index. First token has index 0.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration ends at the token located at the
specified index (inclusive).
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step tokens
of the string, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of
type
javax.servlet.jsp.jstl.core.LoopTag
Status. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Like &lt;%= ... &gt;, but for expressions.
</description>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Default value if the resulting value is null.
</description>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Determines whether characters &lt;,&gt;,&amp;,'," in the
resulting string should be converted to their
corresponding character entity codes. Default value is
true.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
and runs only if all of the prior conditions evaluated to
'false'
</description>
<name>otherwise</name>
<tag-class>com.liferay.taglib.core.OtherwiseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Adds a parameter to a containing 'import' tag's URL.
</description>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the query string parameter.
</description>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Value of the parameter.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Redirects to a new URL.
</description>
<name>redirect</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to redirect to.
</description>
<name>url</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when redirecting to a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Removes a scoped variable (from a particular scope, if specified).
</description>
<name>remove</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
<body-content>empty</body-content>
<attribute>
<description>
Name of the scoped variable to be removed.
</description>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Sets the result of an expression evaluation in a 'scope'
</description>
<name>set</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable to hold the value
specified in the action. The type of the scoped variable is
whatever type the value expression evaluates to.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
Target object whose property will be set. Must evaluate to
a JavaBeans object with setter property property, or to a
java.util.Map object.
</description>
<name>target</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the property to be set in the target object.
</description>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Creates a URL with optional query parameters.
</description>
<name>url</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
processed url. The type of the scoped variable is
String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
URL to be processed.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when specifying a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that includes its body if its
condition evalutes to 'true'
</description>
<name>when</name>
<tag-class>com.liferay.taglib.core.WhenTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or not the
body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
</tag>
</taglib>

2
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml.MD5

@ -1 +1 @@
b2c2a2163a9e57f49e684a33bc7d0817
5ae48f34ca95a715172797941f9c2717

20
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -10,18 +10,14 @@
com.liferay.portal.kernel.portlet.DefaultConfigurationAction
</configuration-action-class>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>1-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>2</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>
ricerca-pratiche-portlet
</css-class-wrapper>
@ -31,9 +27,7 @@
<icon>/icon.png</icon>
<render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>
soggetti-pratica-portlet
</css-class-wrapper>
@ -45,9 +39,7 @@
<instanceable>true</instanceable>
<render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>
alegati-pratica-portlet
</css-class-wrapper>
@ -59,9 +51,7 @@
<instanceable>true</instanceable>
<render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
<css-class-wrapper>
parere-geologo-portlet
</css-class-wrapper>

31
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp

@ -94,9 +94,6 @@
<portlet:namespace />comune:{
requiredSelect:'comune'
},
/*<portlet:namespace />territorioId:{
requiredSelect:'zona - fascia'
},*/
<portlet:namespace />tipoProcedura:{
requiredSelect:'procedura'
}
@ -176,15 +173,7 @@
selectId: 'comuneId',
selectSort: true,
selectVal: '0'
}/*,
{
select: '<portlet:namespace />territorioId',
selectData: getZoneFasce,
selectDesc: 'descLong',
selectId: 'territorioId',
selectVal: '0'
}*/
}
]
);
@ -202,13 +191,6 @@
$('.add-new-project__comune select').change(function(){
var val = $(this).val();
/*if (val == 0) {
$('.add-new-project__fascia select').prop('disabled', 'disabled');
$('.add-new-project__procedura input').prop('disabled', 'disabled').prop('checked', false);
$('.add-new-project__procedura div').removeClass('success');
}else if(val !== 0) {
$('.add-new-project__fascia select').prop('disabled', false);
}*/
if (val == 0) {
$('.add-new-project__procedura input').prop('disabled', 'disabled').prop('checked', false);
$('.add-new-project__procedura div').removeClass('success');
@ -216,15 +198,4 @@
$('.add-new-project__procedura input').prop('disabled', false).removeClass('disabled').parent().css('display', 'block');
}
});
/*$('.add-new-project__fascia select').change(function(){
var val = $(this).val();
if (val == 0) {
$('.add-new-project__procedura input').prop('disabled', 'disabled').prop('checked', false);
$('.add-new-project__procedura div').removeClass('success');
}else if(val !== 0) {
$('.add-new-project__procedura input').prop('disabled', false).removeClass('disabled').parent().css('display', 'block');
}
});*/
</aui:script>

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

@ -1,4 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%>
<%@page import="it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
@ -19,10 +21,12 @@
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.mwg.sismica.bo.util.MappeUtil" %>
<%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
@ -38,6 +42,10 @@ boolean isGeoEditable = TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPrati
|| TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione());
boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(), dettPratica.getDettPraticaId())
&& TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione());
boolean isDisabled = disabledInput && !enabledByIntegrazione;
boolean isNewVariante = ParamUtil.getBoolean(request, "isNewVariante");
String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabledInput || isGeoEditable));
%>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">
<liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" />
@ -110,14 +118,12 @@ boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.ge
</div>
</div>
<div class="row row-padding-custom altro_check">
<div class="col-md-12 col-lg-12">
<h4><%= LanguageUtil.get(pageContext, "interv-no-viarch") %></h4>
<div class="col-md-12 col-lg-4">
<aui:input disabled="<%= disabledInput %>" name="intervInAreaDiInteresse" label="interv-in-area-di-interesse"/>
</div>
<div class="col-md-12 col-lg-4">
<div class="col-md-12 col-lg-12" style="margin-left:20px;">
<aui:input disabled="<%= disabledInput %>" name="intervInAreaDiInteresse" label="interv-in-area-di-interesse"/>
<aui:input disabled="<%= disabledInput %>" name="intervNonModificante" label="interv-non-modificante"/>
</div>
<div class="col-md-12 col-lg-4">
<aui:input disabled="<%= disabledInput %>" name="intervNonAssoggettabile" label="interv-non-assoggettabile"/>
</div>
</div>
@ -198,7 +204,7 @@ boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.ge
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1">
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" name="normArt3com3" label="" />
</div>
<div class="col-xs-11 col-sm-11 col-md-11 col-lg-11">
<div class="col-xs-11">
<div class="container-regolamento">
<p style="display: inline;"><%= LanguageUtil.get(pageContext, "norm-art3com3") %>:</p>
<ul style="padding-left:20px; list-style: initial;">
@ -216,14 +222,13 @@ boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.ge
</div>
<div class="col-xs-11">
<div class="container-regolamento">
<p><%=LanguageUtil.get(pageContext, "norm-art3com4") %>:</p>
<p><%= LanguageUtil.get(pageContext, "norm-art3com4") %>:</p>
</div>
</div>
</div>
</div>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
@ -231,6 +236,63 @@ boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.ge
<div class="module-group group_dati_catastali">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-dc">
<div class="dati_catastali">
<div class="col-xs-12 cont_maps">
<liferay-ui:tabs names="mappe-bbcc,mappe-openstreetmap"
refresh="false" value="mappe-bbcc">
<liferay-ui:section>
<div class="col-xs-12">
<!-- Integrazione geoportal -->
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<iframe src="<%= urlIframeMappe %>" style="border:none;width:100%;height:700px"></iframe>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function(event) {
window.addEventListener('message', messageListener, false);
});
function messageListener(event) {
try {
var data = JSON.parse(event.data);
} catch (e) {
return;
}
var trasferiti = [];
for (key in data) {
switch (key) {
case 'latitudine':
var name = 'lat';
break;
case 'longitudine':
var name = 'long';
break;
default:
var name = 'input_' + key;
}
var el = document.getElementById('<portlet:namespace/>' + name);
if (null !== el) {
el.value = data[key];
trasferiti.push(key);
}
}
if (trasferiti.length > 0) {
//console.log('Trasferiti correttamente: ' + trasferiti.join(', '));
}
}
</script>
</div>
<!-- /Integrazione geoportal -->
</liferay-ui:section>
<liferay-ui:section>
<div style="border:none;width:100%;height:700px">
<liferay-portlet:runtime portletName="<%= PortletKeys.MAPIT %>" queryString='<%= "mapitNamespace=" + renderResponse.getNamespace() %>' />
</div>
</liferay-ui:section>
</liferay-ui:tabs>
</div>
<div class="col-xs-12 col-md-12" style="margin-top:40px;"></div>
<aui:row>
<div class="col-xs-12 col-md-6">
<div class="container-fluid">
@ -266,88 +328,58 @@ boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.ge
disabled="<%= true %>" onClick="localize(true)" value="Localizza"/>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<aui:input disabled="<%=disabledInput %>" name="dcFoglio" label="dc-foglio"/>
</div>
<div class="col-xs-6">
<aui:input disabled="<%=disabledInput %>" name="dcAllegato" label="dc-allegato"/>
</div>
</div>
<div class="row">
<%
String[] particelle= BeanParamUtil.getString(dettPratica, request, "dcParticelle","").split(Pattern.quote("|"));
String[] geolocalization = BeanParamUtil.getString(dettPratica, request, "localizzazioneGeografica","").split(Pattern.quote("|"));
%>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<h5><strong><%= LanguageUtil.get(pageContext, "dc-particelle") %></strong></h5>
</div>
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2">
<aui:input disabled="<%=disabledInput %>" type="text" name="particella1" maxLength ="15"
value='<%=particelle.length>0?particelle[0]:StringPool.BLANK %>' label=""/>
</div>
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2">
<aui:input disabled="<%=disabledInput %>" type="text" name="particella2" maxLength ="15"
value='<%=particelle.length>1?particelle[1]:StringPool.BLANK %>' label=""/>
<aui:input name="zoom" label="" type="hidden" value='<%= geolocalization.length>2?geolocalization[2]:"8" %>'/>
<div class="col-xs-12 col-md-6">
<aui:input name="lat_hidden" label="" type="hidden"
value='<%= geolocalization.length > 0 ? geolocalization[0] : StringPool.BLANK %>' />
<aui:input type="text" name="lat"
value='<%= geolocalization.length > 0 ? geolocalization[0] : StringPool.BLANK %>' label="dp-lat"/>
</div>
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2">
<aui:input disabled="<%=disabledInput %>" type="text" name="particella3" maxLength ="15"
value='<%=particelle.length>2?particelle[2]:StringPool.BLANK %>' label=""/>
<div class="col-xs-12 col-md-6">
<aui:input name="long_hidden" label="" type="hidden"
value='<%= geolocalization.length > 1 ? geolocalization[1] : StringPool.BLANK %>'/>
<aui:input type="text" name="long"
value='<%= geolocalization.length > 1 ? geolocalization[1] : StringPool.BLANK %>' label="dp-long"/>
</div>
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2">
<aui:input disabled="<%=disabledInput %>" type="text" name="particella4" maxLength ="15"
value='<%=particelle.length>3?particelle[3]:StringPool.BLANK %>' label=""/>
<aui:input disabled="<%= disabledInput || isGeoEditable %>" type="hidden" name="geoIsEditable"
value='<%= (disabledInput || isGeoEditable) ? false : true %>' label=""/>
</div>
</div>
<!--
<div class="row">
<div class="col-xs-6">
<aui:input type="text" name="progetto_estremi_catastali" label="Subalterno"/>
</div>
<div class="col-xs-6">
<aui:input type="text" name="progetto_estremi_catastali" label="Categoria"/>
<div class="col-xs-12 col-md-6">
<div class="container-fluid">
<div class="row" style="margin-bottom:20px;">
<div class="col-xs-12">
<aui:input disabled="<%= isDisabled %>" type="text" name="estremiCatastali" id="input_estremiCatastali"
label="estremi-catastali"/>
</div>
</div>
-->
<label class="control-label text-uppercase"><%= LanguageUtil.get(pageContext, "dp-ppp") %></label>
<div class="row">
<c:if test='<%= Validator.isNotNull(dettPratica.getEstremiCatastali()) %>'>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<aui:input disabled="<%=disabledInput %>" type="text" name="estremiCatastali"
label="estremi-catastali"/>
<div class="col-xs-12">
<aui:input disabled="<%= isDisabled %>" type="textarea" name="paesaggioLocale" id="input_paesaggioLocale" label="paesaggio-locale" value="" />
</div>
</c:if>
</div>
<div class="row">
<%
String[] geolocalization = BeanParamUtil.getString(dettPratica, request, "localizzazioneGeografica","").split(Pattern.quote("|"));
%>
<aui:input name="zoom" label="" type="hidden"
value='<%=geolocalization.length>2?geolocalization[2]:"8" %>'/>
<div class="col-xs-12 col-md-6">
<aui:input name="lat_hidden" label="" type="hidden"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' />
<aui:input type="text" name="lat"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' label="dp-lat"/>
<aui:input disabled="<%= isDisabled %>" type="textarea" name="livelloDiTutela" id="input_livelloDiTutela" label="livello-di-tutela" value="" />
</div>
<div class="col-xs-12 col-md-6">
<aui:input name="long_hidden" label="" type="hidden"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/>
<aui:input type="text" name="long"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>' label="dp-long"/>
<aui:input disabled="<%= isDisabled %>" type="textarea" id="input_vincoli" name="vincoli" rows="4" cols="250" label="vincoli"></aui:input>
</div>
<aui:input disabled="<%=disabledInput || isGeoEditable %>" type="hidden" name="geoIsEditable"
value='<%= ( disabledInput || isGeoEditable ) ? false : true %>' label=""/>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6">
<liferay-portlet:runtime portletName="<%= PortletKeys.MAPIT %>" />
</div>
</aui:row>
</div>
</liferay-ui:panel>
</div>
</div>
<div class="col-sm-12 col-md-12">
<!--<div class="col-sm-12 col-md-12">
<div class="module-group group_piano_paesaggistico_provinciale">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="piano-paesaggistico">
<div class="row">
@ -371,7 +403,7 @@ boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.ge
</div>
</liferay-ui:panel>
</div>
</div>
</div>-->
<div class="col-sm-12 col-md-12">
<div class="module-group group_dati_catastali">
@ -653,15 +685,19 @@ boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.ge
<script type="text/javascript" >
Liferay.on('mapIt-ready',function(event) {
Liferay.Portal.Tabs.show('<portlet:namespace/>tabs1', ['mappe-bbcc', 'mappe-openstreetmap'], 'mappe-bbcc');
if (('' == $('#<portlet:namespace/>lat').val().trim())
|| ('' == $('#<portlet:namespace/>long').val().trim())) {
localize(false);
var isActivable = <%= !disabledInput && !isGeoEditable %>
if(isActivable){
}
var isActivable = <%= !disabledInput && !isGeoEditable %>;
if (isActivable) {
AUI().one('#<portlet:namespace/>localizzaBtn').set('disabled', false).removeClass('disabled');
AUI().one('#_<%= PortletKeys.MAPIT %>_container_btn .bloccamap').set('disabled', false).removeClass('disabled');
}
});
function localize(showAlert){
function localize(showAlert) {
AUI().use('aui-io-request', function(A) {
var district = AUI().one("#<portlet:namespace/>provincia");
@ -711,14 +747,13 @@ function checkIfDisableSistemiCostruttivi(){
nuovaCostruzione = AUI().one("#<portlet:namespace/>tc-nuova-costruzioneCheckbox");
if(interventoLocale.attr("checked") && !nuovaCostruzione.attr("checked") && !miglioramentoSismico.attr("checked") && !adeguamentoSismico.attr("checked")){
disableInput('#descrizione_componenti_costruttive');
}
else{
} else {
enableInput('#descrizione_componenti_costruttive');
}
}
$('#<portlet:namespace/>long, #<portlet:namespace/>lat').on('change', function(){
if($('#<portlet:namespace/>long').val() != '' && $('#<portlet:namespace/>lat').val() != ''){
$('#<portlet:namespace/>long, #<portlet:namespace/>lat').on('change', function() {
if ($('#<portlet:namespace/>long').val() != '' && $('#<portlet:namespace/>lat').val() != '') {
var latitude = parseFloat($('#<portlet:namespace/>lat').val());
var longitude = parseFloat($('#<portlet:namespace/>long').val());
$('#<portlet:namespace/>lat_hidden').val(latitude);
@ -728,20 +763,21 @@ $('#<portlet:namespace/>long, #<portlet:namespace/>lat').on('change', function()
}
});
$('#sistemi_costruttivi input').on('change', function(){
$('#sistemi_costruttivi input').on('change', function() {
var _this = $(this);
if(_this.attr('id')=='<portlet:namespace/>tcInterventiCheckbox'){
if(!_this.is(":checked"))
if(!_this.is(":checked")){
$('.costruzioni_esistenti ul input[type="checkbox"]').prop("checked", false).attr("disabled", true);
else
} else {
$('.costruzioni_esistenti ul input[type="checkbox"]').attr("disabled", false).removeClass("disabled");
}
}
//ADT BUG FE ID = 23
if($('#<portlet:namespace/>tc-nuova-costruzioneCheckbox').prop('checked')||
$('#<portlet:namespace/>tcAdeguamentoSismicoCheckbox').prop('checked')||
$('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox').prop('checked')){
$('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).attr("disabled", true);
} else if($('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').prop('checked')){
} else if ($('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').prop('checked')) {
$('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).removeAttr('disabled');
}
//checkIfDisableSistemiCostruttivi();
@ -761,96 +797,19 @@ function checkIfDisableInfrastrutture(){
}
}
$('#destinazioneinazione input[type="radio"]').on('click', function(){
$('#destinazioneinazione input[type="radio"]').on('click', function() {
checkIfDisableInfrastrutture();
var el = $(this);
setTimeout(function(){
if(el.val() == "3" && el.is(':checked'))
setTimeout(function() {
if (el.val() == "3" && el.is(':checked'))
$('input[name="<portlet:namespace/>destinazioneAltroIntervento"]').prop('disabled', false);
else
$('input[name="<portlet:namespace/>destinazioneAltroIntervento"]').prop('disabled', true);
}, 100);
});
$('#<portlet:namespace/>normDpr input[type=checkbox]').change(function() {
var _this = $(this),
checked = _this.prop('checked'),
sibling, sibling_hidden;
if(_this.attr('id')=="<portlet:namespace/>normDpr01DepCheckbox"){
sibling = $("#<portlet:namespace/>normDpr02DepCheckbox");
sibling_hidden = $("#<portlet:namespace/>normDpr02Dep");
}
else if(_this.attr('id')=="<portlet:namespace/>normDpr02DepCheckbox"){
sibling = $("#<portlet:namespace/>normDpr01DepCheckbox");
sibling_hidden = $("#<portlet:namespace/>normDpr01Dep");
}
else if(_this.attr('id')=="<portlet:namespace/>normDpr02AutCheckbox"){
sibling = $("#<portlet:namespace/>normDpr01AutCheckbox");
sibling_hidden = $("#<portlet:namespace/>normDpr01Aut");
}
else if(_this.attr('id')=="<portlet:namespace/>normDpr02AutCheckbox"){
sibling = $("#<portlet:namespace/>normDpr01AutCheckbox");
sibling_hidden = $("#<portlet:namespace/>normDpr01Aut");
}
if(_this.is(":checked")){
sibling.prop("checked", false);
sibling_hidden.val(false);
}
});
</script>
<script type="text/javascript" >
var agMin = parseFloat("<%=territorio.getAgMin()%>"),
agMax = parseFloat("<%=territorio.getAgMax()%>");
$('#<portlet:namespace/>ag').keypress(function (e) {
if (e.which != 8 && e.which != 0 && (e.which < 44 || e.which > 57)) {
return false;
}
else if (e.keyCode == 8){
return
}
});
$('#<portlet:namespace/>ag').keyup(function(e) {
if (e.keyCode == 8){
return
}else {
if(matching($(this).val())){
var value = range($(this).val(), agMin, agMax);
$(this).val(value);
}else {
$(this).val($(this).val().substr(0, $(this).val().length-1))
}
}
});
$('#<portlet:namespace/>ag').change(function(e) {
if (e.keyCode == 8){
return
}else {
var value = range($(this).val(), agMin, agMax);
$(this).val(value);
}
});
$('#<portlet:namespace/>ag').focusout(function(event){
var value = range($(this).val(), agMin, agMax);
$(this).val(value);
});
function matching(val){
var match = val.match(/[0-9]+[\.,\,]?[0-9]*/g);
return match != null && val == match[0];
}
function range(val, min, max){
if ( parseFloat(val) > max) {
return max;
} else if ( parseFloat(val) < min) {
return min;
}
return val;
}
</script>
<script type="text/javascript" >
Liferay.provide(
window,
@ -895,7 +854,7 @@ $('#<portlet:namespace/>lavoriPubbliciCheckbox, #<portlet:namespace/>intervFinPu
$.each(toDisable, function(index, val) {
$('#<portlet:namespace/>'+val+'Checkbox').attr('disabled', true).prop('disabled', true).prop('checked', false);
});
}else{
} else {
$.each(toDisable, function(index, val) {
$('#<portlet:namespace/>'+val+'Checkbox').removeAttr('disabled');
$('#<portlet:namespace/>'+val+'Checkbox').prop('disabled', false);
@ -905,10 +864,9 @@ $('#<portlet:namespace/>lavoriPubbliciCheckbox, #<portlet:namespace/>intervFinPu
$('#<portlet:namespace/>intervFinPubCheckbox').change(function () {
var _this = $(this);
if (_this.is(":checked")){
if (_this.is(":checked")) {
$('#<portlet:namespace/>lavoriPubbliciCheckbox').attr('checked', 'checked').prop('checked', true);
}else{
} else {
$('#<portlet:namespace/>lavoriPubbliciCheckbox').removeAttr('checked');
$('#<portlet:namespace/>lavoriPubbliciCheckbox').prop('checked', false);
}
@ -930,7 +888,7 @@ $('#<portlet:namespace/>tc-intervento-opere-escavazioneCheckbox').change(functio
$('#<portlet:namespace/>tc-manut-ord-straordCheckbox, #<portlet:namespace/>tc-nuova-costruzione-pertinenzaCheckbox').change(function () {
var _this = $(this);
if (_this.is(":checked")){
if (_this.is(":checked")) {
$('#<portlet:namespace/>tc-costruzioni-esistentiCheckbox').prop('checked', true).attr('checked', true);
$('#<portlet:namespace/>tc-costruzioni-esistentiCheckbox').prop('disabled', true).attr('disabled', true);
}else{
@ -966,7 +924,7 @@ $('#<portlet:namespace/>collaudoStaticoCheckbox').change(function () {
$('#<portlet:namespace/>tcMiglioramentoSismicoCheckbox').prop("checked", false).attr("disabled", true);
$('#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox').prop("checked", false).attr("disabled", true);
}
});
});
function checkCollaudoStatico(){
var interventoLocale = AUI().one("#<portlet:namespace/>tcRiparazioneInterventoLocaleCheckbox"),
miglioramentoSismico = AUI().one("#<portlet:namespace/>tcMiglioramentoSismicoCheckbox"),
@ -986,7 +944,7 @@ function checkCollaudoStatico(){
adeguamentoSismico.attr("checked")||
miglioramentoSismico.attr("checked")){
$('#<portlet:namespace/>collaudoStaticoCheckbox').prop("checked", false).attr("disabled", true);
} else if(interventoLocale.attr("checked")){
} else if (interventoLocale.attr("checked")) {
$('#<portlet:namespace/>collaudoStaticoCheckbox').removeAttr('disabled');
}
}

90
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp

@ -38,6 +38,7 @@
<%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.mwg.sismica.bo.util.MappeUtil" %>
<%
@ -62,6 +63,8 @@
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, true);
%>
<liferay-ui:error key="error-download-pdf-domanda" message="error-download-pdf-domanda" />
@ -84,7 +87,7 @@
<c:if test="<%= intPratica.getTipoRichiesta() == Constants.SANATORIE %>">
<div class="row">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "sanatoria-edilizia") %></div>
<strong><%= LanguageUtil.get(pageContext, "sanatoria-edilizia") %></strong>
</div>
</div>
<div class="row">
@ -101,6 +104,12 @@
<%= LanguageUtil.get(pageContext, "sanatoria-edilizia-326") %>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"></div>
</div>
</div>
</c:if>
<c:if test="<%= intPratica.getTipoRichiesta() == Constants.LIEVE_ENTITA %>">
@ -111,11 +120,6 @@
</div>
</c:if>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"></div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "lavoriPubblici") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
@ -127,6 +131,37 @@
<br />
<%=BeanPropertiesUtil.getString(dettPratica, "intervFinPubDesc") %>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"></div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<strong><%= LanguageUtil.get(pageContext, "interv-no-viarch") %></strong>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<strong><span class='<%=dettPratica.getIntervInAreaDiInteresse() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "interv-in-area-di-interesse") %>
</div>
<div class="col-sm-12">
<strong><span class='<%=dettPratica.getIntervNonModificante() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "interv-non-modificante") %>
</div>
<div class="col-sm-12">
<strong><span class='<%=dettPratica.getIntervNonAssoggettabile() ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "interv-non-assoggettabile") %>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"></div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "normEsenteBollo") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "norm-esente-bollo") %>
@ -275,21 +310,12 @@
</div>
</div>
<c:if test='<%= Validator.isNotNull(BeanPropertiesUtil.getString(dettPratica, "estremiCatastali")) %>'>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "estremi-catastali") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(dettPratica, "estremiCatastali") %></strong>
</div>
</div>
</c:if>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<div class="container-fluid">
<div class="row">
<div class="row cont_maps">
<%
String[] geolocalization = BeanPropertiesUtil.getString(dettPratica, "localizzazioneGeografica","").split(Pattern.quote("|"));
%>
@ -303,8 +329,26 @@
</div>
<aui:input type="hidden" name="geoIsEditable" value='<%= false %>' label=""/>
<liferay-portlet:runtime portletName="5_WAR_trefmapitmapportlet" />
<liferay-ui:tabs names="mappe-bbcc,mappe-openstreetmap" refresh="false" value="mappe-openstreetmap">
<liferay-ui:section>
<div class="col-xs-12">
<!-- Integrazione geoportal -->
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<iframe src="<%= urlIframeMappe %>" style="border:none;width:100%;height:700px"></iframe>
</div>
</div>
</div>
</div>
</liferay-ui:section>
<liferay-ui:section>
<div style="border:none;width:100%;height:700px">
<liferay-portlet:runtime portletName="<%= PortletKeys.MAPIT %>" queryString='<%= "mapitNamespace=" + renderResponse.getNamespace() %>' />
</div>
</liferay-ui:section>
</liferay-ui:tabs>
</div>
</div>
</div>
@ -344,6 +388,16 @@
<%= BeanPropertiesUtil.getString(dettPratica, "vincoli") %>
</div>
</div>
<c:if test='<%= Validator.isNotNull(BeanPropertiesUtil.getString(dettPratica, "estremiCatastali")) %>'>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "estremi-catastali") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(dettPratica, "estremiCatastali") %>
</div>
</div>
</c:if>
</div>
</liferay-ui:panel>
</div>

61
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_riepilogo.jsp

@ -121,7 +121,7 @@
</div>
</div>
<div class="row">
<div class="col-sm-8 col-md-8">
<div class="col-sm-7 col-md-7">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_progetti" >
<div class="col-sm-6 col-md-3">
@ -330,7 +330,7 @@
</liferay-ui:panel>
</div>
</div>
<div class="col-sm-4 col-md-4">
<div class="col-sm-5 col-md-5">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_ubicazione" >
<div class="container-fluid">
@ -394,10 +394,10 @@
<hr>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dc-foglio") %>
<%= LanguageUtil.get(pageContext, "estremi-catastali") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><strong><%=BeanPropertiesUtil.getString(dettPratica, "dcFoglio") %></strong></strong>
<strong><%= BeanPropertiesUtil.getString(dettPratica, "estremiCatastali") %></strong>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dc-allegato") %>
@ -408,62 +408,13 @@
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dc-particelle") %>
</div>
<div class="col-sm-6 col-md-3">
<%
String[] particelle= BeanPropertiesUtil.getString(dettPratica, "dcParticelle").split(Pattern.quote("|"));
%>
<div class="col-md-3 col-sm-3 col-xs-6 no-padding-left">
<span><strong><%=particelle.length>0?particelle[0]:StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col-xs-6">
<span><strong><%=particelle.length>1?particelle[1]:StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col-xs-6">
<span><strong><%=particelle.length>2?particelle[2]:StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col-xs-6 no-padding-right">
<span><strong><%=particelle.length>3?particelle[3]:StringPool.BLANK %></strong></span>
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="col-sm-6 col-md-6">
<%= LanguageUtil.get(pageContext, "estremi-prat-com") %>
</div>
<div class="col-sm-6 col-md-3">
<div class="col-sm-6 col-md-6">
<strong><%=BeanPropertiesUtil.getString(dettPratica, "estremiPratCom") %></strong>
</div>
</div>
<div class="row">
<c:if test='<%= Validator.isNotNull(BeanPropertiesUtil.getString(dettPratica, "estremiCatastali")) %>'>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "estremi-catastali") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(dettPratica, "estremiCatastali") %></strong>
</div>
</div>
</c:if>
</div>
<div class="row">
<div class="col-md-12">
<%
String[] geolocalization = BeanPropertiesUtil.getString(dettPratica, "localizzazioneGeografica","").split(Pattern.quote("|"));
%>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:input name="lat" label="" type="hidden"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' />
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:input name="long" label="" type="hidden"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/>
</div>
<aui:input type="hidden" name="geoIsEditable" value='<%= false %>' label=""/>
<liferay-portlet:runtime portletName="5_WAR_trefmapitmapportlet" />
</div>
</div>
</div>
</liferay-ui:panel>
</div>

11
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/main.js

@ -92,3 +92,14 @@ $('body').on('mouseup', 'label.radio', function(){
if(radio.length)
uncheck_radio_before_click(radio);
})
if($('.cont_maps').length){
$('.cont_maps ul li').click(function(){
var map = mapItMap.getInstance();
setTimeout(function(){
map.updateSize();
if(map.layers.length > 0)
map.layers[0].redraw();
}, 100);
});
}

1
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.tern-project

@ -0,0 +1 @@
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}

1
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/build.xml

@ -2,5 +2,6 @@
<!DOCTYPE project>
<project name="portos-mapit-plugin-portlet" basedir="." default="deploy">
<property name="import.shared" value="tref-mapit-shared" />
<import file="../build-common-portlet.xml" />
</project>

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/WEB-INF/lib/tref-mapit-shared.jar

File binario non mostrato.

305
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/html/plugin/top.jsp

@ -6,27 +6,15 @@
<%@page import="com.liferay.portal.util.PortletKeys"%>
<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%>
<%@include file="/html/plugin/init.jsp" %>
<%
String contextName = getServletContext().getServletContextName();
String portletNamespace = ParamUtil.getString(request, "mapitNamespace", "_1_WAR_portosfeportlet_");
String contextName = getServletContext().getServletContextName();
String portletNamespace = ParamUtil.getString(request, "mapitNamespace", "_1_WAR_portosfeportlet_");
String verifyComune = ParamUtil.getString(request, "verifyComune", "true");
%>
<liferay-portlet:resourceURL var="moveAssetURL" id="moveAsset">
<liferay-portlet:param name="contextName" value="<%=contextName %>"/>
<liferay-portlet:param name="contextName" value="<%= contextName %>"/>
</liferay-portlet:resourceURL>
<%
/* PortletURL popupURL = PortletURLFactoryUtil.create(request, "1_WAR_portosmapitplugin",
plid, PortletRequest.RENDER_PHASE); */
/* popupURL.setParameter("mvcPath", "/html/move_asset/popup.jsp");
popupURL.setWindowState(LiferayWindowState.POP_UP);
popupURL.setPortletMode(PortletMode.VIEW); */
%>
<style>
.olMap {
position: relative;
@ -66,15 +54,13 @@ popupURL.setPortletMode(PortletMode.VIEW); */
visibility: hidden;
-webkit-transition: opacity .15s, visibility .15s;
transition: opacity .15s, visibility .15s;
}
.layermap .fa-lock {
font-size:50px;
}
</style>
<div class="container-btn-lock" id="<portlet:namespace/>container_btn">
<aui:button disabled="<%=true%>" cssClass="fa fa-unlock btn btn-primary btn-action bloccamap" message="Blocca Mappa" style="font-family:FontAwesome"/>
<aui:button disabled="true" cssClass="fa fa-unlock btn btn-primary btn-action bloccamap" message="Blocca Mappa" style="font-family:FontAwesome"/>
</div>
<div class='customAlert'>
@ -95,7 +81,7 @@ popupURL.setPortletMode(PortletMode.VIEW); */
var portletNamespace = "<%= portletNamespace %>",
mapItMap;
var verifyComune = <%= verifyComune %>;
Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getServletContextName() %>', function(event) {
AUI().use('liferay-mapit-map', 'aui-io-request', function(A) {
@ -107,8 +93,9 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
mapItMap = Liferay.MapItMap.get(portletId);
var latitude = AUI().one("#"+portletNamespace+"lat"),
longitude = AUI().one("#"+portletNamespace+"long"),
isEditable = AUI().one("#"+portletNamespace+"geoIsEditable").val() == "true";
longitude = AUI().one("#"+portletNamespace+"long");
var isEditable = AUI().one("#"+portletNamespace+"geoIsEditable");
isEditable = (undefined == isEditable) || (isEditable.val() == "true");
var editableLatitude = AUI().one("#"+portletNamespace+"lat_hidden"),
editableLongitude = AUI().one("#"+portletNamespace+"long_hidden"),
@ -121,86 +108,6 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
var geographic = new OpenLayers.Projection("EPSG:4326");
var mercator = new OpenLayers.Projection( "EPSG:3857");
extent.transform(geographic,mercator );
//mapItMap.addOption({restrictedExtent: extent});
/* var boxes = new OpenLayers.Layer.Boxes("boxes");
var box = new OpenLayers.Marker.Box(extent);
boxes.addMarker(box);
mapItMap.addWMSLayer(boxes); */
var civici = new OpenLayers.Layer.WMS(
'Numeri Civici',
'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsosm_d&map_resolution=91&', {
styles: 'etichette_blu',
layers: 'rt_osm.civici.point', transparent: true},
{isBaseLayer: false, visibility : false}
);
//mapItMap.addWMSLayer(civici);
var comuni = new OpenLayers.Layer.WMS(
'Comuni',
'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91', {
styles: 'contorno_senza_etichette',
layers: 'rt_ambamm.idcomuni.rt.poly', transparent: true},
{isBaseLayer: false}
);
//mapItMap.addWMSLayer(comuni);
var topografico = new OpenLayers.Layer.WMS(
'Topografico',
'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscartoteca&map_resolution=91&', {
styles: 'senza_etichette',
layers: 'rt_cartoteca.dbt.2k', transparent: true},
{isBaseLayer: false, visibility : false}
);
//mapItMap.addWMSLayer(topografico);
var rischio_bacini_regionali = new OpenLayers.Layer.WMS(
'Rischio Idrogeologico',
'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsperidr&map_resolution=91&language=ita&', {
styles: 'default',
layers: 'rt_peridr.rischio_bacini_regionali', transparent: true},
{isBaseLayer: false, visibility : false}
);
//mapItMap.addWMSLayer(rischio_bacini_regionali);
var catasto_strade = new OpenLayers.Layer.WMS(
'Strade',
'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&map_resolution=91&language=ita&', {
styles: 'terra_di_siena_bruciata',
layers: 'rt_cat.idcatstrade.rt', transparent: true},
{isBaseLayer: false, visibility : false}
);
//mapItMap.addWMSLayer(catasto_strade);
var catasto_fabbricati = new OpenLayers.Layer.WMS(
'Fabbricati',
'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&map_resolution=91&language=ita&', {
styles: 'carminio_chiaro',
layers: 'rt_cat.idcatfabbr.rt', transparent: true},
{isBaseLayer: false, visibility : false}
);
//mapItMap.addWMSLayer(catasto_fabbricati);
var catasto_fogli = new OpenLayers.Layer.WMS(
'Fogli Catastali',
'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&map_resolution=91&language=ita&', {
styles: 'solo_contorno_viola_fine_con_etichette',
layers: 'rt_cat.idcatbdfog.rt', transparent: true},
{isBaseLayer: false, visibility : false}
);
//mapItMap.addWMSLayer(catasto_fogli);
var catasto_particelle = new OpenLayers.Layer.WMS(
'Particelle Catastali',
'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&map_resolution=91&language=ita&', {
styles: 'contorno_rosso_mattone_con_etichette',
layers: 'rt_cat.idcatpart.rt', transparent: true},
{isBaseLayer: false, visibility : false}
);
//mapItMap.addWMSLayer(catasto_particelle);
var markerStyle = {
graphicHeight: 29,
@ -216,7 +123,6 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
style: markerStyle
}];
mapItMap.addLayerPoints(layerName, point, true, {selectable: true, displayInLayerSwitcher: false});
/* mapItMap.moveMap(longitude , latitude , mapItMap.getCurrentZoom()); */
var secureZoom = "8";
if(editableZoom != undefined && editableZoom != null){
var secureZoom =editableZoom.val()
@ -225,8 +131,7 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
}
if(isEditable){
if (isEditable) {
mapItMap.registerFunctionOnEvent("click", function (e) {
var position = mapItMap.getPositionOnClick(e);
var point_lat = position.lat;
@ -237,42 +142,29 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
lon: point_long,
style: markerStyle
}];
mapItMap.addLayerPoints(layerName, newPoint, true, {});
if (confirm("Vuoi aggiornare automaticamente i dati della localizzazione?") == true) {
if (confirm("Vuoi aggiornare automaticamente i dati della localizzazione?")) {
updateCoords(point_lat, point_long, zoom, true);
}
/* confirm("Vuoi aggiornare automaticamente i dati della localizzazione?",
{x : point_lat, y : point_long, z : true}
) */
});
mapItMap.attachDrag(layerName, {
on: {
complete: function(event) {
/* console.log(mapItMap);
console.log(event);
console.log(mapItMap.getPositionOnClick(event)); */
var point_lat = event.latitude;
var point_long = event.longitude;
var zoom = mapItMap.getCurrentZoom();
if (confirm("Vuoi aggiornare automaticamente i dati della localizzazione?") == true) {
if (confirm("Vuoi aggiornare automaticamente i dati della localizzazione?")) {
updateCoords(point_lat, point_long, zoom, true);
}
/* confirm("Vuoi aggiornare automaticamente i dati della localizzazione?",
{x : point_lat, y : point_long, z : true}
) */
}
}
});
mapItMap.activateDrag("Pratica");
var zoomEvent = function(){
if(editableLatitude.val()!="" && editableLongitude.val()!=""){
var zoomEvent = function() {
if (editableLatitude.val() != "" && editableLongitude.val() != "") {
editableZoom.val(mapItMap.getCurrentZoom());
}
};
@ -282,40 +174,15 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
Liferay.fire('mapIt-ready');
/* featurePicker = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&map_resolution=91&language=ita&',
title: 'Identify features by clicking',
layers: [catasto_particelle, catasto_fogli],
queryVisible: false,
output:'features',
eventListeners: {
getfeatureinfo: function(event) {
console.log(event);
console.log(event.features);
console.log(event.text);
},
nogetfeatureinfo: function(event) {
console.err("No queriable layers found");
}
}
});
mapItMap.insertControl(featurePicker);
featurePicker.activate();
console.log("Activated"); */
A.one("#<portlet:namespace/>map").append('<div class="layermap"></div>');
var lockButton = A.one('#<portlet:namespace/>container_btn .bloccamap'),
lockLayer = A.one('#<portlet:namespace/>map .layermap'),
latValue = editableLatitude != null ? editableLatitude.val() : latitude.val(),
longValue = editableLongitude != null ? editableLongitude.val() : longitude.val(),
locked = latValue!="" && longValue!="";
locked = latValue != "" && longValue != "";
lockMap(lockButton, lockLayer, latValue, longValue, !locked)
A.one('#<portlet:namespace/>container_btn .bloccamap').on('click', function(event){
A.one('#<portlet:namespace/>container_btn .bloccamap').on('click', function(event) {
var nodeObject = event.currentTarget,
locked = event.currentTarget.hasClass('fa-lock');
lockMap(lockButton, lockLayer, latValue, longValue, locked);
@ -325,19 +192,18 @@ Liferay.on('<%= "mapItMapReady" + StringPool.PERIOD + getServletContext().getSer
});
function lockMap(lockButton, lockLayer, latitude, longitude, locked){
if(locked){
function lockMap(lockButton, lockLayer, latitude, longitude, locked) {
if (locked) {
lockButton.replaceClass('fa-lock', 'fa-unlock');
lockLayer.removeClass('activelayer');
} else {
lockButton.replaceClass('fa-unlock', 'fa-lock');
lockLayer.addClass('activelayer');
}
if(latitude!="" && longitude!=""){
if (latitude != "" && longitude != "") {
mapItMap.moveMap(longitude, latitude, mapItMap.getCurrentZoom());
//updateCoords(latitude, longitude, mapItMap.getCurrentZoom(), false);
var editableZoom = AUI().one("#"+portletNamespace+"zoom");
if(editableZoom!=null){
if (editableZoom != null) {
editableZoom.val(mapItMap.getCurrentZoom());
}
}
@ -351,11 +217,9 @@ Liferay.on('geolocation-ready',function(event) {
longitude = event.longitude,
full = event.fullAddress;
if(latitude!="" && longitude!=""){
if (latitude != "" && longitude != "") {
var zoom = mapItMap.getCurrentZoom() > 8 ? mapItMap.getCurrentZoom() : 12;
console.log(full);
if(full){
//zoom = 14;
if (full) {
var markerStyle = {
graphicHeight: 29,
graphicWidth: 22,
@ -373,29 +237,28 @@ Liferay.on('geolocation-ready',function(event) {
mapItMap.addLayerPoints(layerName, search_point, true, {});
updateCoords(latitude, longitude, zoom, false);
}
mapItMap.moveMap(longitude, latitude, zoom);
}
});
});
function updateCoords(lat_coord, long_coord, zoom_coord, fullUpdate, noTransform){
AUI().use('aui-io-request', function(A) {
var latitude = AUI().one("#"+portletNamespace+"lat"),
longitude = AUI().one("#"+portletNamespace+"long"),
editableLatitude = AUI().one("#"+portletNamespace+"lat_hidden"),
editableLongitude = AUI().one("#"+portletNamespace+"long_hidden"),
editableZoom = AUI().one("#"+portletNamespace+"zoom"),
city = AUI().one("#"+portletNamespace+"comune");
address = AUI().one("#"+portletNamespace+"via");
var latitude = AUI().one("#" + portletNamespace + "lat"),
longitude = AUI().one("#" + portletNamespace + "long"),
editableLatitude = AUI().one("#" + portletNamespace + "lat_hidden"),
editableLongitude = AUI().one("#" + portletNamespace + "long_hidden"),
editableZoom = AUI().one("#" + portletNamespace + "zoom"),
city = AUI().one("#" + portletNamespace + "comune");
address = AUI().one("#" + portletNamespace + "via");
var newlonLat;
if(fullUpdate){
if(!noTransform)
if (fullUpdate) {
if (!noTransform) {
newlonLat = new OpenLayers.LonLat(long_coord, lat_coord).transform( new OpenLayers.Projection("EPSG:3857") , new OpenLayers.Projection("EPSG:4326"));
else
} else {
newlonLat = new OpenLayers.LonLat(long_coord, lat_coord);
}
var markerStyle = {
graphicHeight: 29,
@ -410,56 +273,63 @@ function updateCoords(lat_coord, long_coord, zoom_coord, fullUpdate, noTransform
style: markerStyle
}];
mapItMap.addLayerPoints(layerName, search_point, true, {});
}else{
newlonLat=new OpenLayers.LonLat(long_coord, lat_coord);
} else {
newlonLat = new OpenLayers.LonLat(long_coord, lat_coord);
}
var url = "https://nominatim.openstreetmap.org/reverse?format=json&zoom=18&addressdetails=1"
+"&lat="+(newlonLat.lat)+"&lon="+(newlonLat.lon);
if(fullUpdate){
if (fullUpdate) {
A.io.request(url, {
dataType: 'json',
on: {
success: function() {
var response = this.get('responseData'),
town = response.address.city!=undefined ? response.address.city : (response.address.town!=undefined ? response.address.town : response.address.village);
if(city.val().toLowerCase().split(" ").join("_") != town.toLowerCase().split(" ").join("_")){
town = response.address.city != undefined
? response.address.city
: (response.address.town != undefined
? response.address.town
: response.address.village)
.replaceAll(' ', '-')
.toLowerCase();
if (verifyComune && city.val().toLowerCase().split(" ").join("-") != town) {
alert("Attenzione!\nHai selezionato un punto esterno al comune di riferimento...");
address.val("");
} else {
var fullAddress = '';
if(response.address.road != undefined)
if(response.address.road != undefined) {
fullAddress += response.address.road;
else if(response.address.pedestrian != undefined)
} else if (response.address.pedestrian != undefined) {
fullAddress += response.address.pedestrian;
if(fullAddress != '')
}
if (fullAddress != '') {
fullAddress += (response.address.house_number != undefined ? " " + response.address.house_number : "");
}
address.val(fullAddress);
if (!verifyComune) {
var provincia = response.address.county.replaceAll(' ', '-').toLowerCase();
var province = window[portletNamespace + 'province'];
if (undefined != province[provincia]) {
AUI().use('event', 'node-event-simulate', function(A) {
A.one('#' + portletNamespace + 'provincia')
.set('value', province[provincia])
.simulate('change');
window[portletNamespace + 'comuneSelezionato'] = town.replaceAll(' ', '-').toLowerCase();
});
}
}
}
}
}
});
}
/*editableLatitude.val(lat_coord);
latitude.val(lat_coord);
editableLongitude.val(long_coord);
editableZoom.val(zoom_coord);
longitude.val(long_coord);*/
editableLatitude.val(newlonLat.lat);
latitude.val(newlonLat.lat);
editableLongitude.val(newlonLat.lon);
editableZoom.val(zoom_coord);
longitude.val(newlonLat.lon);
editableZoom.val(zoom_coord);
});
}
@ -472,56 +342,13 @@ window.alert = function(msg){
}, 100);
};
$(function(){
$('.confirmButton').click(function(){
$(function() {
$('.confirmButton').click(function() {
$('.customAlert').css('animation', 'fadeOut 0.3s linear');
setTimeout(function(){
setTimeout(function() {
$('.customAlert').css('animation', 'none');
$('.customAlert').css('display', 'none');
}, 100);
});
});
/*
var globalGeolocationParams;
window.confirm = function(msg, callback){
$('.message').text(msg);
$('.customConfirm').css('animation', 'fadeIn 0.3s linear');
$('.customConfirm').css('display', 'inline');
setTimeout(function(){
$('.customConfirm').css('animation', 'none');
}, 100);
globalGeolocationParams = callback;
};
$(function(){
$('.confirmButton').click(function(){
$('.customAlert').css('animation', 'fadeOut 0.3s linear');
setTimeout(function(){
$('.customAlert').css('animation', 'none');
$('.customAlert').css('display', 'none');
}, 100);
});
$('.agreeButton').click(function(){
console.log('agree');
$('.customConfirm').css('animation', 'fadeOut 0.3s linear');
setTimeout(function(){
$('.customConfirm').css('animation', 'none');
$('.customConfirm').css('display', 'none');
}, 100);
updateCoords(globalGeolocationParams.x, globalGeolocationParams.y, globalGeolocationParams.z);
});
$('.refuseButton').click(function(){
console.log('refused');
$('.customConfirm').css('animation', 'fadeOut 0.3s linear');
setTimeout(function(){
$('.customConfirm').css('animation', 'none');
$('.customConfirm').css('display', 'none');
}, 100);
return;
});
}); */
</script>

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/images/marker.png

File binario non mostrato.

Prima

Larghezza:  |  Altezza:  |  Dimensione: 23 KiB

Dopo

Larghezza:  |  Altezza:  |  Dimensione: 18 KiB

BIN
liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/docroot/images/result.png

File binario non mostrato.

Dopo

Larghezza:  |  Altezza:  |  Dimensione: 14 KiB

5
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java

@ -25,4 +25,9 @@ public class ConfigurazioneConstants {
// nuove configurazioni
public static final String SCHEDULER_VERSIONING = "conf.geniocivile.scheduler.versioning";
public static final String IMPORTO_BOLLO = "conf.geniocivile.scheduler.iris.importobollo";
public static final String MAPPE_URL_IFRAME_FE = "conf.sismica.mappe.iframe.url.fe";
public static final String MAPPE_URL_IFRAME_BO = "conf.sismica.mappe.iframe.url.bo";
public static final String MAPPE_SHARED_SECRET = "conf.sismica.mappe.secret";
}

18
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/.classpath

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"/>
<classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/ext/portlet.jar"/>
<classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/ext/portal-service.jar" sourcepath="/home/portos/sources/liferay-portal-src-6.2-ce-ga6">
<attributes>
<attribute name="javadoc_location" value="file:/home/portos/sources/liferay-javadocs-all/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/util-taglib.jar" sourcepath="/home/portos/sources/liferay-portal-src-6.2-ce-ga6">
<attributes>
<attribute name="javadoc_location" value="file:/home/portos/sources/liferay-javadocs-all/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/home/portos/bin/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/servlet-api.jar"/>
<classpathentry kind="output" path="classes"/>
</classpath>

1
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/.gitignore vendored

@ -0,0 +1 @@
/classes/

17
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/.project

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tref-mapit-shared</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

17
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/bin/.project

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tref-mapit-shared</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

7
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/build.xml

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="tref-mapit-shared" basedir="." default="deploy">
<property name="plugin.version" value="1" />
<import file="../build-common-shared.xml" />
</project>

47
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/constants/Constants.java

@ -0,0 +1,47 @@
package it.tref.liferay.mapit.constants;
import java.math.BigDecimal;
public interface Constants extends com.liferay.portal.kernel.util.Constants {
public static final int MAX_SEARCH_RESULT = 4000;
public static final String MIN_DECIMAL_INDEX = "000000000";
public static final String MIN_INTERO_INDEX = "000";
public static final String MAX_LAT_INDEX = "180";
public static final String MIN_LAT_INDEX = "000";
public static final String ZERO_LAT_INDEX = "090";
public static final String MAX_LON_INDEX = "360";
public static final String MIN_LON_INDEX = "000";
public static final String ZERO_LON_INDEX = "180";
public static final BigDecimal MAX_LON = (new BigDecimal(180)).setScale(0);
public static final BigDecimal MIN_LON = (new BigDecimal(-180)).setScale(0);
public static final BigDecimal MAX_LAT = (new BigDecimal(90)).setScale(0);
public static final BigDecimal MIN_LAT = (new BigDecimal(-90)).setScale(0);
public static final String COORDINATE_SEPARATOR = ".";
public static final String NULL_VALUE = "-1";
public static final String EXPANDO_TABLE_NAME = "CUSTOM_FIELDS";
public static final String EXPANDO_COLUMN_NAME_LAT = "MAPIT_LAT";
public static final String EXPANDO_COLUMN_NAME_LAT_HIDDEN = "MAPIT_LAT_HIDDEN";
public static final String EXPANDO_COLUMN_NAME_LON = "MAPIT_LON";
public static final String EXPANDO_COLUMN_NAME_LON_HIDDEN = "MAPIT_LON_HIDDEN";
public static class MapTypeValue {
public static final String OPEN_STREET_MAP = "1";
public static final String GOOGLE_MAP = "2";
public static final String BING_MAP = "3";
public static final String BASE_MAP = "4";
public static final String BASE_MAP_LABEL = "5";
public static final String IMAGE = "6";
}
public static class ZoomTypeValue {
public static final String SIMPLE = "0";
public static final String COMPACT = "1";
public static final String FULL = "2";
}
public static class ZoomType {
public static final String SIMPLE = "simple";
public static final String COMPACT = "compact";
public static final String FULL = "full";
}
}

6
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/constants/DestinationNames.java

@ -0,0 +1,6 @@
package it.tref.liferay.mapit.constants;
public interface DestinationNames extends com.liferay.portal.kernel.messaging.DestinationNames {
public static final String ASSET_RESOLVER_PREFIX = "liferay/mapit/assetresolver/";
public static final String DESTINATION_RESOLVER = "liferay/mapit/destinationresolver";
}

28
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/constants/PortletConfiguration.java

@ -0,0 +1,28 @@
package it.tref.liferay.mapit.constants;
public class PortletConfiguration {
public static final String CENTER_LAT = "centerlat";
public static final String CENTER_LON = "centerlon";
public static final String GEO_BROWSER = "geobrowser";
public static final String IGNORE_VIEW = "ignoreView";
public static final String SAVE_LAST_POSITION = "savelastposition";
public static final String SHOW_MAP_CODE = "showmapcode";
public static final String HEIGHT = "height";
public static final String ZOOM_FACTOR = "zoomfactor";
public static final String MAP_TYPE = "maptype";
public static final String API_KEY = "apikey";
public static final String API_VERSION = "apiversion";
public static final String MAP_STYLES = "mapStyles";
public static final String CLASS_NAME_IDS = "classNameIds";
public static final String PLUGIN_IDS = "pluginIds";
public static final String IGNORE_BBOX = "ignoreBbox";
public static final String LAYER_SWITCH = "controllayerswitch";
public static final String ZOOM_TYPE = "controlzoomtype";
public static final String FULL_SCREEN = "controlfullscreen";
public static final String NAV_TOOLBAR = "controlnavtoolbar";
public static final String MOUSE_POSITION = "controlmouseposition";
public static final String SCALE = "controlscale";
public static final String HOME = "controlhome";
public static final String OVERVIEW_MAP = "controloverviewmap";
public static final String NO_POPUP = "popunopopup";
}

5
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/constants/WebKeys.java

@ -0,0 +1,5 @@
package it.tref.liferay.mapit.constants;
public interface WebKeys extends com.liferay.portal.kernel.util.WebKeys {
public static final String PLUGIN_PORTLET_PREFERENCES = "PLUGIN_PORTLET_PREFERENCES";
}

38
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/src/it/tref/liferay/mapit/messaging/AssetResolverMessageListener.java

@ -0,0 +1,38 @@
package it.tref.liferay.mapit.messaging;
import com.liferay.portal.kernel.messaging.BaseMessageListener;
import com.liferay.portal.kernel.messaging.Message;
import com.liferay.portal.kernel.messaging.MessageBusUtil;
import com.liferay.portal.kernel.util.StringUtil;
import com.liferay.portal.model.BaseModel;
import com.liferay.portlet.documentlibrary.model.DLFileEntry;
import com.liferay.portlet.journal.model.JournalArticle;
import com.liferay.portlet.wiki.model.WikiPage;
import it.tref.liferay.mapit.resolver.BaseModelResolver;
import it.tref.liferay.mapit.resolver.asset.DLFileEntryResolver;
import it.tref.liferay.mapit.resolver.asset.JournalArticleResolver;
import it.tref.liferay.mapit.resolver.asset.WikiPageResolver;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class AssetResolverMessageListener extends BaseMessageListener {
public AssetResolverMessageListener() {
_baseModelResolverMap.put(DLFileEntry.class.getName(), new DLFileEntryResolver());
_baseModelResolverMap.put(WikiPage.class.getName(), new WikiPageResolver());
_baseModelResolverMap.put(JournalArticle.class.getName(), new JournalArticleResolver());
}
protected void doReceive(Message message) throws Exception {
long companyId = message.getLong("companyId");
long classPK = message.getLong("entryClassPK");
String className = StringUtil.extractLast(message.getDestinationName(), "/");
BaseModelResolver<?> baseModelResolver = _baseModelResolverMap.get(className);
BaseModel<?> baseModel = null;
if (baseModelResolver != null)
baseModel = baseModelResolver.getBaseModel(companyId, classPK);
Message responseMessage = MessageBusUtil.createResponseMessage(message, baseModel);
MessageBusUtil.sendMessage(message.getResponseDestinationName(), responseMessage);
}
private static Map<String, BaseModelResolver<?>> _baseModelResolverMap = new ConcurrentHashMap<String, BaseModelResolver<?>>();
}

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

Caricamento…
Annulla
Salva