Sfoglia il codice sorgente

Modifiche 31 agosto

master
Salvatore La Manna 3 anni fa
parent
commit
22b6e0a672
  1. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  2. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  3. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java
  4. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java
  5. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java
  6. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java
  7. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
  8. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java
  9. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java
  10. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java
  11. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java
  12. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java
  13. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java
  14. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java
  15. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
  16. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java
  17. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java
  18. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java
  19. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java
  20. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java
  21. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java
  22. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java
  23. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java
  24. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java
  25. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  26. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/input_date_time.jsp
  27. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp
  28. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp
  29. 145
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati_annullamento.jsp
  30. 34
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_andamento.jsp
  31. 214
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp
  32. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/view.jsp
  33. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp
  34. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/storico/view.jsp
  35. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/common/input_date_time.jsp
  36. 165
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/abort_fascicolo.jsp
  37. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/advanced_search.jsp
  38. 32
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/delega_actions.jsp
  39. 14
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_collaudo.jsp
  40. 160
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fascicolo.jsp
  41. 18
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp
  42. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_bottom.jspf
  43. 13
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_top.jspf
  44. 56
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_top_pagamento.jspf
  45. 373
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf
  46. 30
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/verify_ok.jsp
  47. 38
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/header.jsp
  48. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_cambio_soggetti.jsp
  49. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo.jsp
  50. 4
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp
  51. 259
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp
  52. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_asseverazione.jsp
  53. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori.jsp
  54. 4
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp
  55. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo.jsp
  56. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_delega.jsp
  57. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp
  58. 37
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_storico.jsp
  59. 1
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath
  60. 162
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/edit_workflow_task.jsp
  61. 4
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/service.properties

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

@ -207,8 +207,8 @@ public class SchedulerInvioDocumento implements MessageListener {
.getControlloPratica(controlloPraticaId); .getControlloPratica(controlloPraticaId);
gestioneTempistica(avviso, controlloPratica); gestioneTempistica(avviso, controlloPratica);
} catch (Exception e) { } catch (Exception e) {
_log.info(e.getMessage() + ", avviso " + avviso.getAvvisoId() + ", controlloPratica " _log.info("Avviso " + avviso.getAvvisoId() + ", controlloPratica "
+ avviso.getControlloPraticaId()); + avviso.getControlloPraticaId() + ", messaggio: " + e.getMessage());
_log.debug("Error", e); _log.debug("Error", e);
} }
} }
@ -445,8 +445,10 @@ public class SchedulerInvioDocumento implements MessageListener {
Avviso avvisoExtra = null; Avviso avvisoExtra = null;
List<Avviso> documentiVid = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(intPraticaId, List<Avviso> documentiVid = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(intPraticaId,
StatoPraticaConstants.VIDIMATA); StatoPraticaConstants.VIDIMATA);
if (documentiVid.size() > 0) {
avvisoExtra = documentiVid.get(0); avvisoExtra = documentiVid.get(0);
dtInvio = avvisoExtra.getDtInvio(); dtInvio = avvisoExtra.getDtInvio();
}
Date now = new Date(); Date now = new Date();
// FIX come sopra // FIX come sopra
if (avvisoExtra != null) { if (avvisoExtra != null) {

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

@ -497,7 +497,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
if (jsonSanatoria == null) { if (jsonSanatoria == null) {
JSONArray esito = JSONFactoryUtil.createJSONArray(); JSONArray esito = JSONFactoryUtil.createJSONArray();
esito.put(etichettaEsito(StatoPraticaConstants.CONFORME)); esito.put(etichettaEsito(StatoPraticaConstants.CONFORME));
esito.put(etichettaEsito("Perizia sanzione", StatoPraticaConstants.INTEGRAZIONE, true)); esito.put(etichettaEsito("Decreto sanzione", StatoPraticaConstants.INTEGRAZIONE, true));
esito.put(etichettaEsito(StatoPraticaConstants.NON_CONFORME)); esito.put(etichettaEsito(StatoPraticaConstants.NON_CONFORME));
esito.put(etichettaEsito(StatoPraticaConstants.INTEGRAZIONE)); esito.put(etichettaEsito(StatoPraticaConstants.INTEGRAZIONE));
esito.put(etichettaEsito(StatoPraticaConstants.PREAVVISO_CONTRARIO)); esito.put(etichettaEsito(StatoPraticaConstants.PREAVVISO_CONTRARIO));

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

@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchAllegatoManualeException;
import it.tref.liferay.portos.bo.model.AllegatoManuale; 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.AllegatoManualeImpl;
import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence;
import java.io.Serializable; 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,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchAsseverazioneException;
import it.tref.liferay.portos.bo.model.Asseverazione; 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.AsseverazioneImpl;
import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl; import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence;
import java.io.Serializable; 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,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchAvvisoException;
import it.tref.liferay.portos.bo.model.Avviso; 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.AvvisoImpl;
import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl; import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchCollaudoException;
import it.tref.liferay.portos.bo.model.Collaudo; 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.CollaudoImpl;
import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl; import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence;
import java.io.Serializable; 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,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchComuneException;
import it.tref.liferay.portos.bo.model.Comune; 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.ComuneImpl;
import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl; import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ComunePersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchComunicazioneException;
import it.tref.liferay.portos.bo.model.Comunicazione; 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.ComunicazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl; import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchConfigurazioneException;
import it.tref.liferay.portos.bo.model.Configurazione; 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.ConfigurazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchControlloPraticaException;
import it.tref.liferay.portos.bo.model.ControlloPratica; 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.ControlloPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence;
import java.io.Serializable; 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,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchDelegaException;
import it.tref.liferay.portos.bo.model.Delega; 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.DelegaImpl;
import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl; import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchDettPraticaException;
import it.tref.liferay.portos.bo.model.DettPratica; 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.DettPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException;
import it.tref.liferay.portos.bo.model.DocAggiuntiva; 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.DocAggiuntivaImpl;
import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence;
import java.io.Serializable; 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,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchDocPraticaException;
import it.tref.liferay.portos.bo.model.DocPratica; 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.DocPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchFineLavoriException;
import it.tref.liferay.portos.bo.model.FineLavori; 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.FineLavoriImpl;
import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl; import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl;
import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence;
import java.io.Serializable; 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,6 +42,7 @@ import it.tref.liferay.portos.bo.NoSuchHistoryWorkflowActionException;
import it.tref.liferay.portos.bo.model.HistoryWorkflowAction; 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.HistoryWorkflowActionImpl;
import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl;
import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence;
import java.io.Serializable; 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/IntPraticaPersistenceImpl.java

@ -48,6 +48,7 @@ import it.tref.liferay.portos.bo.NoSuchIntPraticaException;
import it.tref.liferay.portos.bo.model.IntPratica; 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.IntPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence;
import java.io.Serializable; 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/PagamentoPersistenceImpl.java

@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchPagamentoException;
import it.tref.liferay.portos.bo.model.Pagamento; 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.PagamentoImpl;
import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl; import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchParereGeologoException;
import it.tref.liferay.portos.bo.model.ParereGeologo; 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.ParereGeologoImpl;
import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl; import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence;
import java.io.Serializable; 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,6 +43,7 @@ import it.tref.liferay.portos.bo.NoSuchProvinciaException;
import it.tref.liferay.portos.bo.model.Provincia; 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.ProvinciaImpl;
import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl; import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchSoggettoException;
import it.tref.liferay.portos.bo.model.Soggetto; 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.SoggettoImpl;
import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl; import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence;
import java.io.Serializable; 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,6 +42,7 @@ import it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException;
import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica; 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.StoricoSoggettoPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl; import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence;
import java.io.Serializable; 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,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchTempisticaException;
import it.tref.liferay.portos.bo.model.Tempistica; 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.TempisticaImpl;
import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl; import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence;
import java.io.Serializable; 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,6 +44,7 @@ import it.tref.liferay.portos.bo.NoSuchTerritorioException;
import it.tref.liferay.portos.bo.model.Territorio; 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.TerritorioImpl;
import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl; import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl;
import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence;
import java.io.Serializable; 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.namespace=portos_bo
build.number=3308 build.number=3310
build.date=1630678547546 build.date=1631007735211
build.auto.upgrade=true build.auto.upgrade=true
## ##

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/input_date_time.jsp

@ -102,7 +102,7 @@ boolean nullable = (dt == null);
<div class="clearfix"> <div class="clearfix">
<liferay-hms:input-date <liferay-hms:input-date
autoFocus="<%= false %>" autoFocus="false"
cssClass="<%= cssClass %>" cssClass="<%= cssClass %>"
dayParam='<%= fieldParam + "Day" %>' dayParam='<%= fieldParam + "Day" %>'
dayValue="<%= day %>" dayValue="<%= day %>"

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

@ -26,7 +26,7 @@
</style> </style>
<% <%
String toImport = "toImport"; String toImport = "toImport";
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
//ADT: bug BO ID=6 stampa varianti in BO //ADT: bug BO ID=6 stampa varianti in BO
long groupId=GroupLocalServiceUtil.getGroup(intPratica.getCompanyId(), "Portos").getGroupId(); long groupId=GroupLocalServiceUtil.getGroup(intPratica.getCompanyId(), "Portos").getGroupId();

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp

@ -36,7 +36,7 @@
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= inBO %>"> <c:if test="<%= inBO %>">
<span class="tooltip-info" title="Aggiungi Documentazione"> <span class="tooltip-info" title="Aggiungi Documentazione">
<aui:button useDialog="true" id='<%=renderResponse.getNamespace()+"add-doc-aggiuntiva"%>' icon="fa fa-plus" href="<%=addDocAggiuntiva%>" cssClass="btn btn-primary btn-action"/> <aui:button useDialog="true" id='<%=renderResponse.getNamespace()+"add-doc-aggiuntiva"%>' icon="fa fa-plus" href="<%=addDocAggiuntiva%>" cssClass="btn btn-primary btn-action"/>
@ -173,7 +173,7 @@
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>

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

@ -1,37 +1,12 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeDetail"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil"%>
<%@page import="java.text.DateFormat"%>
<%@page import="javax.swing.text.html.parser.DocumentParser"%>
<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%> <%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Comparator"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="java.io.Serializable"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="java.util.LinkedHashMap"%>
<%@page import="java.util.Map.Entry"%>
<%@include file="/html/fascicolo/init.jsp"%> <%@include file="/html/fascicolo/init.jsp"%>
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>"/> <liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>"/>
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_allegati" /></h2>
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_allegati"></liferay-ui:message></h2>
<% <%
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData"); DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData");
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request);
if (dettPratica == null) { if (dettPratica == null) {
@ -42,20 +17,18 @@
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
} }
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
String tipologiaAllegato = DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO; String tipologiaAllegato = DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO;
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(),
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(), tipologiaAllegato, QueryUtil.ALL_POS, QueryUtil.ALL_POS); tipologiaAllegato, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
%> %>
<div class="panel-group allegato-group"> <div class="panel-group allegato-group">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="lfr-search-container"> <div class="lfr-search-container">
<% <%
if (!docPraticas.isEmpty()) { if (!docPraticas.isEmpty()) {
%> %>
<table class="table table-striped allegati-tipologia-table" id="<portlet:namespace/>allegati-table-<%= tipologiaAllegato %>"> <table class="table table-striped allegati-tipologia-table"
id="<portlet:namespace/>allegati-table-<%= tipologiaAllegato %>">
<thead class="table-columns allegato-group__head"> <thead class="table-columns allegato-group__head">
<tr> <tr>
<th>STATO</th> <th>STATO</th>
@ -73,7 +46,8 @@
%> %>
<tr> <tr>
<td class="text-center"> <td class="text-center">
<span class='fa fa-circle <%= docPratica.getDettPraticaIdRimozione() == 0 ? "txt-green" : "txt-red" %>' style="color:red;"></span> <span class='fa fa-circle <%= docPratica.getDettPraticaIdRimozione() == 0 ?
"txt-green" : "txt-red" %>' style="color:red;"></span>
</td> </td>
<td> <td>
<%= docPratica.getFileName() %> <%= docPratica.getFileName() %>
@ -87,14 +61,19 @@
if (!firme.getFirmeDigitali().isEmpty()) { if (!firme.getFirmeDigitali().isEmpty()) {
title.append("Firma sul file:<ul>"); title.append("Firma sul file:<ul>");
for (FirmeDetail firma: firme.getFirmeDigitali()) { for (FirmeDetail firma: firme.getFirmeDigitali()) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); List<Soggetto> soggetti = SoggettoLocalServiceUtil
.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(),
firma.getCfFirmatario());
if (soggetti.size() > 0) { if (soggetti.size() > 0) {
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); title.append("<li>").append(soggetti.get(0).getNome())
.append(StringPool.SPACE)
.append(soggetti.get(0).getCognome()).append("</li>");
} }
title.append("<li>"+firma.getCfFirmatario()); title.append("<li>").append(firma.getCfFirmatario());
cfCheck.add(firma.getCfFirmatario().trim()); cfCheck.add(firma.getCfFirmatario().trim());
if (Validator.isNotNull(firma.getDtFirma())) { if (Validator.isNotNull(firma.getDtFirma())) {
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); title.append(" del ")
.append(dateFormatDate.format(firma.getDtFirma()));
} }
title.append("</li>"); title.append("</li>");
} }
@ -103,77 +82,87 @@
if (!firme.getFirmeApplicativo().isEmpty()) { if (!firme.getFirmeApplicativo().isEmpty()) {
title.append("Firme da applicativo:<ul>"); title.append("Firme da applicativo:<ul>");
for (FirmeDetail firma: firme.getFirmeApplicativo()) { for (FirmeDetail firma: firme.getFirmeApplicativo()) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); List<Soggetto> soggetti = SoggettoLocalServiceUtil
.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(),
firma.getCfFirmatario());
if (soggetti.size() > 0) { if (soggetti.size() > 0) {
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); title.append("<li>").append(soggetti.get(0).getNome())
.append(StringPool.SPACE)
.append(soggetti.get(0).getCognome()).append("</li>");
} }
title.append("<li>"+firma.getCfFirmatario()); title.append("<li>").append(firma.getCfFirmatario());
if (Validator.isNotNull(firma.getDtFirma())) { if (Validator.isNotNull(firma.getDtFirma())) {
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); title.append(" del ")
.append(dateFormatDate.format(firma.getDtFirma()));
} }
title.append("</li>"); title.append("</li>");
} }
title.append("</ul>"); title.append("</ul>");
} }
}
if(firme.numeroFirme()>0){
%> %>
<span class="fa fa-check icon-asseverazioni tooltip-info" title="<%=title.toString() %>" style="color:green"> <span class="fa fa-check icon-asseverazioni tooltip-info"
title="<%=title.toString() %>" style="color:green">
<sub style="font-weight: bold"><%= firme.numeroFirme() %></sub> <sub style="font-weight: bold"><%= firme.numeroFirme() %></sub>
</span> </span>
<% <%
} else { } else {
%> %>
<span class="fa fa-close icon-asseverazioni tooltip-info" title="Non ci sono firme sul file" style="color:red"></span> <span class="fa fa-close icon-asseverazioni tooltip-info"
title="Non ci sono firme sul file" style="color:red"></span>
<% <%
} }
%> %>
</td> </td>
<td> <td>
<% <%
String description = StringPool.BLANK;
if (DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())) { if (DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())) {
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica
.getClassPk());
if (adding!=null) { if (adding!=null) {
//description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ; out.print(adding.getFullDescription());
description = adding.getFullDescription();
} }
}else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){ } else if (FineLavori.class.getName().equalsIgnoreCase(docPratica
FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); .getClassName())) {
FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica
.getClassPk());
if (adding!=null) { if (adding!=null) {
description = adding.getFullDescription() ; out.print(adding.getFullDescription());
} }
} else if (Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())) { } else if (Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())) {
Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica
.getClassPk());
if (adding!=null) { if (adding!=null) {
description = adding.getFullDescription() ; out.print(adding.getFullDescription());
} }
} }
out.print(description);
%> %>
</td> </td>
<td> <td>
<% <%
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati // Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); // gli allegati
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica
.getDettPraticaIdRimozione());
if (removing != null) { if (removing != null) {
%> out.print(removing.getFullDescription());
<%= removing.getFullDescription() %>
<%
} }
%> %>
</td> </td>
<td class="text-center text-nowrap"> <td class="text-center text-nowrap">
<c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId()) %>"> <c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId()) %>">
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="previewURL"
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" /> windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" /> <liferay-portlet:param name="fileEntryId"
value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" />
<liferay-portlet:param name="mvcPath"
value="/html/common/preview_file_entry.jsp" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:icon id='<%= "open_" + docPraticaId %>' message="Visualizza"
<liferay-ui:icon id='<%="open_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard" message="Visualizza" url="<%=previewURL%>" useDialog="true"/> linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard"
<liferay-ui:icon id='<%="download_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-download" message="Download" url="<%=docPratica.getDownloadUrl(themeDisplay)%>" /> url="<%= previewURL %>" useDialog="true" />
<liferay-ui:icon id='<%= "download_" + docPraticaId %>' message="Download"
linkCssClass="btn btn-action" iconCssClass="fa fa-download"
url="<%= docPratica.getDownloadUrl(themeDisplay) %>" />
</c:if> </c:if>
</td> </td>
</tr> </tr>
@ -188,22 +177,14 @@
</div> </div>
</div> </div>
</div> </div>
<%
%>
<script type="text/javascript"> <script type="text/javascript">
YUI().use( YUI().use('aui-tooltip', function(Y) {
'aui-tooltip', new Y.TooltipDelegate({
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.allegati-tipologia-table .tooltip-info', trigger: '.allegati-tipologia-table .tooltip-info',
position: 'top', position: 'top',
cssClass: 'tooltip-help', cssClass: 'tooltip-help',
html: true, html: true,
opacity: 1 opacity: 1,
} });
); });
}
);
</script> </script>

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

@ -1,44 +1,16 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.model.DLFileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Avviso"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayPortletMode"%>
<%@page import="javax.portlet.PortletRequest"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.CronostoriaUtil"%>
<%@page import="java.util.Comparator"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.Date"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.CronostoriaBean"%>
<%@page import="java.util.ArrayList"%>
<%@ include file="/html/fascicolo/init.jsp" %> <%@ include file="/html/fascicolo/init.jsp" %>
<% <%
int start = ParamUtil.getInteger(request, "start" , QueryUtil.ALL_POS); int start = ParamUtil.getInteger(request, "start" , QueryUtil.ALL_POS);
int end = ParamUtil.getInteger(request, "end" , QueryUtil.ALL_POS); int end = ParamUtil.getInteger(request, "end" , QueryUtil.ALL_POS);
boolean header = ParamUtil.getBoolean(request, "header", true); boolean header = ParamUtil.getBoolean(request, "header", true);
IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica"); IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica");
%> %>
<c:if test="<%= header %>"> <c:if test="<%= header %>">
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>"/> <liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>"/>
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_andamento"></liferay-ui:message></h2> <h2 class="fasciolo_page_title"><liferay-ui:message key="page_andamento" /></h2>
</c:if> </c:if>
<liferay-util:include page="/html/cronologia/view.jsp" servletContext='<%= application %>'> <liferay-util:include page="/html/cronologia/view.jsp" servletContext='<%= application %>'>
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>"></liferay-util:param> <liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" />
<liferay-util:param name="inBO" value="<%= String.valueOf(true) %>"></liferay-util:param> <liferay-util:param name="inBO" value="true" />
</liferay-util:include> </liferay-util:include>

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

@ -1,52 +1,23 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="com.liferay.portal.kernel.log.LogFactoryUtil"%>
<%@page import="com.liferay.portal.kernel.log.Log"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.WorkflowConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="com.liferay.portal.kernel.search.IndexerRegistryUtil"%>
<%@page import="com.liferay.portal.kernel.search.Indexer"%>
<%@page import="com.liferay.portal.kernel.search.Document"%> <%@page import="com.liferay.portal.kernel.search.Document"%>
<%@page import="com.liferay.portal.kernel.search.Hits"%> <%@page import="com.liferay.portal.kernel.search.Hits"%>
<%@page import="com.liferay.portal.kernel.search.Indexer"%>
<%@page import="com.liferay.portal.kernel.search.IndexerRegistryUtil"%>
<%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.search.IntPraticaAdvancedSearch"%> <%@page import="it.tref.liferay.portos.bo.search.IntPraticaAdvancedSearch"%>
<%@page import="com.liferay.portal.service.ServiceContext"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.ProtocollazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="com.liferay.portal.kernel.json.JSONFactoryUtil"%>
<%@page import="com.liferay.portal.kernel.json.JSONSerializer"%>
<%@page import="java.io.IOException"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="com.liferay.portal.kernel.util.ContentTypes"%>
<%@page import="com.liferay.portal.kernel.util.Http.Body"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.liferay.portal.kernel.util.Http.Options"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="java.io.Serializable"%>
<%@page import="javax.portlet.PortletURL"%> <%@page import="javax.portlet.PortletURL"%>
<%@page import="java.util.LinkedHashMap"%>
<%@page import="java.util.Map.Entry"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.Date" %>
<%@include file="/html/fascicolo/init.jsp"%> <%@include file="/html/fascicolo/init.jsp"%>
<liferay-portlet:actionURL varImpl="searchURL" name="searchURL" /> <liferay-portlet:actionURL varImpl="searchURL" name="searchURL" />
<% <%
//GESTIONE RICERCA CON PAGINATORE SEARCH CONTAINER //GESTIONE RICERCA CON PAGINATORE SEARCH CONTAINER
String numeroProgettoSearch = ParamUtil.getString(request, "numeroProgetto"); String numeroProgettoSearch = ParamUtil.getString(request, "numeroProgetto");
String protocolloSearch = ParamUtil.getString(request, "protocollo"); String protocolloSearch = ParamUtil.getString(request, "protocollo");
@ -67,10 +38,7 @@ String tipoIntervento = ParamUtil.getString(request, "tipoIntervento", StringPoo
String indirizzo = ParamUtil.getString(request, "indirizzo"); String indirizzo = ParamUtil.getString(request, "indirizzo");
String ordinaPer = ParamUtil.getString(request, "ordinaPer", StringPool.BLANK); String ordinaPer = ParamUtil.getString(request, "ordinaPer", StringPool.BLANK);
String ordinaTipo = ParamUtil.getString(request, "ordinaTipo", StringPool.BLANK); String ordinaTipo = ParamUtil.getString(request, "ordinaTipo", StringPool.BLANK);
boolean doSearch = true; boolean doSearch = true;
PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); PortletURL iteratorURL = liferayPortletResponse.createRenderURL();
iteratorURL.setParameter("numeroProgetto", numeroProgettoSearch); iteratorURL.setParameter("numeroProgetto", numeroProgettoSearch);
iteratorURL.setParameter("protocollo", protocolloSearch); iteratorURL.setParameter("protocollo", protocolloSearch);
@ -91,11 +59,9 @@ iteratorURL.setParameter("praticaAperta", praticaAperta);
iteratorURL.setParameter("indirizzo", indirizzo); iteratorURL.setParameter("indirizzo", indirizzo);
iteratorURL.setParameter("ordinaPer", ordinaPer); iteratorURL.setParameter("ordinaPer", ordinaPer);
iteratorURL.setParameter("ordinaTipo", ordinaTipo); iteratorURL.setParameter("ordinaTipo", ordinaTipo);
String orderByType = ParamUtil.getString(request, "orderByType", "asc"); String orderByType = ParamUtil.getString(request, "orderByType", "asc");
String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); String orderByCol = ParamUtil.getString(request, "orderByCol", "nome");
String keywords = StringPool.BLANK; String keywords = StringPool.BLANK;
%> %>
<liferay-ui:success key="success-sospesa" message="message-success-pratica-sospesa" /> <liferay-ui:success key="success-sospesa" message="message-success-pratica-sospesa" />
<liferay-ui:success key="success-ripresa" message="message-success-pratica-ripresa" /> <liferay-ui:success key="success-ripresa" message="message-success-pratica-ripresa" />
@ -110,9 +76,10 @@ String keywords = StringPool.BLANK;
<liferay-ui:error key="error-cambio-stato" message="message-error-stato-cambiato" /> <liferay-ui:error key="error-cambio-stato" message="message-error-stato-cambiato" />
<liferay-ui:success key="success-cambio-titolare" message="message-success-cambio-titolare" /> <liferay-ui:success key="success-cambio-titolare" message="message-success-cambio-titolare" />
<liferay-ui:error key="error-cambio-titolare" message="message-error-cambio-titolare" /> <liferay-ui:error key="error-cambio-titolare" message="message-error-cambio-titolare" />
<liferay-ui:error key="error-cambio-titolare-no-such-user" message="message-error-cambio-titolare-nuovo-titolare-non-esiste"/> <liferay-ui:error key="error-cambio-titolare-no-such-user"
<liferay-ui:error key="error-cambio-titolare-pratica-in-progress" message="message-error-cambio-titolare-pratica-in-progress"/> message="message-error-cambio-titolare-nuovo-titolare-non-esiste" />
<liferay-ui:error key="error-cambio-titolare-pratica-in-progress"
message="message-error-cambio-titolare-pratica-in-progress" />
<div class="navbar-container"> <div class="navbar-container">
<aui:form action="<%= searchURL.toString() %>" method="POST" name="fm"> <aui:form action="<%= searchURL.toString() %>" method="POST" name="fm">
<liferay-ui:search-form page="/html/fascicolo/advanced_search.jsp" servletContext="<%= application %>" > <liferay-ui:search-form page="/html/fascicolo/advanced_search.jsp" servletContext="<%= application %>" >
@ -121,7 +88,6 @@ String keywords = StringPool.BLANK;
</liferay-ui:search-form> </liferay-ui:search-form>
</aui:form> </aui:form>
</div> </div>
<!-- Funzione per esportare la ricerca --> <!-- Funzione per esportare la ricerca -->
<liferay-portlet:resourceURL id="exportRicerca" var="exportRicercaURL"> <liferay-portlet:resourceURL id="exportRicerca" var="exportRicercaURL">
<liferay-portlet:param name="dataRichiestaInizio" value="<%= dataDaSearch %>" /> <liferay-portlet:param name="dataRichiestaInizio" value="<%= dataDaSearch %>" />
@ -146,31 +112,23 @@ String keywords = StringPool.BLANK;
<liferay-portlet:param name="searchForExport" value="true" /> <liferay-portlet:param name="searchForExport" value="true" />
<liferay-portlet:param name="<%= Constants.CMD %>" value="exportRicerca" /> <liferay-portlet:param name="<%= Constants.CMD %>" value="exportRicerca" />
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
<div class="row-fluid" style="margin-top:10px">
<div class="row-fluid" style="margin-top:10px;">
<div class="span10"></div> <div class="span10"></div>
<div class="span2"> <div class="span2">
<aui:button-row cssClass="margin-top-0"> <aui:button-row cssClass="margin-top-0">
<liferay-ui:icon linkCssClass="btn btn-action btn-primary pull-right" iconCssClass="fa fa-floppy-o" message="Esporta Ricerca" label="<%= true %>" url="<%= exportRicercaURL %>" target="_blank" /> <liferay-ui:icon linkCssClass="btn btn-action btn-primary pull-right" iconCssClass="fa fa-floppy-o"
message="Esporta Ricerca" label="true" url="<%= exportRicercaURL %>" target="_blank" />
</aui:button-row> </aui:button-row>
</div> </div>
</div> </div>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" iteratorURL="<%= iteratorURL %>"
<liferay-ui:search-container orderByType="<%= orderByType %>" orderByCol="<%= orderByCol %>">
emptyResultsMessage="no-entries-were-found"
iteratorURL="<%= iteratorURL %>"
orderByType="<%= orderByType %>" orderByCol="<%= orderByCol %>"
>
<% <%
List<IntPratica> listaIntPratica = new ArrayList<IntPratica>(); List<IntPratica> listaIntPratica = new ArrayList<IntPratica>();
Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(request, user, searchContainer.getStart(), searchContainer.getEnd()); Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(request, user, searchContainer.getStart(), searchContainer.getEnd());
for (Document doc : hits.toList()) { for (Document doc : hits.toList()) {
String intPraticaId = doc.get("intPraticaId"); String intPraticaId = doc.get("intPraticaId");
if (Validator.isNotNull(intPraticaId)) { if (Validator.isNotNull(intPraticaId)) {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId));
if (Validator.isNotNull(intPratica)) { if (Validator.isNotNull(intPratica)) {
listaIntPratica.add(intPratica); listaIntPratica.add(intPratica);
@ -179,34 +137,20 @@ String keywords = StringPool.BLANK;
indexer.delete(company.getCompanyId(), doc.getUID()); indexer.delete(company.getCompanyId(), doc.getUID());
} }
} }
} }
searchContainer.setTotal(hits.getLength()); searchContainer.setTotal(hits.getLength());
%> %>
<liferay-ui:search-container-results results="<%= listaIntPratica %>" />
<liferay-ui:search-container-results <liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.IntPratica" modelVar="intPratica">
results="<%=listaIntPratica%>"
/>
<liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.IntPratica"
modelVar="intPratica"
>
<% <%
long intPraticaId = intPratica.getIntPraticaId(); long intPraticaId = intPratica.getIntPraticaId();
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
Log _log = LogFactoryUtil.getLog("fascicolo_view_jsp");
if (lastDettPratica == null) {
_log.info("intPraticaId=" + intPraticaId + ", lastDettPratica null");
}
%> %>
<liferay-portlet:renderURL var="viewURL" > <liferay-portlet:renderURL var="viewURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= iteratorURL.toString() %>" /> <liferay-portlet:param name="backURL" value="<%= iteratorURL.toString() %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:search-container-column-text name="#" cssClass="text-center middle-aligned"> <liferay-ui:search-container-column-text name="#" cssClass="text-center middle-aligned">
<div class="flex-center"> <div class="flex-center">
<c:if test="<%= intPratica.isSospesa() %>"> <c:if test="<%= intPratica.isSospesa() %>">
@ -214,19 +158,21 @@ String keywords = StringPool.BLANK;
<span class="fa fa-circle txt-orange"></span> <span class="fa fa-circle txt-orange"></span>
</span> </span>
</c:if> </c:if>
<!-- <!--
Manifattura Web Group per Regione Siciliana Manifattura Web Group per Regione Siciliana
Le pratiche sottoposte a parere sono quelle che hanno Le pratiche sottoposte a parere sono quelle che hanno statoPratica == 'SP', non quelle in
statoPratica == 'SP', non quelle in status di workflow = pending status di workflow = pending
--> -->
<c:if test="<%= intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.SOTTOPOSTA_A_PARERE) %>"> <c:if test="<%= intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info" title="Sottoposta a parere" style="padding: 5px;margin-right:5px;"> .SOTTOPOSTA_A_PARERE) %>">
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info"
title="Sottoposta a parere" style="padding:5px;margin-right:5px">
<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %> <%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>
</span> </span>
</c:if> </c:if>
<c:if test="<%= StatoPraticaConstants.INTEGRAZIONE.equals(intPratica.getStatoPratica()) %>"> <c:if test="<%= StatoPraticaConstants.INTEGRAZIONE.equals(intPratica.getStatoPratica()) %>">
<span class="tooltip-info display-inline-block" title="Richiesta integrazione" style="padding:0"> <span class="tooltip-info display-inline-block" title="Richiesta integrazione"
style="padding:0">
<i class="fa fa-exclamation-circle txt-orange" style="font-size:33px"></i> <i class="fa fa-exclamation-circle txt-orange" style="font-size:33px"></i>
</span> </span>
</c:if> </c:if>
@ -236,65 +182,66 @@ String keywords = StringPool.BLANK;
<liferay-ui:search-container-column-text name="n-progetto" href="<%=viewURL %>" cssClass=""> <liferay-ui:search-container-column-text name="n-progetto" href="<%=viewURL %>" cssClass="">
<%= intPratica.getTitle(locale, true) %> <%= intPratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="titolare-digitale" href="<%=viewURL %>" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="titolare-digitale" href="<%= viewURL %>"
cssClass="text-nowrap">
<% <%
Soggetto titolare = null; Soggetto titolare = null;
User titolareUser = null; User titolareUser = null;
if(lastDettPratica != null) { if(lastDettPratica != null) {
titolareUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); titolareUser = UserLocalServiceUtil.getUser(intPratica.getUserId());
/*List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(lastDettPratica.getIntPraticaId(), lastDettPratica.getCodiceFiscaleDelegatoCommittente());
if(titolari != null && !titolari.isEmpty()){
titolare = titolari.get(0);
}*/
} }
%> %>
<c:if test="<%= Validator.isNotNull(titolareUser) %>"> <c:if test="<%= Validator.isNotNull(titolareUser) %>">
<%= titolareUser.getFirstName() %><br/><%= titolareUser.getLastName() %> <%= titolareUser.getFirstName() %><br/><%= titolareUser.getLastName() %>
</c:if> </c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="committenti" href="<%=viewURL %>" cssClass=""> <liferay-ui:search-container-column-text name="committenti" href="<%= viewURL %>">
<% <%
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
if (lastDettPratica != null) { if (lastDettPratica != null) {
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(lastDettPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE); List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(
lastDettPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE);
for (Soggetto committente : committenti) { for (Soggetto committente : committenti) {
builder.append(committente.getTitle()+"<br/>"+committente.getCodiceFiscale()) if (builder.length() > 0) {
.append(StringPool.COMMA_AND_SPACE).append("<br/><br/>"); builder.append(", <br/><br/>");
}
builder.append(committente.getTitle()).append("<br/>").append(committente.getCodiceFiscale());
} }
if(builder.length()>0)
builder.setLength(builder.length()-12);
out.print(builder.toString()); out.print(builder.toString());
} }
%> %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="tecnico-istruttore" href="<%=viewURL %>" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="tecnico-istruttore" href="<%= viewURL %>"
<c:if test="<%=intPratica.getStatusByUserId()!=0l %>"> cssClass="text-nowrap">
<c:if test="<%=intPratica.getStatusByUserId() != 0 %>">
<% <%
User istruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); User istruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId());
if (istruttore!=null) { if (istruttore!=null) {
out.print(istruttore.getFullName()); out.print(istruttore.getFullName());
} else { } else {
out.print( "["+intPratica.getStatusByUserId()+"]"); out.print(StringPool.OPEN_BRACKET);
out.print(intPratica.getStatusByUserId());
out.print(StringPool.CLOSE_BRACKET);
} }
%> %>
</c:if> </c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Stato Pratica"
<liferay-ui:search-container-column-text name="Stato Pratica" cssClass="text-nowrap text-center middle-aligned"> cssClass="text-nowrap text-center middle-aligned">
<strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica.getTipoProcedura())) %></strong> <strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica
.getStatoPratica(), intPratica.getTipoProcedura())) %></strong>
<span class="text-center display-block" style="margin-top:5px"> <span class="text-center display-block" style="margin-top:5px">
<% <%
List<Avviso> avvisi = AvvisoLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_Avviso", "createDate", false)); List<Avviso> avvisi = AvvisoLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_Avviso", "createDate",
false));
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
if (!avvisi.isEmpty()) { if (!avvisi.isEmpty()) {
sb.append("<ul class='avvisi-tooltip'>"); sb.append("<ul class='avvisi-tooltip'>");
for (Avviso avviso : avvisi) { for (Avviso avviso : avvisi) {
String tipoDocumento = avviso.translateTipoDocumento(); String tipoDocumento = avviso.translateTipoDocumento();
String testoEvento = LanguageUtil.get(pageContext, tipoDocumento); String testoEvento = LanguageUtil.get(pageContext, tipoDocumento);
sb.append("<li class='avviso-tooltip'>"+testoEvento+"</li>"); sb.append("<li class='avviso-tooltip'>").append(testoEvento).append("</li>");
} }
sb.append("</ul>"); sb.append("</ul>");
%> %>
@ -302,18 +249,20 @@ String keywords = StringPool.BLANK;
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<a class="btn status-icon tooltip-info btn-action" title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>" <a class="btn status-icon tooltip-info btn-action"
href="<%= fascicoloAvvisiURL.toString()+"#_"+PortletKeys.FASCICOLO+"_tab=_"+PortletKeys.FASCICOLO+"_page_avvisi" %>"> title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>"
href="<%= fascicoloAvvisiURL.toString() + "#_" + PortletKeys.FASCICOLO + "_tab=_"
+ PortletKeys.FASCICOLO + "_page_avvisi" %>">
<i class="fa fa-envelope relative"> <i class="fa fa-envelope relative">
<span class="fa-hover fa-top-right txt-bold"><%= avvisi.size() %></span> <span class="fa-hover fa-top-right txt-bold"><%= avvisi.size() %></span>
</i> </i>
</a> </a>
<% <%
} }
%> int variantiCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(
<% intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE));
int variantiCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE)); int integrazioniCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(
int integrazioniCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
%> %>
<c:if test="<%= variantiCount > 0 %>"> <c:if test="<%= variantiCount > 0 %>">
<span class="btn status-icon tooltip-info btn-action" title="Varianti Presentate"> <span class="btn status-icon tooltip-info btn-action" title="Varianti Presentate">
@ -333,7 +282,8 @@ String keywords = StringPool.BLANK;
</c:if> </c:if>
<c:if test="<%= intPratica.isFineLavoriParziale() || intPratica.isFineLavoriTotale() %>"> <c:if test="<%= intPratica.isFineLavoriParziale() || intPratica.isFineLavoriTotale() %>">
<c:if test="<%= !intPratica.isFineLavoriTotale() %>"> <c:if test="<%= !intPratica.isFineLavoriTotale() %>">
<span class="btn status-icon tooltip-info btn-action" title="Fine Lavori Parziale presente"> <span class="btn status-icon tooltip-info btn-action"
title="Fine Lavori Parziale presente">
<i class="fa fa-gavel relative"> <i class="fa fa-gavel relative">
<span class="fa-hover fa-top-right txt-orange txt-bold">P</span> <span class="fa-hover fa-top-right txt-orange txt-bold">P</span>
</i> </i>
@ -365,41 +315,35 @@ String keywords = StringPool.BLANK;
</c:if> </c:if>
</span> </span>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Descrizione Intervento" href="<%= viewURL %>" > <liferay-ui:search-container-column-text name="Descrizione Intervento" href="<%= viewURL %>" >
<% <%
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), comune.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), comune
.getCodiceProvincia());
%> %>
Territorio: <strong><%= comune.getDenominazione() %>
Territorio: <strong><%= comune.getDenominazione() %> <%= (lastDettPratica == null || lastDettPratica.getLocalita().isEmpty()) ? "" : "(Loc. "+lastDettPratica.getLocalita()+" ) " %>- <%= provincia.getProvincia() %></strong><br> <%= (lastDettPratica == null || lastDettPratica.getLocalita().isEmpty()) ? StringPool.BLANK
Localizzazione: <strong><%= lastDettPratica == null ? "" : lastDettPratica.getVia() %></strong><br> : "(Loc. "+lastDettPratica.getLocalita()+" ) " %>- <%= provincia.getProvincia() %></strong><br>
<strong><%= LanguageUtil.get(pageContext, "label_procedura_" + intPratica.getTipoProcedura()) + ") " + LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica.getTipoProcedura()) %></strong><br><br> Localizzazione: <strong><%= lastDettPratica == null ? StringPool.BLANK
<%= lastDettPratica == null ? "" : lastDettPratica.getDescLongIntervento() %> : lastDettPratica.getVia() %></strong><br>
<strong><%= LanguageUtil.get(pageContext, "label_procedura_" + intPratica.getTipoProcedura()) + ") "
+ LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica.getTipoProcedura()) %></strong>
<br><br>
<%= lastDettPratica == null ? StringPool.BLANK : lastDettPratica.getDescLongIntervento() %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-jsp path="/html/fascicolo/fascicolo_actions.jsp" align="right" /> <liferay-ui:search-container-column-jsp path="/html/fascicolo/fascicolo_actions.jsp" align="right" />
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= true %>" /> <liferay-ui:search-iterator paginate="true" />
</liferay-ui:search-container> </liferay-ui:search-container>
<script type="text/javascript"> <script type="text/javascript">
YUI().use( YUI().use('aui-tooltip', function(Y) {
'aui-tooltip', new Y.TooltipDelegate({
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info', trigger: '.tooltip-info',
position: 'top', position: 'top',
cssClass: 'tooltip-help', cssClass: 'tooltip-help',
html: true, html: true,
opacity: 1 opacity: 1,
} });
); });
}
);
</script> </script>

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

@ -10,7 +10,7 @@ String[] tabs = StringUtil.split(tabNames);
%> %>
<div id="<portlet:namespace/>avvisiContainerId" class="container-fluid"> <div id="<portlet:namespace/>avvisiContainerId" class="container-fluid">
<liferay-ui:tabs names="<%= tabNames %>" url="<%= portletURL.toString() %>" /> <liferay-ui:tabs names="<%= tabNames %>" url="<%= portletURL.toString() %>" />
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<aui:button value="Aggiorna" id='<%= renderResponse.getNamespace() + "aggiorna" %>' icon="fa fa-refresh" type="button" <aui:button value="Aggiorna" id='<%= renderResponse.getNamespace() + "aggiorna" %>' icon="fa fa-refresh" type="button"
onclick="javascript:location.reload()" cssClass="btn btn-primary btn-action pull-right margin_10_0" /> onclick="javascript:location.reload()" cssClass="btn btn-primary btn-action pull-right margin_10_0" />
<%-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme --%> <%-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme --%>

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

@ -90,7 +90,7 @@
String contentFormId = "pagamentoFormContent_"+index; String contentFormId = "pagamentoFormContent_"+index;
String formNameBollettino = "fmPagamenti_"+index; String formNameBollettino = "fmPagamenti_"+index;
%> %>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
id='<%=buttonFormId %>' id='<%=buttonFormId %>'
iconCssClass="fa fa-edit" iconCssClass="fa fa-edit"
@ -126,7 +126,7 @@
String buttonId = "pagamentoButton_"+index; String buttonId = "pagamentoButton_"+index;
String contentId = "pagamentoContent_"+index; String contentId = "pagamentoContent_"+index;
%> %>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
id='<%=buttonId %>' id='<%=buttonId %>'
iconCssClass="fa fa-info-circle" iconCssClass="fa fa-info-circle"
@ -167,6 +167,6 @@
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>

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

@ -46,5 +46,5 @@
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/common/input_date_time.jsp

@ -104,7 +104,7 @@ String customValidator = ParamUtil.getString(request, "customValidator", "");
<div class="clearfix"> <div class="clearfix">
<liferay-hms:input-date <liferay-hms:input-date
autoFocus="<%= false %>" autoFocus="false"
cssClass="<%= cssClass %>" cssClass="<%= cssClass %>"
dayParam='<%= fieldParam + "Day" %>' dayParam='<%= fieldParam + "Day" %>'
dayValue="<%= day %>" dayValue="<%= day %>"

165
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/abort_fascicolo.jsp

@ -1,23 +1,11 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="java.util.Calendar"%>
<%@include file="/html/fascicolofe/init.jsp"%> <%@include file="/html/fascicolofe/init.jsp"%>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
String dialogId = ParamUtil.getString(request, "dialogId"); String dialogId = ParamUtil.getString(request, "dialogId");
%> %>
<liferay-portlet:renderURL var="redirectErrorURL"> <liferay-portlet:renderURL var="redirectErrorURL">
@ -25,47 +13,46 @@
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dialogId" value="<%= dialogId %>" /> <liferay-portlet:param name="dialogId" value="<%= dialogId %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<c:if test="<%= !intPratica.isAnnullata() && Validator.isNull(intPratica.getDocPraticaAnnullamentoId()) %>"> <c:if test="<%= !intPratica.isAnnullata() && Validator.isNull(intPratica.getDocPraticaAnnullamentoId()) %>">
<liferay-ui:error key="error.annullamento.add.file.non.firmato" message="file-non-firmato-da-soggetti" /> <liferay-ui:error key="error.annullamento.add.file.non.firmato" message="file-non-firmato-da-soggetti" />
<liferay-portlet:renderURL var="okURL"> <liferay-portlet:renderURL var="okURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dialogId" value="<%= dialogId %>" /> <liferay-portlet:param name="dialogId" value="<%= dialogId %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="allegatoFileAnnullamento" var="allegatoFileAnnullamentoURL"> <liferay-portlet:actionURL name="allegatoFileAnnullamento" var="allegatoFileAnnullamentoURL">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="errorUrl" value="<%= redirectErrorURL %>" /> <liferay-portlet:param name="errorUrl" value="<%= redirectErrorURL %>" />
<liferay-portlet:param name="redirect" value="<%= okURL %>" /> <liferay-portlet:param name="redirect" value="<%= okURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<aui:form name="fm_abort" action="<%= allegatoFileAnnullamentoURL %>" method="post" enctype="multipart/form-data"> <aui:form name="fm_abort" action="<%= allegatoFileAnnullamentoURL %>" method="post" enctype="multipart/form-data">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="File Annullamento" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="File Annullamento">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input type="file" name="abortFile" label="" /> <aui:input type="file" name="abortFile" label="" />
</div> </div>
</div> </div>
<!-- ADT BUG FE ID = 31 -->
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-checkbox-edit-allegato"> <div class="col-xs-12 container-checkbox-edit-allegato">
<% <%
Soggetto titolareDigitale = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(intPraticaId, user.getScreenName()).get(0); Soggetto titolareDigitale = SoggettoLocalServiceUtil
.getValidByIntPratica_CodiceFiscale(intPraticaId, user.getScreenName())
.get(0);
%> %>
<aui:input type="checkbox" name="applicaFirma" label='<%= LanguageUtil.format(pageContext, "label.firma-annullamento", titolareDigitale.getDescrizioneCompleta()) %>' /> <aui:input type="checkbox" name="applicaFirma" label='<%= LanguageUtil.format(
pageContext, "label.firma-annullamento", titolareDigitale
.getDescrizioneCompleta()) %>' />
</div> </div>
</div> </div>
<aui:button-row> <aui:button-row>
<aui:button type="submit" value="Upload"></aui:button> <aui:button type="submit" value="Upload" />
</aui:button-row> </aui:button-row>
</div> </div>
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
@ -73,38 +60,6 @@
</div> </div>
</div> </div>
</aui:form> </aui:form>
<!-- ADT BUG FE ID = 31 -->
<%--
<liferay-portlet:actionURL name="generaFirmaAnnullamento" var="generaFirmaAnnullamentoURL">
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="errorUrl" value="<%=redirectErrorURL%>"/>
<liferay-portlet:param name="redirect" value="<%=okURL%>"/>
</liferay-portlet:actionURL>
<aui:form name="fm_abort" action="<%=generaFirmaAnnullamentoURL %>" method="post">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Firma da applicativo" >
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-checkbox-edit-allegato">
<%
Soggetto titolareDigitale = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(intPraticaId, user.getScreenName()).get(0);
%>
<aui:input type="checkbox" name="appSign" label='<%= LanguageUtil.format(pageContext, "label.firma-annullamento", titolareDigitale.getDescrizioneCompleta()) %>' />
</div>
</div>
<aui:button-row>
<aui:button name="signButton" cssClass="btn-success" type="submit" value="Firma" disabled="true"></aui:button>
</aui:button-row>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
</div> --%>
<aui:script use="aui-base"> <aui:script use="aui-base">
A.one("#<portlet:namespace/>appSignCheckbox").on('change', function (event) { A.one("#<portlet:namespace/>appSignCheckbox").on('change', function (event) {
var checked = event.currentTarget.get('checked'); var checked = event.currentTarget.get('checked');
@ -115,66 +70,70 @@
} }
}); });
</aui:script> </aui:script>
<%-- </aui:form> --%>
</c:if> </c:if>
<c:if test="<%= !intPratica.isAnnullata() && Validator.isNotNull(intPratica.getDocPraticaAnnullamentoId()) %>"> <c:if test="<%= !intPratica.isAnnullata() && Validator.isNotNull(intPratica.getDocPraticaAnnullamentoId()) %>">
<liferay-ui:error key="annullamento-fascicolo-not-checked" message="annullamento-fascicolo-not-checked" /> <liferay-ui:error key="annullamento-fascicolo-not-checked" message="annullamento-fascicolo-not-checked" />
<liferay-portlet:renderURL var="okURL"> <liferay-portlet:renderURL var="okURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dialogId" value="<%= dialogId %>" /> <liferay-portlet:param name="dialogId" value="<%= dialogId %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="completeAnnullamento" var="completeAnnullamentoURL"> <liferay-portlet:actionURL name="completeAnnullamento" var="completeAnnullamentoURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= okURL %>" /> <liferay-portlet:param name="redirect" value="<%= okURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<aui:form name="fm_abort" action="<%= completeAnnullamentoURL %>"> <aui:form name="fm_abort" action="<%= completeAnnullamentoURL %>">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dichiarazione-annullamento" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="dichiarazione-annullamento">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12"></div>
</div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-checkbox-edit-allegato"> <div class="col-xs-12 container-checkbox-edit-allegato">
<aui:input name ="confirmCheck" type="checkbox" <aui:input name ="confirmCheck" type="checkbox"
label='<%= MessageFormat.format(LanguageUtil.get(pageContext, "label.conferma-annullamento"), user.getFullName(), intPratica.getTitle(true)) %>'/> label='<%= MessageFormat.format(LanguageUtil.get(pageContext,
"label.conferma-annullamento"), user.getFullName(),
intPratica.getTitle(true)) %>'/>
<hr> <hr>
<div class="abort_file"> <div class="abort_file">
<h4 class="file-section-title">File Annullamento</h4> <h4 class="file-section-title">File Annullamento</h4>
<div class="container-section-file"> <div class="container-section-file">
<span class="fa fa-check-circle-o txt-green"></span> <span class="fa fa-check-circle-o txt-green"></span>
<% <%
DocPratica docAnnullamento = DocPraticaLocalServiceUtil.getDocPratica(intPratica.getDocPraticaAnnullamentoId()); DocPratica docAnnullamento = DocPraticaLocalServiceUtil.getDocPratica(
intPratica.getDocPraticaAnnullamentoId());
%> %>
<%-- <strong><%= fileEntry.getTitle() %></strong> --%>
<strong><%= docAnnullamento.getDescLong() %></strong> <strong><%= docAnnullamento.getDescLong() %></strong>
<liferay-ui:icon-menu icon="" showExpanded="true"
<liferay-ui:icon-menu icon="" showExpanded="<%=true %>" showWhenSingleIcon="<%=true%>"> showWhenSingleIcon="true">
<% <%
String downloadUrl = docAnnullamento.getDownloadUrl(themeDisplay); String downloadUrl = docAnnullamento.getDownloadUrl(themeDisplay);
%> %>
<div title="Scarica" class="tooltip-info"> <div title="Scarica" class="tooltip-info">
<liferay-ui:icon id='<%=renderResponse.getNamespace()+"download_"+intPratica.getDocPraticaAnnullamentoId() %>' <liferay-ui:icon
linkCssClass="btn btn-primary btn-action" iconCssClass="fa fa-download" url="<%=downloadUrl%>"/> id='<%= renderResponse.getNamespace() + "download_"
</div> + intPratica.getDocPraticaAnnullamentoId() %>'
<liferay-portlet:actionURL name="deleteFileAnnullamento" var="deleteDocURL"> linkCssClass="btn btn-primary btn-action"
<liferay-portlet:param name="docPraticaAnnullamentoId" value="<%=String.valueOf(intPratica.getDocPraticaAnnullamentoId())%>" /> iconCssClass="fa fa-download" url="<%=downloadUrl%>" />
</div>
<liferay-portlet:actionURL name="deleteFileAnnullamento"
var="deleteDocURL">
<liferay-portlet:param name="docPraticaAnnullamentoId"
value="<%= String.valueOf(intPratica
.getDocPraticaAnnullamentoId()) %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<div title="Cancella allegato" class="tooltip-info"> <div title="Cancella allegato" class="tooltip-info">
<liferay-ui:icon id='<%="delete_"+intPratica.getDocPraticaAnnullamentoId() %>' linkCssClass="btn btn-danger btn-action" iconCssClass="fa fa-trash" <liferay-ui:icon
url="javascript:void(0)"/> id='<%= "delete_" + intPratica
.getDocPraticaAnnullamentoId() %>'
linkCssClass="btn btn-danger btn-action"
iconCssClass="fa fa-trash" url="javascript:void(0)"/>
</div> </div>
<aui:script use="aui-base,aui-io-request"> <aui:script use="aui-base,aui-io-request">
A.one('<%="#"+renderResponse.getNamespace()+"delete_"+intPratica.getDocPraticaAnnullamentoId() %>').on( A.one('<%="#"+renderResponse.getNamespace()+"delete_"+intPratica.getDocPraticaAnnullamentoId() %>').on(
@ -199,16 +158,15 @@
} }
); );
</aui:script> </aui:script>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:button-row cssClass="pull-right"> <aui:button-row cssClass="pull-right">
<aui:button type="submit" value="Conferma Annullamento"></aui:button> <aui:button type="submit" value="Conferma Annullamento" />
</aui:button-row> </aui:button-row>
</div> </div>
</div> </div>
@ -220,33 +178,28 @@
</div> </div>
</aui:form> </aui:form>
<script type="text/javascript"> <script type="text/javascript">
YUI().use( YUI().use('aui-tooltip', function (Y) {
'aui-tooltip', new Y.TooltipDelegate({
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info', trigger: '.tooltip-info',
position: 'top', position: 'top',
cssClass: 'tooltip-help', cssClass: 'tooltip-help',
html: true, html: true,
opacity: 1 opacity: 1,
} });
); });
}
);
</script> </script>
</c:if> </c:if>
<c:if test="<%= intPratica.isAnnullata() %>"> <c:if test="<%= intPratica.isAnnullata() %>">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12 text-center"> <div class="col-sm-12 text-center">
<%= MessageFormat.format(LanguageUtil.get(pageContext, "label.annullamento-ok"), intPratica.getTitle(true)) %> <%= MessageFormat.format(LanguageUtil.get(pageContext, "label.annullamento-ok"), intPratica.getTitle(true)) %>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:button-row cssClass="pull-right"> <aui:button-row cssClass="pull-right">
<aui:button value="Chiudi" cssClass="btn" onClick='<%=renderResponse.getNamespace()+"closePopup()"%>'></aui:button> <aui:button value="Chiudi" cssClass="btn" onClick='<%=renderResponse.getNamespace()+"closePopup()"%>' />
</aui:button-row> </aui:button-row>
</div> </div>
</div> </div>
@ -254,19 +207,9 @@
</c:if> </c:if>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.provide( Liferay.provide(window, '<portlet:namespace />closePopup', function () {
window, Liferay.fire('closeWindow', {
'<portlet:namespace/>closePopup',
function() {
Liferay.fire(
'closeWindow',
{
id: '<%= dialogId %>' id: '<%= dialogId %>'
} });
); }, ['aui-base','liferay-util-window']);
},
['aui-base','liferay-util-window']
);
</aui:script> </aui:script>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/advanced_search.jsp

@ -1,7 +1,7 @@
<%@page import="it.tref.liferay.portos.bo.util.PortosIndexField"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.PortosIndexField"%>
<%@include file="/html/fascicolofe/init.jsp"%> <%@include file="/html/fascicolofe/init.jsp"%>
<liferay-ui:panel title="filters" defaultState="closed" <liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false" id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false"

32
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/delega_actions.jsp

@ -1,28 +1,22 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.model.Delega"%> <%@page import="it.tref.liferay.portos.bo.model.Delega"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
Delega delega = (Delega) row.getObject(); Delega delega = (Delega) row.getObject();
String backUrl = (String) request.getAttribute("back"); String backUrl = (String) request.getAttribute("back");
%> %>
<liferay-ui:icon-menu cssClass="menu_button_activity" showWhenSingleIcon="true" showExpanded="true">
<liferay-ui:icon-menu cssClass="menu_button_activity" showWhenSingleIcon="<%=true%>" showExpanded="<%= true %>">
<c:if test="<%= delega.getDtEsito() == null %>"> <c:if test="<%= delega.getDtEsito() == null %>">
<liferay-portlet:actionURL name="invioMailDelega" var="invioMailDelegaURL"> <liferay-portlet:actionURL name="invioMailDelega" var="invioMailDelegaURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" />
<liferay-portlet:param name="delegaId" value="<%= String.valueOf(delega.getDelegaId()) %>" /> <liferay-portlet:param name="delegaId" value="<%= String.valueOf(delega.getDelegaId()) %>" />
<liferay-portlet:param name="redirect" value="<%= currentURL %>" /> <liferay-portlet:param name="redirect" value="<%= currentURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<span class="tooltip-info" title="Invia Email"> <span class="tooltip-info" title="Invia Email">
<liferay-ui:icon url="<%=invioMailDelegaURL %>" iconCssClass="fa fa-envelope-o" linkCssClass="btn btn-primary btn-action no-taglib-text-icon"/> <liferay-ui:icon url="<%= invioMailDelegaURL %>" iconCssClass="fa fa-envelope-o"
linkCssClass="btn btn-primary btn-action no-taglib-text-icon"/>
</span> </span>
<liferay-portlet:renderURL var="redirectURL"> <liferay-portlet:renderURL var="redirectURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(delega.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(delega.getIntPraticaId()) %>" />
@ -34,28 +28,22 @@ String backUrl = (String)request.getAttribute("back");
<liferay-portlet:param name="redirect" value="<%= redirectURL %>" /> <liferay-portlet:param name="redirect" value="<%= redirectURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<span class="tooltip-info" title="Annulla Delega"> <span class="tooltip-info" title="Annulla Delega">
<liferay-ui:icon url="<%= annullaDelegaURL %>" iconCssClass="fa fa-close" linkCssClass="btn btn-action btn-danger no-taglib-text-icon"/> <liferay-ui:icon url="<%= annullaDelegaURL %>" iconCssClass="fa fa-close"
linkCssClass="btn btn-action btn-danger no-taglib-text-icon"/>
</span> </span>
</c:if> </c:if>
<c:if test="<%= delega.getDtEsito() != null %>"> <c:if test="<%= delega.getDtEsito() != null %>">
<span class="text-center" style="display:block">Nessuna azione disponibile</span> <span class="text-center" style="display:block">Nessuna azione disponibile</span>
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
<script type="text/javascript"> <script type="text/javascript">
YUI().use( YUI().use('aui-tooltip', function (Y) {
'aui-tooltip', new Y.TooltipDelegate({
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info', trigger: '.tooltip-info',
position: 'top', position: 'top',
cssClass: 'tooltip-help', cssClass: 'tooltip-help',
html: true, html: true,
opacity: 1 opacity: 1,
} });
); });
}
);
</script> </script>

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

@ -93,14 +93,14 @@
%> %>
<liferay-ui:header <liferay-ui:header
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>' title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>'
localizeTitle="<%= false %>" localizeTitle="false"
backURL="<%= backURL %>" backURL="<%= backURL %>"
/> />
</div> </div>
<c:if test="<%= !disabledEditing %>"> <c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-save" iconCssClass="fa fa-save"
@ -237,10 +237,10 @@
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>" > <aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>" >
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_PARZIALE)%>"> <c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_PARZIALE)%>">
<aui:option label='Parziale' value="<%= true %>" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/> <aui:option label='Parziale' value="true" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/>
</c:if> </c:if>
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_TOTALE)%>"> <c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_TOTALE)%>">
<aui:option label='Totale' value="<%= false %>" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/> <aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/>
</c:if> </c:if>
</aui:select> </aui:select>
</div> </div>
@ -301,7 +301,7 @@
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
@ -324,7 +324,7 @@
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Fine Lavori "+(fineLavori.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text> <liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Fine Lavori "+(fineLavori.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
@ -347,7 +347,7 @@
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Collaudo "+(collaudoParziale.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text> <liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Collaudo "+(collaudoParziale.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>

160
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fascicolo.jsp

@ -1,31 +1,19 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%> <%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@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.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.model.Delega"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.util.ArrayUtil"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
String backURL = ParamUtil.getString(request, "backURL"); String backURL = ParamUtil.getString(request, "backURL");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
String current_tab = ParamUtil.getString(request, "current_tab", StringPool.BLANK); String current_tab = ParamUtil.getString(request, "current_tab", StringPool.BLANK);
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl"); boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK);
DettPratica dettPratica = null; DettPratica dettPratica = null;
IntPratica intPratica = null; IntPratica intPratica = null;
if(dettPraticaId!=0l){ if (dettPraticaId != 0) {
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
intPraticaId = dettPratica.getIntPraticaId(); intPraticaId = dettPratica.getIntPraticaId();
@ -37,53 +25,32 @@
} }
dettPraticaId = dettPratica.getDettPraticaId(); dettPraticaId = dettPratica.getDettPraticaId();
} }
request.setAttribute("bean.dettPratica", dettPratica); request.setAttribute("bean.dettPratica", dettPratica);
String tipoIntegrazione = dettPratica.getTipoIntegrazione(); String tipoIntegrazione = dettPratica.getTipoIntegrazione();
request.setAttribute("bean.tipoIntegrazione", tipoIntegrazione); request.setAttribute("bean.tipoIntegrazione", tipoIntegrazione);
boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(), dettPratica.getDettPraticaId()); boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(), dettPratica.getDettPraticaId());
boolean geoDisabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),dettPratica.getDettPraticaId()) boolean geoDisabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(), dettPratica
|| !ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId()); .getDettPraticaId()) || !ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId());
String[] pageDatiDomanda = new String[] { "page_dettagli_principali", "page_soggetti", "page_desc_edificio", String[] pageDatiDomanda = new String[] { "page_dettagli_principali", "page_soggetti", "page_desc_edificio",
"page_geologica", "page_allegati", "page_asseverazioni_riepilogo" }; "page_geologica", "page_allegati", "page_asseverazioni_riepilogo" };
if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)) { if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)) {
pageDatiDomanda = Arrays.copyOf(pageDatiDomanda, pageDatiDomanda.length-1); pageDatiDomanda = Arrays.copyOf(pageDatiDomanda, pageDatiDomanda.length-1);
} }
String[][] categorySections = { pageDatiDomanda }; String[][] categorySections = { pageDatiDomanda };
String[] _CATEGORY_NAMES = { "cat_dati_domanda" }; String[] _CATEGORY_NAMES = { "cat_dati_domanda" };
%> %>
<liferay-portlet:actionURL name="saveDettPratica" var="saveDettPraticaURL" > <liferay-portlet:actionURL name="saveDettPratica" var="saveDettPraticaURL" >
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= backURL %>" /> <liferay-portlet:param name="backURL" value="<%= backURL %>" />
<liferay-portlet:param name="successURL" value="<%= currentURL %>" /> <liferay-portlet:param name="successURL" value="<%= currentURL %>" />
<liferay-portlet:param name="backgroundTaskActive" value="<%=String.valueOf(true) %>"/> <liferay-portlet:param name="backgroundTaskActive" value="true" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-portlet:actionURL name="saveTipoPratica" var="saveTipoPraticaURL" > <liferay-portlet:actionURL name="saveTipoPratica" var="saveTipoPraticaURL" >
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= backURL %>" /> <liferay-portlet:param name="backURL" value="<%= backURL %>" />
<liferay-portlet:param name="successURL" value="<%= currentURL %>" /> <liferay-portlet:param name="successURL" value="<%= currentURL %>" />
<liferay-portlet:param name="backgroundTaskActive" value="<%=String.valueOf(true) %>"/> <liferay-portlet:param name="backgroundTaskActive" value="true" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<aui:form name="fmDomande" onSubmit="preventDefault();" action="<%= Validator.isNull(tipoIntegrazione) ? saveDettPraticaURL : saveTipoPraticaURL %>">
<aui:model-context bean="<%=dettPratica %>" model="<%=DettPratica.class %>"></aui:model-context>
<aui:input type="hidden" name="bozza" />
<aui:input type="hidden" name="disabledSubmit" value="<%= disabledInput %>" />
<aui:input type="hidden" name="geoDisabledSubmit" value="<%= geoDisabledInput %>" />
<aui:input type="hidden" name="current_tab" value="<%=current_tab %>"/>
<aui:input type="hidden" name="tipoIntegrazione" value="<%= tipoIntegrazione %>" />
<liferay-util:buffer var="htmlTop"> <liferay-util:buffer var="htmlTop">
<c:if test="<%= dettPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE %>"> <c:if test="<%= dettPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE %>">
<%@include file="/html/fascicolofe/navigator/common/html_top.jspf"%> <%@include file="/html/fascicolofe/navigator/common/html_top.jspf"%>
@ -97,22 +64,19 @@
<%@include file="/html/fascicolofe/navigator/common/html_bottom.jspf"%> <%@include file="/html/fascicolofe/navigator/common/html_bottom.jspf"%>
</c:if> </c:if>
</liferay-util:buffer> </liferay-util:buffer>
<aui:form name="fmDomande" onSubmit="preventDefault();" action="<%= Validator.isNull(tipoIntegrazione) ?
<liferay-ui:form-navigator saveDettPraticaURL : saveTipoPraticaURL %>">
categoryNames="<%= _CATEGORY_NAMES %>" <aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" />
displayStyle="steps" <aui:input type="hidden" name="bozza" />
categorySections="<%= categorySections %>" <aui:input type="hidden" name="disabledSubmit" value="<%= disabledInput %>" />
formName="fmDomande" <aui:input type="hidden" name="geoDisabledSubmit" value="<%= geoDisabledInput %>" />
jspPath="/html/fascicolofe/navigator/domanda/" <aui:input type="hidden" name="current_tab" value="<%= current_tab %>" />
htmlBottom="<%=htmlBottom%>" <aui:input type="hidden" name="tipoIntegrazione" value="<%= tipoIntegrazione %>" />
showButtons="<%=false %>" <liferay-ui:form-navigator categoryNames="<%= _CATEGORY_NAMES %>" displayStyle="steps" formName="fmDomande"
htmlTop="<%=htmlTop%>" /> categorySections="<%= categorySections %>" jspPath="/html/fascicolofe/navigator/domanda/"
htmlBottom="<%= htmlBottom %>" showButtons="false" htmlTop="<%= htmlTop %>" />
</aui:form> </aui:form>
<c:if test="<%= openVerifyUrl && intPratica.getUserId()== user.getUserId() %>"> <c:if test="<%= openVerifyUrl && intPratica.getUserId()== user.getUserId() %>">
<c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<c:if test='<%= "verifyFascicolo".equalsIgnoreCase(verifyArea) %>'> <c:if test='<%= "verifyFascicolo".equalsIgnoreCase(verifyArea) %>'>
<portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
@ -121,17 +85,16 @@
<portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaFascicolo', id: '<portlet:namespace />openVerificaFascicolo',
title: 'Verifica Domanda', title: 'Verifica Domanda',
uri: '<%=verifyRenderURL%>' uri: '<%=verifyRenderURL%>',
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
<c:if test='<%= "verifyDeleghe".equalsIgnoreCase(verifyArea) %>'> <c:if test='<%= "verifyDeleghe".equalsIgnoreCase(verifyArea) %>'>
<liferay-portlet:renderURL var="verifyDelegheRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyDelegheRenderURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
@ -139,13 +102,11 @@
<liferay-portlet:param name="backVisible" value="false" /> <liferay-portlet:param name="backVisible" value="false" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaDeleghe', id: '<portlet:namespace />openVerificaDeleghe',
title: 'Gestione Deleghe', title: 'Gestione Deleghe',
uri: '<%=verifyDelegheRenderURL%>' uri: '<%=verifyDelegheRenderURL%>',
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
</c:if> </c:if>
@ -156,51 +117,45 @@
<portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaFascicolo', id: '<portlet:namespace />openVerificaFascicolo',
title: 'Verifica Cambio Soggetti', title: 'Verifica Cambio Soggetti',
uri: '<%=verifyRenderURL%>' uri: '<%=verifyRenderURL%>',
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= openVerifyUrl && DelegheUtil.canDoPayment(user.getUserId(), dettPraticaId) %>"> <c:if test="<%= openVerifyUrl && DelegheUtil.canDoPayment(user.getUserId(), dettPraticaId) %>">
<c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<c:if test='<%= "verifyPagamenti".equalsIgnoreCase(verifyArea) %>'> <c:if test='<%= "verifyPagamenti".equalsIgnoreCase(verifyArea) %>'>
<liferay-portlet:renderURL var="verifyPagamentiRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyPagamentiRenderURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= currentURL %>" /> <liferay-portlet:param name="backURL" value="<%= currentURL %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaFascicolo', id: '<portlet:namespace />openVerificaFascicolo',
title: 'Gestione Pagamenti', title: 'Gestione Pagamenti',
uri: '<%=verifyPagamentiRenderURL%>' uri: '<%=verifyPagamentiRenderURL%>',
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
</c:if> </c:if>
</c:if> </c:if>
<liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" /> <liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" />
<% <%
String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), "_"+PortletKeys.FASCICOLOFE+"_openVerifyUrl"); String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), StringPool.UNDERLINE + PortletKeys.FASCICOLOFE
+ "_openVerifyUrl");
%> %>
<aui:script use="aui-base"> <aui:script use="aui-base">
var verifyPopupReady = false; var verifyPopupReady = false;
Liferay.on('popupReady',function(event) {
Liferay.on('popupReady', function (event) {
var modalName = event._event.details[0].windowName; var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName); var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function (event) { modalWin.after('visibleChange', function (event) {
Loading.start(); Loading.start();
if (event.prevVal && verifyPopupReady) { if (event.prevVal && verifyPopupReady) {
@ -223,17 +178,13 @@
Loading.end(); Loading.end();
}); });
}); });
Liferay.on('verifyPopup-ready', function (event) { Liferay.on('verifyPopup-ready', function (event) {
verifyPopupReady = true; verifyPopupReady = true;
}); });
</aui:script> </aui:script>
<script>
<script type="text/javascript"> Liferay.provide(window, 'saveDettPratica', function (bozza, cmd, area) {
Liferay.provide(
window,
'saveDettPratica',
function(bozza, cmd, area) {
Loading.start(); Loading.start();
AUI().one('#<portlet:namespace />bozza').set('value', bozza); AUI().one('#<portlet:namespace />bozza').set('value', bozza);
AUI().one('#<portlet:namespace />cmd').set('value', cmd); AUI().one('#<portlet:namespace />cmd').set('value', cmd);
@ -241,51 +192,38 @@
AUI().one('#<portlet:namespace />verifyArea').set('value', area); AUI().one('#<portlet:namespace />verifyArea').set('value', area);
} }
submitForm(document.<portlet:namespace />fmDomande); submitForm(document.<portlet:namespace />fmDomande);
}, }, ['aui-base']);
['aui-base']
); Liferay.on('portletReady', function (event) {
// ADT BUG FE ID = 14
Liferay.on(
'portletReady',
function(event) {
$("#isBottomBar").hide(); $("#isBottomBar").hide();
$("#isTopBar").hide(); $("#isTopBar").hide();
$('[id*="_portosfeportlet_verificaDiv_"]').hide(); $('[id*="_portosfeportlet_verificaDiv_"]').hide();
var queryParams = window.location.search.substr(1).split('&').reduce(function (q, query) { var queryParams = window.location.search.substr(1).split('&').reduce(function (q, query) {
var chunks = query.split('='); var chunks = query.split('=');
var key = chunks[0]; var key = chunks[0];
var value = chunks[1]; var value = chunks[1];
return (q[key] = value, q); return (q[key] = value, q);
}, {}); }, {});
var saveAndVerify = "false"; var saveAndVerify = "false";
for (var property in queryParams) { for (var property in queryParams) {
if (queryParams.hasOwnProperty(property) && if (queryParams.hasOwnProperty(property) && property.toString().endsWith("saveAndVerify")) {
property.toString().endsWith("saveAndVerify")) {
saveAndVerify = queryParams[property]; saveAndVerify = queryParams[property];
} }
} }
if (saveAndVerify === "true") { if (saveAndVerify === "true") {
//$("[name='bodyVerifyPopUp']").show();
$("#isTopBar").show(); $("#isTopBar").show();
$("#isBottomBar").hide(); $("#isBottomBar").hide();
$('[id*="_portosfeportlet_verificaDiv_"]').show(); $('[id*="_portosfeportlet_verificaDiv_"]').show();
} }
} });
);
</script> </script>
<aui:script use="aui-base"> <aui:script use="aui-base">
A.one('#<portlet:namespace/>tabsBoundingBox').delegate( A.one('#<portlet:namespace />tabsBoundingBox').delegate('click', function (event) {
'click',
function(event){
var nodeObject = event.currentTarget; var nodeObject = event.currentTarget;
A.one('#<portlet:namespace />current_tab').set('value', nodeObject.attr('data-sectionid')); A.one('#<portlet:namespace />current_tab').set('value', nodeObject.attr('data-sectionid'));
}, }, 'li.tab');
'li.tab');
var current_tab = '<%=current_tab%>';
var current_tab = '<%=current_tab%>';
if (current_tab != '' && document.location.hash == '') { if (current_tab != '' && document.location.hash == '') {
document.location.hash='_1_WAR_portosfeportlet_tab=<%=current_tab%>'; document.location.hash='_1_WAR_portosfeportlet_tab=<%=current_tab%>';
} }

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

@ -92,14 +92,14 @@
%> %>
<liferay-ui:header <liferay-ui:header
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>' title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>'
localizeTitle="<%= false %>" localizeTitle="false"
backURL="<%= backURL %>" backURL="<%= backURL %>"
/> />
</div> </div>
<c:if test="<%= !disabledEditing %>"> <c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-save" iconCssClass="fa fa-save"
@ -224,15 +224,15 @@
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoFineLavori" showEmptyOption="true" disabled="<%= disabledEditing %>" > <aui:select label="" name="tipoFineLavori" showEmptyOption="true" disabled="<%= disabledEditing %>" >
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE)%>"> <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE)%>">
<aui:option label='Parziale' value="<%= true %>" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/> <aui:option label='Parziale' value="true" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/>
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE)%>"> <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE)%>">
<aui:option label='Totale' value="<%= false %>" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/> <aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/>
</c:if> </c:if>
<c:if test="<%= !AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE) && <c:if test="<%= !AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE) &&
!AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE) %>"> !AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE) %>">
<aui:option label='Parziale' disabled="<%= true %>" value="<%= true %>" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/> <aui:option label='Parziale' disabled="true" value="true" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/>
<aui:option label='Totale' disabled="<%= true %>" value="<%= false %>" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/> <aui:option label='Totale' disabled="true" value="false" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/>
</c:if> </c:if>
</aui:select> </aui:select>
</div> </div>
@ -292,7 +292,7 @@
String contentId = "dettagliContent_"+index; String contentId = "dettagliContent_"+index;
String titleId = "Dettagli "+tipoIntegrazione+" #"+dettPraticaExtra.getDettPraticaId(); String titleId = "Dettagli "+tipoIntegrazione+" #"+dettPraticaExtra.getDettPraticaId();
%> %>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
id='<%=buttonId %>' id='<%=buttonId %>'
iconCssClass="fa fa-info-circle" iconCssClass="fa fa-info-circle"
@ -356,7 +356,7 @@
</c:if> --%> </c:if> --%>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
@ -379,7 +379,7 @@
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Fine Lavori "+ (fineLavoriParziale.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text> <liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Fine Lavori "+ (fineLavoriParziale.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>

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

@ -3,7 +3,6 @@
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<%@ include file="/html/fascicolofe/navigator/common/save_actions.jspf" %> <%@ include file="/html/fascicolofe/navigator/common/save_actions.jspf" %>
<!-- ADT BUG FE ID = 14 -->
<c:set var="isBar" value="isBottomBar" scope="session"/> <c:set var="isBar" value="isBottomBar" scope="session"/>
</div> </div>
</div> </div>

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

@ -1,5 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<style type="text/css"> <style type="text/css">
.anteprimaasseverazione h1 { .anteprimaasseverazione h1 {
font-size: 14px; font-size: 14px;
@ -26,7 +27,7 @@
<portlet:renderURL var="baseViewUrl" copyCurrentRenderParameters="false"> <portlet:renderURL var="baseViewUrl" copyCurrentRenderParameters="false">
<portlet:param name="mvcPath" value="/html/fascicolofe/view.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/view.jsp" />
</portlet:renderURL> </portlet:renderURL>
<div class="col-xs-7 col-sm-7 col-md-7 col-lg-7"> <div class="col-xs-7">
<% <%
String label = StringPool.BLANK; String label = StringPool.BLANK;
String number = StringPool.BLANK; String number = StringPool.BLANK;
@ -43,16 +44,12 @@
} }
String message = LanguageUtil.get(pageContext, label); String message = LanguageUtil.get(pageContext, label);
%> %>
<liferay-ui:header <liferay-ui:header title='<%= message + " #" + dettPratica.getTitle() %>' localizeTitle="false"
title='<%= message+" #"+dettPratica.getTitle() %>' backURL="<%= Validator.isNotNull(backURL) ? backURL : baseViewUrl %>" />
localizeTitle="<%= false %>"
backURL="<%= Validator.isNotNull(backURL)?backURL:baseViewUrl %>"
/>
</div> </div>
<c:if test="<%= dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT %>"> <c:if test="<%= dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT %>">
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-5 container_action-top"> <div class="col-xs-5 container_action-top">
<%@ include file="/html/fascicolofe/navigator/common/save_actions.jspf" %> <%@ include file="/html/fascicolofe/navigator/common/save_actions.jspf" %>
<!-- ADT BUG FE ID = 14 -->
<c:set var="isBar" value="isTopBar" scope="session"/> <c:set var="isBar" value="isTopBar" scope="session"/>
</div> </div>
</c:if> </c:if>

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

@ -1,50 +1,46 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="java.util.List"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AsseverazioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%> <%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<div class="container-fluid clearfix"> <div class="container-fluid clearfix">
<div class="row"> <div class="row">
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9"> <div class="col-xs-9">
<liferay-ui:header <liferay-ui:header
title='<%= LanguageUtil.get(pageContext, (Validator.isNull(dettPraticaId) ? "new-fascicolo" : "edit-fascicolo")) %>' title='<%= LanguageUtil.get(pageContext, (Validator.isNull(dettPraticaId) ? "new-fascicolo"
localizeTitle="<%= false %>" : "edit-fascicolo")) %>'
backURL="<%= backURL %>" localizeTitle="false" backURL="<%= backURL %>" />
/>
</div> </div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3">
<div class="pull-right" > <div class="pull-right" >
<% <%
String formName = "fmDomande"; String formName = "fmDomande";
String buttonId = "fmbuttonsalvaconferma"; String buttonId = "fmbuttonsalvaconferma";
%> %>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
<c:if test="<%= intPratica.getUserId() == user.getUserId() || dettPratica.getUserId() == user.getUserId() || DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>"> cssClass="inline_toolbar">
<c:if test="<%= intPratica.getUserId() == user.getUserId()
<liferay-portlet:renderURL var="calcolaURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> || dettPratica.getUserId() == user.getUserId()
|| DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>">
<liferay-portlet:renderURL var="calcolaURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/> <liferay-portlet:param name="mvcPath"
value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"btn btn-primary":"btn btn-primary disabled" %>' linkCssClass='<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ?
iconCssClass="fa fa-cogs" "btn btn-primary" : "btn btn-primary disabled" %>'
useDialog = "true" iconCssClass="fa fa-cogs" useDialog = "true"
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPratica.getDettPraticaId())>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>' message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPratica
url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?calcolaURL:StringPool.DASH %>" .getDettPraticaId()) > 0 ? LanguageUtil.get(pageContext, "dati-pagamento")
/> : LanguageUtil.get(pageContext, "calcola-importo") %>'
url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ? calcolaURL
: StringPool.DASH %>" />
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>

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

@ -1,28 +1,28 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%> <%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="javax.portlet.PortletResponse"%>
<%@page import="com.liferay.portal.model.Portlet"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.SezioniUtil"%>
<%@page import="java.util.ArrayList"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%> <%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="java.util.List"%> <%@page import="it.tref.liferay.portos.bo.model.Delega"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.SezioniUtil"%>
<%@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.AsseverazioniUtil"%> <%@page import="it.tref.liferay.portos.bo.util.AsseverazioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%> <%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<div class="pull-right" > <div class="pull-right" >
<% <%
String randomId = StringUtil.randomId(); String randomId = StringUtil.randomId();
@ -34,15 +34,10 @@
"if (el_relazioni.length) {" + "if (el_relazioni.length) {" +
"var el_coniugio = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]');" + "var el_coniugio = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]');" +
"var el_coniugiochk = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]:checked');" + "var el_coniugiochk = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]:checked');" +
"console.log('length: ' + el_relazioni.length);" +
"var err_coniugio = (el_coniugiochk.length == 0);" + "var err_coniugio = (el_coniugiochk.length == 0);" +
"var err_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));" + "var err_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));" +
"el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});" + "el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});" +
"el_relazioni.css({'border-color':(err_relazioni ?'#a94442' : '#ccc')});" + "el_relazioni.css({'border-color':(err_relazioni ?'#a94442' : '#ccc')});" +
"if (err_coniugio || err_relazioni) {" + "if (err_coniugio || err_relazioni) {" +
"$('#" + renderResponse.getNamespace() + "{{prefix}}SaveAndCloseDiv_" + randomId + "').parent().scrollTop(0);" + "$('#" + renderResponse.getNamespace() + "{{prefix}}SaveAndCloseDiv_" + randomId + "').parent().scrollTop(0);" +
"return false;" + "return false;" +
@ -52,54 +47,29 @@
%> %>
<aui:input type="hidden" name="<%= Constants.CMD %>" value="" /> <aui:input type="hidden" name="<%= Constants.CMD %>" value="" />
<aui:input type="hidden" name="verifyArea" value="" /> <aui:input type="hidden" name="verifyArea" value="" />
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<c:if test="<%= intPratica.getUserId() == user.getUserId()%>"> <c:if test="<%= intPratica.getUserId() == user.getUserId()%>">
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza" url="javascript:saveDettPratica(true)"
iconCssClass="fa fa-save" linkCssClass="btn" />
message="salva-bozza"
url="javascript:saveDettPratica(true);"
linkCssClass="btn"
/>
</c:if> </c:if>
<c:if test="<%= intPratica.getUserId() == user.getUserId() <c:if test="<%= intPratica.getUserId() == user.getUserId()
&& !DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) && !DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId)
&& !AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), dettPraticaId) %>"> && !AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), dettPraticaId) %>">
<liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-verifica" linkCssClass="btn btn-primary"
<liferay-ui:icon url="javascript:saveDettPratica(false, 'domanda', 'verifyFascicolo')" />
iconCssClass="fa fa-check-square"
message="salva-verifica"
url="javascript:saveDettPratica(false, 'domanda', 'verifyFascicolo');"
linkCssClass="btn btn-primary"
/>
</c:if> </c:if>
<c:if test="<%= DelegheUtil.canCompilaDomanda(user.getUserId(), dettPraticaId) %>"> <c:if test="<%= DelegheUtil.canCompilaDomanda(user.getUserId(), dettPraticaId) %>">
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-users"
iconCssClass="fa fa-users" linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId) ? "btn"
linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?"btn":"btn disabled" %>' :"btn disabled" %>'
message="gestione-deleghe" message="gestione-deleghe" url="javascript:saveDettPratica(false, 'domanda', 'verifyDeleghe')" />
url="javascript:saveDettPratica(false, 'domanda', 'verifyDeleghe');"
/>
</c:if> </c:if>
<c:if test="<%= DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>"> <c:if test="<%= DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>">
<% <%
boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese(); boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese();
boolean isIntegrazione = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE); boolean isIntegrazione = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil
%> .RICHIESTA_INTEGRAZIONE);
<%-- <c:if test="<%= !isEsente && !isIntegrazione && DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>">
<liferay-ui:icon
iconCssClass="fa fa-cogs"
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"btn btn-primary":"btn btn-primary disabled" %>'
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId)>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>'
url="javascript:saveDettPratica(false, 'domanda', 'verifyPagamenti');"
/>
</c:if> --%>
<%
Map<String,Object> dataMap = new HashMap<String, Object>(); Map<String,Object> dataMap = new HashMap<String, Object>();
dataMap.put("id", renderResponse.getNamespace() + "openVerificaFascicolo"); dataMap.put("id", renderResponse.getNamespace() + "openVerificaFascicolo");
%> %>
@ -110,212 +80,230 @@
<liferay-portlet:param name="comingFrom" value="domanda" /> <liferay-portlet:param name="comingFrom" value="domanda" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<c:if test="<%= isIntegrazione %>"> <c:if test="<%= isIntegrazione %>">
<liferay-portlet:actionURL name="completeIntegrazione" var="completeIntegrazioneURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:actionURL name="completeIntegrazione" var="completeIntegrazioneURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= completedURL %>" /> <liferay-portlet:param name="redirect" value="<%= completedURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon <liferay-ui:icon linkCssClass='<%= ValidazionePraticaUtil.canCompleteIntegrazione(dettPraticaId) ?
linkCssClass='<%= ValidazionePraticaUtil.canCompleteIntegrazione(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>' "btn btn-primary" : "btn btn-primary disabled" %>'
iconCssClass="fa fa-check" iconCssClass="fa fa-check" message="Concludi Integrazione" url="<%= completeIntegrazioneURL %>"
message="Concludi Integrazione" data="<%= dataMap %>" />
url="<%= completeIntegrazioneURL %>"
data="<%= dataMap %>"
/>
</c:if> </c:if>
<c:if test="<%= !isIntegrazione %>"> <c:if test="<%= !isIntegrazione %>">
<c:if test="<%= isEsente %>"> <c:if test="<%= isEsente %>">
<liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= completedURL %>" /> <liferay-portlet:param name="redirect" value="<%= completedURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>' linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?
iconCssClass="fa fa-check" "btn btn-primary" : "btn btn-primary disabled" %>'
useDialog="<%= true %>" iconCssClass="fa fa-check" useDialog="true" message="Concludi Domanda"
message="Concludi Domanda" url="<%= completeDomandaEsenteURL %>" data="<%= dataMap %>" />
url="<%= completeDomandaEsenteURL %>"
data="<%= dataMap %>"
/>
</c:if> </c:if>
<c:if test="<%= !isEsente %>"> <c:if test="<%= !isEsente %>">
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-cogs"
iconCssClass="fa fa-cogs" linkCssClass='<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ?
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"btn btn-primary":"btn btn-primary disabled" %>' "btn btn-primary" : "btn btn-primary disabled" %>'
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId)>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>' message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId) > 0 ?
url="javascript:saveDettPratica(false, 'domanda', 'verifyPagamenti');" LanguageUtil.get(pageContext, "dati-pagamento")
data="<%= dataMap %>" : LanguageUtil.get(pageContext, "calcola-importo") %>'
/> url="javascript:saveDettPratica(false, 'domanda', 'verifyPagamenti')"
data="<%= dataMap %>" />
</c:if> </c:if>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) &&
<c:if test="<%=DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) && !DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>"> !DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>">
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-save" message="save" url="javascript:saveDettPratica(true)"
iconCssClass="fa fa-save" linkCssClass="btn" />
message="save"
url="javascript:saveDettPratica(true);"
linkCssClass="btn"
/>
<% <%
long delegaId = ParamUtil.getLong(request, "delegaId"); long delegaId = ParamUtil.getLong(request, "delegaId");
Delega delega = DelegaLocalServiceUtil.getDelega(delegaId); Delega delega = DelegaLocalServiceUtil.getDelega(delegaId);
boolean validated = true; boolean validated = true;
StringBuilder tooltipSection = new StringBuilder(); StringBuilder tooltipSection = new StringBuilder();
if (delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO)) { if (delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO)) {
//List<String> notCompleted = ValidazionePraticaUtil.notCompletedSection(SezioniUtil.SEZIONE_GEOLOGICA, dettPraticaId);
List<String> notCompleted = ValidazionePraticaUtil.notCompletedSezioneGeologica(dettPraticaId); List<String> notCompleted = ValidazionePraticaUtil.notCompletedSezioneGeologica(dettPraticaId);
if (!notCompleted.isEmpty()) { if (!notCompleted.isEmpty()) {
validated = false; validated = false;
tooltipSection.append("<ul class='list-body-modal'>"); tooltipSection.append("<ul class='list-body-modal'>");
for (String incomplete : notCompleted) { for (String incomplete : notCompleted) {
tooltipSection.append("<li class='item-body-modal'>"+LanguageUtil.get(pageContext, incomplete)+"</li>"); tooltipSection.append("<li class='item-body-modal'>")
.append(LanguageUtil.get(pageContext, incomplete)).append("</li>");
} }
tooltipSection.append("</ul>"); tooltipSection.append("</ul>");
} }
} }
%> %>
<c:if test="<%= !validated %>"> <c:if test="<%= !validated %>">
<% <%
String buttonIdVerifica = "fmbuttonverifica_" + randomId; String buttonIdVerifica = "fmbuttonverifica_" + randomId;
%> %>
<!-- ADT BUG FE ID = 14 --> <liferay-ui:icon id="<%= buttonIdVerifica %>" iconCssClass="fa fa-times-circle txt-red"
<liferay-ui:icon message="verifica-delega" url="javascript:saveDettPratica(true,'saveAndVerify')"
id="<%= buttonIdVerifica %>" linkCssClass="btn" />
iconCssClass="fa fa-times-circle txt-red"
message="verifica-delega"
url="javascript:saveDettPratica(true,'saveAndVerify');"
linkCssClass="btn"
/>
<!-- ADT BUG FE ID = 14 -->
<div id="${isBar}" hidden> <div id="${isBar}" hidden>
<liferay-util:include page="/html/common/submit_window_delega.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/submit_window_delega.jsp"
<liferay-util:param name="titolo" value="Validazione Sezione Geologia"></liferay-util:param> servletContext="<%= application %>">
<liferay-util:param name="headerCSS" value="display-inline"></liferay-util:param> <liferay-util:param name="titolo" value="Validazione Sezione Geologia" />
<liferay-util:param name="contentDiv" value='<%= "verificaDiv_"+randomId %>'></liferay-util:param> <liferay-util:param name="headerCSS" value="display-inline" />
<liferay-util:param name="buttonId" value="<%=buttonIdVerifica %>"></liferay-util:param> <liferay-util:param name="contentDiv" value='<%= "verificaDiv_" + randomId %>' />
<liferay-util:param name="buttonAnnulla" value="Chiudi"></liferay-util:param> <liferay-util:param name="buttonId" value="<%= buttonIdVerifica %>" />
<liferay-util:param name="okVisible" value="false"></liferay-util:param> <liferay-util:param name="buttonAnnulla" value="Chiudi" />
<liferay-util:param name="width" value="500"></liferay-util:param> <liferay-util:param name="okVisible" value="false" />
<liferay-util:param name="height" value="320"></liferay-util:param> <liferay-util:param name="width" value="500" />
<liferay-util:param name="height" value="320" />
</liferay-util:include> </liferay-util:include>
<div hidden id='<%= renderResponse.getNamespace() + "verificaDiv_" + randomId %>'
<div hidden id='<%=renderResponse.getNamespace()+"verificaDiv_"+randomId %>' class="text-center" > class="text-center" >
<h4 class="txt-bold text-center">Sezione Geologia incompleta:</h4> <h4 class="txt-bold text-center">Sezione Geologia incompleta:</h4>
<%= tooltipSection.toString() %> <%= tooltipSection.toString() %>
</div> </div>
</div> </div>
</c:if> </c:if>
<c:if test="<%= validated && DelegheUtil.TIPO_GEOLOGO.equalsIgnoreCase(delega.getTipologia()) %>"> <c:if test="<%= validated && DelegheUtil.TIPO_GEOLOGO.equalsIgnoreCase(delega.getTipologia()) %>">
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-check-circle txt-green" message="verifica-delega"
iconCssClass="fa fa-check-circle txt-green" url="javascript:void(0)" linkCssClass="btn disabled" />
message="verifica-delega"
url="javascript:void(0)"
linkCssClass="btn disabled"
/>
</c:if> </c:if>
<span class="<%= validated ? StringPool.BLANK : "tooltip-info" %>" title="Delega incompleta">
<span class="<%= !validated ? "tooltip-info" : StringPool.BLANK %>" title="Delega incompleta"> <liferay-ui:icon id="<%= buttonId %>" iconCssClass="fa fa-check-circle" message="concludi-delega"
<liferay-ui:icon
id="<%=buttonId %>"
iconCssClass="fa fa-check-circle"
message="concludi-delega"
url="javascript:void(0)" url="javascript:void(0)"
linkCssClass='<%= !validated ? "btn btn-primary disabled" : "btn btn-primary" %>' linkCssClass='<%= validated ? "btn btn-primary" : "btn btn-primary disabled" %>' />
/>
</span> </span>
<c:if test="<%= validated %>"> <c:if test="<%= validated %>">
<div id='<%= renderResponse.getNamespace()+"dgSaveAndCloseDiv_" + randomId %>' class="hide" > <div id='<%= renderResponse.getNamespace()+"dgSaveAndCloseDiv_" + randomId %>' class="hide" >
<span> <span>
<c:choose> <c:choose>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_TOTALE) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>"> <c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_TOTALE)
<%= LanguageUtil.format(pageContext, "confirm-delega-totale", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %> && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-totale",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when> </c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_COMPILAZIONE) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>"> <c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_COMPILAZIONE)
<%= LanguageUtil.format(pageContext, "confirm-delega-compilazione", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %> && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-compilazione",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when> </c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>"> <c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO)
&& delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<input type="hidden" name="_<%= PortletKeys.FASCICOLOFE %>_dgPresenti" value="1" /> <input type="hidden" name="_<%= PortletKeys.FASCICOLOFE %>_dgPresenti" value="1" />
Dichiara<br> Dichiara<br>
<label><input required type="radio" name="_<%= PortletKeys.FASCICOLOFE %>_dgConiugio" onclick="$('#<portlet:namespace />dgrelazioni').hide()" value="0" /> di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento.</label><br> <label><input required type="radio" name="_<%= PortletKeys.FASCICOLOFE %>_dgConiugio"
<label><input type="radio" name="_<%= PortletKeys.FASCICOLOFE %>_dgConiugio" onclick="$('#<portlet:namespace />dgrelazioni').show()" value="1" /> di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti dipendenti dell'Ufficio deputato alla trattazione del procedimento (indicare un nominativo per riga).</label> onclick="$('#<portlet:namespace />dgrelazioni').hide()" value="0" /> di
<textarea id="<portlet:namespace />dgrelazioni" name="_<%= PortletKeys.FASCICOLOFE %>_dgRelazioni" style="display:none"></textarea> non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del
convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio
deputato alla trattazione del procedimento.</label><br>
<label><input type="radio" name="_<%= PortletKeys.FASCICOLOFE %>_dgConiugio"
onclick="$('#<portlet:namespace />dgrelazioni').show()" value="1" /> di
trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i
seguenti dipendenti dell'Ufficio deputato alla trattazione del procedimento
(indicare un nominativo per riga).</label>
<textarea id="<portlet:namespace />dgrelazioni" name="_<%= PortletKeys.FASCICOLOFE %>_dgRelazioni"
style="display:none"></textarea>
<hr> <hr>
<div class="anteprimaasseverazione"><%= AsseverazioneLocalServiceUtil.anteprimaAsseverazione(TipoSoggettoUtil.GEOLOGO, user, dettPratica, null) %></div> <div class="anteprimaasseverazione"><%= AsseverazioneLocalServiceUtil
.anteprimaAsseverazione(TipoSoggettoUtil.GEOLOGO, user, dettPratica, null) %></div>
</c:when> </c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>"> <c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI)
<%= LanguageUtil.format(pageContext, "confirm-delega-firma-inserimento", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %> && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-firma-inserimento",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when> </c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_FINE_LAVORI) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>"> <c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_FINE_LAVORI)
<%= LanguageUtil.format(pageContext, "confirm-delega-fine-lavori", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %> && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-fine-lavori",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when> </c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_VISUALIZZAZIONE) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>"> <c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_VISUALIZZAZIONE)
<%= LanguageUtil.format(pageContext, "confirm-delega-visualizzazione", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %> && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-visualizzazione",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when> </c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_COLLAUDO) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>"> <c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_COLLAUDO)
<%= LanguageUtil.format(pageContext, "confirm-delega-collaudo", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %> && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-collaudo",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when> </c:when>
</c:choose> </c:choose>
</span> </span>
</div> </div>
<liferay-portlet:resourceURL id="isCompletedDelegaGeologo" var="isCompletedDelegaGeologoURL" /> <liferay-portlet:resourceURL id="isCompletedDelegaGeologo" var="isCompletedDelegaGeologoURL" />
<% <%
String function = "A.io.request('"+isCompletedDelegaGeologoURL+"',{data: {"+renderResponse.getNamespace()+"classPk: "+dettPraticaId+"},"+ String function = "A.io.request('" + isCompletedDelegaGeologoURL + "'," +
"dataType: 'json',on: {success: function(event, id, obj) {console.log(this.get('responseData'));var response = this.get('responseData');"+ "{data: {" + renderResponse.getNamespace()+"classPk: "+dettPraticaId+"}," +
"console.log(response.isCompleted);"+ "dataType: 'json'," +
"if(!response.isCompleted){var body = A.one('#"+renderResponse.getNamespace()+"dgSaveAndCloseDiv_"+randomId+"');"+ "on: {" +
"success: function (event, id, obj) {" +
"var response = this.get('responseData');" +
"if (!response.isCompleted) {" +
"var body = A.one('#" + renderResponse.getNamespace() + "dgSaveAndCloseDiv_" + randomId + "');" +
"body.html('<p class=\"text-center\">Delega incompleta<a href=\"javascript:void(0)\" class=\"btn btn-success\" style=\"margin-bottom:20px\" onclick=\"window.location.reload()\">Refresh</a></p>');" + "body.html('<p class=\"text-center\">Delega incompleta<a href=\"javascript:void(0)\" class=\"btn btn-success\" style=\"margin-bottom:20px\" onclick=\"window.location.reload()\">Refresh</a></p>');" +
"body.ancestor('.modal-body').next('.modal-footer').remove();return;}"+ "body.ancestor('.modal-body').next('.modal-footer').remove();" +
"}, complete: function(event){A.one('#"+renderResponse.getNamespace()+"dgSaveAndCloseDiv_"+randomId+"').show();modal.show();}"+ "return;" +
"}"+
"}," +
"complete: function (event) {" +
"A.one('#" + renderResponse.getNamespace() + "dgSaveAndCloseDiv_" + randomId + "').show();" +
"modal.show();" +
"}" +
"}});"; "}});";
%> %>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="formName" value="<%= formName %>"></liferay-util:param> <liferay-util:param name="formName" value="<%= formName %>" />
<liferay-util:param name="onClick" value="<%= script.replace(\"{{prefix}}\", \"dg\").replace(\"{{type}}\", \"delega\") %>"></liferay-util:param> <liferay-util:param name="onClick"
<liferay-util:param name="titolo" value="Conclusione Delega"></liferay-util:param> value="<%= script.replace(\"{{prefix}}\", \"dg\").replace(\"{{type}}\", \"delega\") %>" />
<liferay-util:param name="contentDiv" value='<%= "dgSaveAndCloseDiv_"+randomId %>'></liferay-util:param> <liferay-util:param name="titolo" value="Conclusione Delega" />
<liferay-util:param name="buttonId" value="<%=buttonId %>"></liferay-util:param> <liferay-util:param name="contentDiv" value='<%= "dgSaveAndCloseDiv_" + randomId %>' />
<liferay-util:param name="buttonConferma" value="Conferma"></liferay-util:param> <liferay-util:param name="buttonId" value="<%= buttonId %>" />
<liferay-util:param name="width" value="500"></liferay-util:param> <liferay-util:param name="buttonConferma" value="Conferma" />
<liferay-util:param name="height" value="320"></liferay-util:param> <liferay-util:param name="width" value="500" />
<liferay-util:param name="height" value="320" />
<c:if test='<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO) %>'> <c:if test='<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO) %>'>
<liferay-util:param name="function" value="<%= function %>"></liferay-util:param> <liferay-util:param name="function" value="<%= function %>" />
</c:if> </c:if>
</liferay-util:include> </liferay-util:include>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%=AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), intPraticaId) %>"> <c:if test="<%=AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), intPraticaId) %>">
<liferay-ui:icon <liferay-ui:icon id="<%= buttonAsseverazioneId %>" iconCssClass="fa fa-save" message="Assevera" url="#"
id="<%=buttonAsseverazioneId %>" linkCssClass="btn btn-primary" />
iconCssClass="fa fa-save"
message="Assevera"
url="#"
linkCssClass="btn btn-primary"
/>
<div id='<%= renderResponse.getNamespace() + "asSaveAndCloseDiv_" + randomId %>' class="hide"> <div id='<%= renderResponse.getNamespace() + "asSaveAndCloseDiv_" + randomId %>' class="hide">
<input type="hidden" name="_<%= PortletKeys.FASCICOLOFE %>_asPresenti" value="1" /> <input type="hidden" name="_<%= PortletKeys.FASCICOLOFE %>_asPresenti" value="1" />
<label><input required type="radio" name="_<%= PortletKeys.FASCICOLOFE %>_asConiugio" onclick="$('#<portlet:namespace />asrelazioni').hide()" value="0" /> di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento.</label><br> <label><input required type="radio" name="_<%= PortletKeys.FASCICOLOFE %>_asConiugio"
<label><input type="radio" name="_<%= PortletKeys.FASCICOLOFE %>_asConiugio" onclick="$('#<portlet:namespace />asrelazioni').show()" value="1" /> di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti dipendenti dell'Ufficio deputato alla trattazione del procedimento (indicare un nominativo per riga).</label> onclick="$('#<portlet:namespace />asrelazioni').hide()" value="0" /> di non trovarsi in
<textarea id="<portlet:namespace />asrelazioni" name="_<%= PortletKeys.FASCICOLOFE %>_asRelazioni" style="display:none"></textarea> rapporti di coniugio, parentela o affinità, del coniuge o del convivente, entro il 2° grado,
con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento.</label>
<br>
<label><input type="radio" name="_<%= PortletKeys.FASCICOLOFE %>_asConiugio"
onclick="$('#<portlet:namespace />asrelazioni').show()" value="1" /> di trovarsi in
rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti dipendenti
dell'Ufficio deputato alla trattazione del procedimento (indicare un nominativo per riga).</label>
<textarea id="<portlet:namespace />asrelazioni" name="_<%= PortletKeys.FASCICOLOFE %>_asRelazioni"
style="display:none"></textarea>
<hr> <hr>
<ol class="asseverazioni-list"> <ol class="asseverazioni-list">
<% <%
List<Asseverazione> asseverazioni = AsseverazioneServiceUtil.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, user.getScreenName(), new String[] {DelegheUtil.STATO_ASSEGNATA}, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); List<Asseverazione> asseverazioni = AsseverazioneServiceUtil
.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, user.getScreenName(),
new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null);
for (Asseverazione asseverazione : asseverazioni) { for (Asseverazione asseverazione : asseverazioni) {
%> %>
<li class="anteprimaasseverazione"> <li class="anteprimaasseverazione">
<p> <p>
<c:if test="<%= asseverazione.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>"> <c:if test="<%= asseverazione.getCodiceFiscale().equalsIgnoreCase(user
.getScreenName()) %>">
<% <%
String testoAsseverazione = AsseverazioneLocalServiceUtil.anteprimaAsseverazione(asseverazione.getTipologia(), user, dettPratica, null); String testoAsseverazione = AsseverazioneLocalServiceUtil
.anteprimaAsseverazione(asseverazione.getTipologia(), user,
dettPratica, null);
if (Validator.isNull(testoAsseverazione)) { if (Validator.isNull(testoAsseverazione)) {
testoAsseverazione = AsseverazioniUtil.retrieveAsseverazioneText(asseverazione, user.getScreenName()); testoAsseverazione = AsseverazioniUtil.retrieveAsseverazioneText(
asseverazione, user.getScreenName());
} }
%> %>
<%= testoAsseverazione %> <%= testoAsseverazione %>
@ -328,32 +316,21 @@
</ol> </ol>
</div> </div>
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="formName" value="formAsseverazione"></liferay-util:param> <liferay-util:param name="formName" value="formAsseverazione" />
<liferay-util:param name="onClick" value="<%= script.replace(\"{{prefix}}\", \"as\").replace(\"{{type}}\", \"asseverazione\") %>"></liferay-util:param> <liferay-util:param name="onClick" value="<%= script.replace(\"{{prefix}}\", \"as\").replace(\"{{type}}\", \"asseverazione\") %>" />
<liferay-util:param name="titolo" value="Conferma Asseverazione"></liferay-util:param> <liferay-util:param name="titolo" value="Conferma Asseverazione" />
<liferay-util:param name="contentDiv" value='<%= "asSaveAndCloseDiv_"+randomId %>'></liferay-util:param> <liferay-util:param name="contentDiv" value='<%= "asSaveAndCloseDiv_"+randomId %>' />
<liferay-util:param name="buttonId" value="<%= buttonAsseverazioneId %>"></liferay-util:param> <liferay-util:param name="buttonId" value="<%= buttonAsseverazioneId %>" />
<liferay-util:param name="buttonConferma" value="Conferma"></liferay-util:param> <liferay-util:param name="buttonConferma" value="Conferma" />
<liferay-util:param name="width" value="800"></liferay-util:param> <liferay-util:param name="width" value="800" />
</liferay-util:include> </liferay-util:include>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza" url="javascript:saveDettPratica(true)"
<liferay-ui:icon linkCssClass="btn" />
iconCssClass="fa fa-save" <liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-verifica"
message="salva-bozza" url="javascript:saveDettPratica(false, 'domanda')" linkCssClass="btn btn-primary" />
url="javascript:saveDettPratica(true);"
linkCssClass="btn"
/>
<liferay-ui:icon
iconCssClass="fa fa-check-square"
message="salva-verifica"
url="javascript:saveDettPratica(false, 'domanda');"
linkCssClass="btn btn-primary"
/>
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>

30
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/verify_ok.jsp

@ -1,7 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.LocaleUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@include file="/html/init.jsp"%> <%@include file="/html/init.jsp"%>
<% <%
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
@ -9,37 +8,28 @@
String label = ParamUtil.getString(request, "label"); String label = ParamUtil.getString(request, "label");
String dialogId = renderResponse.getNamespace()+"openVerificaFascicolo"; String dialogId = renderResponse.getNamespace()+"openVerificaFascicolo";
%> %>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="confirm-ok"> <div class="confirm-ok">
<%= MessageFormat.format(LanguageUtil.get(pageContext, "label."+label), dettPratica.getTitle(LocaleUtil.getSiteDefault())) %> <%= MessageFormat.format(LanguageUtil.get(pageContext, "label." + label), dettPratica.getTitle(
LocaleUtil.getSiteDefault())) %>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:button-row cssClass="text-center"> <aui:button-row cssClass="text-center">
<aui:button value="Chiudi" cssClass="btn btn-success" onClick='<%=renderResponse.getNamespace()+"closePopup()"%>'></aui:button> <aui:button value="Chiudi" cssClass="btn btn-success" onClick='<%= renderResponse.getNamespace()
+ "closePopup()" %>' />
</aui:button-row> </aui:button-row>
</div> </div>
</div> </div>
</div> </div>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.provide( Liferay.provide(window, '<portlet:namespace/>closePopup', function () {
window, Liferay.fire('closeWindow', {
'<portlet:namespace/>closePopup',
function() {
Liferay.fire(
'closeWindow',
{
id: '<%= dialogId %>' id: '<%= dialogId %>'
} });
); }, ['aui-base','liferay-util-window']);
},
['aui-base','liferay-util-window']
);
</aui:script> </aui:script>

38
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/header.jsp

@ -1,61 +1,47 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="org.apache.commons.lang.StringUtils"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%> <%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AsseverazioniUtil"%> <%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@ include file="/html/fascicolofe/init.jsp"%> <%@ include file="/html/fascicolofe/init.jsp"%>
<% <%
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica"); DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
request.setAttribute("bean.dettPratica", dettPratica); request.setAttribute("bean.dettPratica", dettPratica);
long soggettoId = ParamUtil.getLong(request, "soggettoId"); long soggettoId = ParamUtil.getLong(request, "soggettoId");
boolean disabledInput = ParamUtil.getBoolean(request, "disabledInput"); boolean disabledInput = ParamUtil.getBoolean(request, "disabledInput");
boolean inBO = ParamUtil.getBoolean(request, "inBO", false); boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
%> %>
<c:if test="<%= !inBO %>"> <c:if test="<%= !inBO %>">
<c:choose> <c:choose>
<c:when test="<%= !ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId()) %>"> <c:when test="<%= !ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId()) %>">
<div class="alert alert-warn"> <div class="alert alert-warn"><liferay-ui:message key="domanda-non-modificabile" /></div>
<liferay-ui:message key="domanda-non-modificabile" />
</div>
</c:when> </c:when>
<c:when <c:when test="<%=disabledInput
test="<%=disabledInput
&& !AsseverazioniUtil.hasAsseverazioniAttive(dettPratica.getDettPraticaId())%>"> && !AsseverazioniUtil.hasAsseverazioniAttive(dettPratica.getDettPraticaId())%>">
<div class="alert alert-warn"> <div class="alert alert-warn">
<% <%
String descrizioneSoggetto = ""; String descrizioneSoggetto = StringPool.BLANK;
Soggetto soggetto = SoggettoLocalServiceUtil.fetchSoggetto(soggettoId); Soggetto soggetto = SoggettoLocalServiceUtil.fetchSoggetto(soggettoId);
if (soggetto != null) { if (soggetto != null) {
descrizioneSoggetto = soggetto.getDescrizioneCompleta(); descrizioneSoggetto = soggetto.getDescrizioneCompleta();
} else { } else {
descrizioneSoggetto = "nessuna delega attiva"; descrizioneSoggetto = "nessuna delega attiva";
List<Soggetto> responsabiliCompilazione = null; List<Soggetto> responsabiliCompilazione = null;
Object obj = request.getAttribute("responsabiliCompilazione"); Object obj = request.getAttribute("responsabiliCompilazione");
if (obj instanceof List<?>) { if (obj instanceof List<?>) {
responsabiliCompilazione = (List<Soggetto>) obj; responsabiliCompilazione = (List<Soggetto>) obj;
} }
if (Validator.isNotNull(responsabiliCompilazione) && (responsabiliCompilazione.size() > 0)) { if (Validator.isNotNull(responsabiliCompilazione) && (responsabiliCompilazione.size() > 0)) {
List<String> nomi = new ArrayList<String>(); List<String> nomi = new ArrayList<String>();
for (Soggetto responsabile : responsabiliCompilazione) { for (Soggetto responsabile : responsabiliCompilazione) {
nomi.add(responsabile.getDescrizioneCompleta()); nomi.add(responsabile.getDescrizioneCompleta());
} }
descrizioneSoggetto += ", delegabili: " + StringUtils.join(nomi, ", "); descrizioneSoggetto += ", delegabili: " + StringUtils.join(nomi, StringPool.COMMA_AND_SPACE);
} }
} }
%> %>
<liferay-ui:message key="persona-responsabile-compilazione-sezione" /> <liferay-ui:message key="persona-responsabile-compilazione-sezione" />
: <strong><%= descrizioneSoggetto %></strong> : <strong><%= descrizioneSoggetto %></strong>
@ -67,11 +53,9 @@
</div> </div>
</c:when> </c:when>
<c:when <c:when
test="<%=PagamentiCommonUtil.pagamentiInitialized(dettPratica.getDettPraticaId(), test="<%= PagamentiCommonUtil.pagamentiInitialized(dettPratica.getDettPraticaId(), DettPratica.class
DettPratica.class.getName())%>"> .getName()) %>">
<div class="alert alert-warn"> <div class="alert alert-warn"><liferay-ui:message key="pagamento-attivo-domanda-non-modificabile" /></div>
<liferay-ui:message key="pagamento-attivo-domanda-non-modificabile" />
</div>
</c:when> </c:when>
</c:choose> </c:choose>
</c:if> </c:if>

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

@ -62,7 +62,7 @@
<div class="container-fluid clearfix"> <div class="container-fluid clearfix">
<div class="container-btn-fascicolo pull-right" > <div class="container-btn-fascicolo pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-refresh" iconCssClass="fa fa-refresh"

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo.jsp

@ -46,7 +46,7 @@
<div class="container-fluid clearfix"> <div class="container-fluid clearfix">
<div class="container-btn-fascicolo pull-right" > <div class="container-btn-fascicolo pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-refresh" iconCssClass="fa fa-refresh"
message="refresh" message="refresh"

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

@ -73,7 +73,7 @@
<div class="container-fluid clearfix root-calc"> <div class="container-fluid clearfix root-calc">
<h2 class="title-fascicolo pull-left">Calcolo importo</h2> <h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(collaudo.getCollaudoId(), Collaudo.class.getName()) %>"> <c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(collaudo.getCollaudoId(), Collaudo.class.getName()) %>">
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-chevron-left" iconCssClass="fa fa-chevron-left"
@ -255,7 +255,7 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-right"> <div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-close" iconCssClass="fa fa-close"
message="cancel" message="cancel"

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

@ -1,38 +1,29 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.HashMap"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="java.util.Map"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.SezioniUtil"%>
<%@page import="com.liferay.portal.kernel.util.UniqueList"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="java.util.ArrayList"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.SezioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AsseverazioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="java.util.LinkedHashSet"%>
<%@page import="java.util.Set"%>
<%@include file="/html/fascicolofe/init.jsp"%> <%@include file="/html/fascicolofe/init.jsp"%>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if (dettPratica == null) { if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if (dettPratica == null) { if (dettPratica == null) {
@ -40,76 +31,62 @@
} }
} }
%> %>
<liferay-portlet:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:renderURL var="calcolaURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="calcolaURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:renderURL var="completedURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="completedURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/completed_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/completed_fascicolo.jsp" />
<liferay-portlet:param name="classPk" value="<%= String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="classPk" value="<%= String.valueOf(dettPraticaId)%>" />
<liferay-portlet:param name="className" value="<%= DettPratica.class.getName()%>" /> <liferay-portlet:param name="className" value="<%= DettPratica.class.getName()%>" />
<liferay-portlet:param name="comingFrom" value="domanda" /> <liferay-portlet:param name="comingFrom" value="domanda" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<portlet:renderURL var="delegaURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>" > <portlet:renderURL var="delegaURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>" >
<portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" />
<portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" /> <portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" />
<portlet:param name="backURL" value="<%= currentURL %>" /> <portlet:param name="backURL" value="<%= currentURL %>" />
</portlet:renderURL> </portlet:renderURL>
<portlet:renderURL var="asseverazioneURL"> <portlet:renderURL var="asseverazioneURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_asseverazione.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_asseverazione.jsp" />
<portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<portlet:param name="backURL" value="<%= currentURL %>" /> <portlet:param name="backURL" value="<%= currentURL %>" />
</portlet:renderURL> </portlet:renderURL>
<liferay-portlet:renderURL var="viewProgettiURL" > <liferay-portlet:renderURL var="viewProgettiURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view.jsp"/>
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="completeIntegrazione" var="completeIntegrazioneURL"> <liferay-portlet:actionURL name="completeIntegrazione" var="completeIntegrazioneURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/>
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= completedURL %>" /> <liferay-portlet:param name="redirect" value="<%= completedURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL"> <liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/>
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= completedURL %>" /> <liferay-portlet:param name="redirect" value="<%= completedURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="help_message_verifica"></liferay-util:param> <liferay-util:param name="message" value="help_message_verifica" />
</liferay-util:include> </liferay-util:include>
<div class="container-fluid clearfix"> <div class="container-fluid clearfix">
<h2 class="title-fascicolo pull-left">Verifica Fascicolo</h2> <h2 class="title-fascicolo pull-left">Verifica Fascicolo</h2>
<div class="container-btn-fascicolo pull-right" > <div class="container-btn-fascicolo pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-refresh" message="refresh" url="<%= verifyURL %>"
iconCssClass="fa fa-refresh" linkCssClass="btn" />
message="refresh"
url="<%=verifyURL %>"
linkCssClass="btn"
/>
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%=ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?"btn":"btn disabled" %>' linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId) ?"btn"
iconCssClass="fa fa-users" :"btn disabled" %>'
message="gestione-deleghe-compilazione" iconCssClass="fa fa-users" message="gestione-deleghe-compilazione"
url="<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?delegaURL:StringPool.DASH %>" url="<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId) ? delegaURL
/> : StringPool.DASH %>" />
<% <%
boolean asseverazioniIsEnabled = ValidazionePraticaUtil.asseverazioniIsEnable(dettPraticaId); boolean asseverazioniIsEnabled = ValidazionePraticaUtil.asseverazioniIsEnable(dettPraticaId);
StringBuilder tooltipAsseverazioni = new StringBuilder(); StringBuilder tooltipAsseverazioni = new StringBuilder();
@ -127,13 +104,11 @@
tooltipAsseverazioni.append("</ul>"); tooltipAsseverazioni.append("</ul>");
} }
%> %>
<span class="<%= !asseverazioniIsEnabled ? "tooltip-info" : StringPool.BLANK %>" title="<%= tooltipAsseverazioni.toString() %>"> <span class="<%= asseverazioniIsEnabled ? StringPool.BLANK : "tooltip-info" %>"
<liferay-ui:icon title="<%= tooltipAsseverazioni.toString() %>">
linkCssClass='<%=asseverazioniIsEnabled ? "btn":"btn disabled" %>' <liferay-ui:icon linkCssClass='<%=asseverazioniIsEnabled ? "btn" : "btn disabled" %>'
iconCssClass="fa fa-pencil" iconCssClass="fa fa-pencil" message="gestione-asseverazioni"
message="gestione-asseverazioni" url="<%= asseverazioniIsEnabled ? asseverazioneURL : StringPool.DASH %>" />
url="<%= asseverazioniIsEnabled?asseverazioneURL:StringPool.DASH %>"
/>
</span> </span>
<c:if test="<%= !dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE) %>"> <c:if test="<%= !dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE) %>">
<% <%
@ -141,28 +116,29 @@
%> %>
<c:if test="<%= isEsente %>"> <c:if test="<%= isEsente %>">
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>' linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?
iconCssClass="fa fa-check" "btn btn-primary" : "btn btn-primary disabled" %>'
message="Concludi Domanda" iconCssClass="fa fa-check" message="Concludi Domanda"
url="<%= completeDomandaEsenteURL %>" url="<%= completeDomandaEsenteURL %>" />
/>
</c:if> </c:if>
<c:if test="<%= !isEsente %>"> <c:if test="<%= !isEsente %>">
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"btn btn-primary":"btn btn-primary disabled" %>' linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ?
"btn btn-primary" : "btn btn-primary disabled" %>'
iconCssClass="fa fa-cogs" iconCssClass="fa fa-cogs"
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId)>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>' message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId) > 0 ?
url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?calcolaURL:StringPool.DASH %>" LanguageUtil.get(pageContext, "dati-pagamento")
/> : LanguageUtil.get(pageContext, "calcola-importo") %>'
url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ? calcolaURL
: StringPool.DASH %>" />
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE) %>"> <c:if test="<%= dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE) %>">
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%= ValidazionePraticaUtil.canCompleteIntegrazione(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>' linkCssClass='<%= ValidazionePraticaUtil.canCompleteIntegrazione(dettPraticaId) ?
iconCssClass="fa fa-check" "btn btn-primary" : "btn btn-primary disabled" %>'
message="Concludi Integrazione" iconCssClass="fa fa-check" message="Concludi Integrazione"
url="<%= completeIntegrazioneURL %>" url="<%= completeIntegrazioneURL %>" />
/>
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
@ -178,7 +154,6 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
<div class="container-fluid clearfix compilazione-domanda" id="<portlet:namespace/>_section-completed"> <div class="container-fluid clearfix compilazione-domanda" id="<portlet:namespace/>_section-completed">
<div class="col-xs-12 asseverazioni tab-error"> <div class="col-xs-12 asseverazioni tab-error">
<div class="row asseverazioni-header"> <div class="row asseverazioni-header">
<div class="col-xs-12 text-center asseverazioni-header__title"> <div class="col-xs-12 text-center asseverazioni-header__title">
<strong>Compilazione Domanda</strong> <strong>Compilazione Domanda</strong>
</div> </div>
@ -206,16 +181,16 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
StringBuilder tooltipSection = new StringBuilder(); StringBuilder tooltipSection = new StringBuilder();
List<String> notCompleted = ValidazionePraticaUtil.notCompletedSection(section, dettPraticaId); List<String> notCompleted = ValidazionePraticaUtil.notCompletedSection(section, dettPraticaId);
if (notCompleted.size() > 0 ) { if (notCompleted.size() > 0 ) {
if(!notCompleted.isEmpty()){
tooltipSection.append("<ul class='list-body-modal'>"); tooltipSection.append("<ul class='list-body-modal'>");
for (String incomplete : notCompleted) { for (String incomplete : notCompleted) {
tooltipSection.append("<li class='item-body-modal'>"+LanguageUtil.get(pageContext, incomplete)+"</li>"); tooltipSection.append("<li class='item-body-modal'>")
.append(LanguageUtil.get(pageContext, incomplete)).append("</li>");
} }
tooltipSection.append("</ul>"); tooltipSection.append("</ul>");
} }
}
%> %>
<span class='icon-asseverazioni fa <%= notCompleted.size() == 0 ? "fa-check txt-green" : "fa-close txt-red"%>'></span> <span class='icon-asseverazioni fa <%= notCompleted.size() == 0 ? "fa-check txt-green"
: "fa-close txt-red"%>'></span>
</div> </div>
<div class="col-xs-2 text-center"> <div class="col-xs-2 text-center">
<c:if test="<%= tooltipSection.length() > 0 %>"> <c:if test="<%= tooltipSection.length() > 0 %>">
@ -227,11 +202,11 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
String contentId = section + "_div"; String contentId = section + "_div";
%> %>
<liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="<%= title%>"></liferay-util:param> <liferay-util:param name="titolo" value="<%= title %>" />
<liferay-util:param name="buttonId" value="<%=buttonId%>"></liferay-util:param> <liferay-util:param name="buttonId" value="<%=buttonId%>" />
<liferay-util:param name="contentDiv" value="<%=contentId%>"></liferay-util:param> <liferay-util:param name="contentDiv" value="<%=contentId%>" />
<liferay-util:param name="width" value="750"></liferay-util:param> <liferay-util:param name="width" value="750" />
<liferay-util:param name="externalForm" value="true"></liferay-util:param> <liferay-util:param name="externalForm" value="true" />
</liferay-util:include> </liferay-util:include>
</c:if> </c:if>
</div> </div>
@ -241,7 +216,6 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
%> %>
</div> </div>
</div> </div>
<div class="container-fluid clearfix asseverazioni-firme" id="<portlet:namespace/>_asseverazioni-table"> <div class="container-fluid clearfix asseverazioni-firme" id="<portlet:namespace/>_asseverazioni-table">
<div class="col-xs-12 asseverazioni"> <div class="col-xs-12 asseverazioni">
<div class="row asseverazioni-header"> <div class="row asseverazioni-header">
@ -289,7 +263,6 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
for (String tipoSoggetto : tipologiaSoggetti) { for (String tipoSoggetto : tipologiaSoggetti) {
String clazz = StringPool.BLANK; String clazz = StringPool.BLANK;
String title = StringPool.BLANK; String title = StringPool.BLANK;
List<Asseverazione> asseverazioniCompletate = AsseverazioneLocalServiceUtil List<Asseverazione> asseverazioniCompletate = AsseverazioneLocalServiceUtil
.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, esiti_complete, .findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, esiti_complete,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
@ -320,27 +293,17 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
title = "Asseverazioni consigliate"; title = "Asseverazioni consigliate";
clazz += "fa-circle txt-blue"; clazz += "fa-circle txt-blue";
} }
content.append("<span class=\"").append(clazz).append(" tooltip-info\" title=\"").append(title)
content.append("<span class=\"") .append("\">").append("<sub class=\"txt-bold\">")
.append(clazz) .append(asseverazioniCompletate.size() > 0 ? asseverazioniCompletate.size()
.append(" tooltip-info\" title=\"") : StringPool.BLANK).append("</sub>").append("</span>");
.append(title)
.append("\">");
content.append("<sub class=\"txt-bold\">")
.append(asseverazioniCompletate.size()>0 ? asseverazioniCompletate.size() : StringPool.BLANK)
.append("</sub>");
content.append("</span>");
} else if ( } else if (
!TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) && !TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())
!TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) && && !TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())
TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto) && && TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto)
DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(intPraticaId, new String[]{DelegheUtil.TIPO_GEOLOGO}, new String[]{DelegheUtil.STATO_ESEGUITA})>0 && DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(intPraticaId, new String[]{ DelegheUtil.TIPO_GEOLOGO }, new String[]{ DelegheUtil.STATO_ESEGUITA }) > 0) {
){
clazz = "icon-asseverazioni fa fa-check txt-green"; clazz = "icon-asseverazioni fa fa-check txt-green";
content.append("<span class=\"").append(clazz).append("\"></span>");
content.append("<span class=\"").append(clazz).append("\">").append("</span>");
} else { } else {
content.append("<span>-</span>"); content.append("<span>-</span>");
} }
@ -355,7 +318,8 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
</div> </div>
<% <%
for (String codiceDoc : tipologiaAllegati) { for (String codiceDoc : tipologiaAllegati) {
String nomeAllegato = codiceDoc + " - " + LanguageUtil.get(pageContext, "label-documenti-tipologia-" + codiceDoc); String nomeAllegato = codiceDoc + " - " + LanguageUtil.get(pageContext, "label-documenti-tipologia-"
+ codiceDoc);
%> %>
<div class="row asseverazioni-title"> <div class="row asseverazioni-title">
<div class="col-xs-12"> <div class="col-xs-12">
@ -363,10 +327,10 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
</div> </div>
</div> </div>
<% <%
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId,
codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (docPraticas.isEmpty()) { if (docPraticas.isEmpty()) {
%> %>
<div class="row asseverazioni-section"> <div class="row asseverazioni-section">
<div class="col-xs-6"> <div class="col-xs-6">
Nessun allegato presente per la tipologia Nessun allegato presente per la tipologia
@ -384,16 +348,15 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
<% <%
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
List<String> signatures = firme.allSignatures(); List<String> signatures = firme.allSignatures();
boolean isEnoughOne = AsseverazioniUtil.isEnoughOne(codiceDoc); boolean isEnoughOne = AsseverazioniUtil.isEnoughOne(codiceDoc);
for (String tipoSoggetto : tipologiaSoggetti) { for (String tipoSoggetto : tipologiaSoggetti) {
String clazz = StringPool.BLANK; String clazz = StringPool.BLANK;
StringBuilder tooltipTitle = new StringBuilder(); StringBuilder tooltipTitle = new StringBuilder();
List<String> signaturesPerSubject = new UniqueList<String>(); Set<String> signaturesPerSubject = new LinkedHashSet<String>();
for (String sign : signatures) { for (String sign : signatures) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil
List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, sign, docPratica.getClassPk()); .getValidTmpByIntPratica_CodiceFiscale( intPraticaId, sign, docPratica
.getClassPk());
for (Soggetto soggetto: soggetti) { for (Soggetto soggetto: soggetti) {
if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)) { if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)) {
signaturesPerSubject.add(sign); signaturesPerSubject.add(sign);
@ -403,11 +366,10 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
if (signaturesPerSubject.size() > 0) { if (signaturesPerSubject.size() > 0) {
tooltipTitle.append("Firme:<ul>"); tooltipTitle.append("Firme:<ul>");
for (String firma: signaturesPerSubject) { for (String firma: signaturesPerSubject) {
tooltipTitle.append("<li>"+firma+"</li>"); tooltipTitle.append("<li>").append(firma).append("</li>");
} }
tooltipTitle.append("</ul>"); tooltipTitle.append("</ul>");
} }
if (isEnoughOne) { if (isEnoughOne) {
clazz += " icon-asseverazioni fa "; clazz += " icon-asseverazioni fa ";
if (signatures.isEmpty()) { if (signatures.isEmpty()) {
@ -416,7 +378,9 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
clazz += "fa-check txt-green"; clazz += "fa-check txt-green";
} }
} else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc)) { } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc)) {
if(TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto) || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && dettPratica.isLavoriPubblici()) ){ if (TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto)
|| (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)
&& dettPratica.isLavoriPubblici())) {
boolean isValid = false; boolean isValid = false;
if (dettPratica.getNormArt3com3()) { if (dettPratica.getNormArt3com3()) {
isValid = true; isValid = true;
@ -425,11 +389,6 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
} else { } else {
isValid = true; isValid = true;
} }
// if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){
// isValid = true;
// }
clazz += " icon-asseverazioni fa "; clazz += " icon-asseverazioni fa ";
if (isValid) { if (isValid) {
clazz += "fa-check txt-green"; clazz += "fa-check txt-green";
@ -439,15 +398,15 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09)) {
boolean isValid = false; boolean isValid = false;
if ((tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA)
if( (tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA) || tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI)) ){ || tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI))) {
if (dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty()) { if (dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty()) {
isValid = true; isValid = true;
} }
if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){ if (!isValid && dettPratica.isLavoriPubblici()
&& TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)) {
isValid = true; isValid = true;
} }
clazz += " icon-asseverazioni fa "; clazz += " icon-asseverazioni fa ";
if (isValid) { if (isValid) {
clazz += "fa-check txt-green"; clazz += "fa-check txt-green";
@ -455,35 +414,38 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
clazz += "fa-close txt-red"; clazz += "fa-close txt-red";
} }
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) { } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) {
boolean isValid = true; boolean isValid = true;
if (signatures.isEmpty()) { if (signatures.isEmpty()) {
List<Soggetto> ditte = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(), TipoSoggettoUtil.DITTA); List<Soggetto> ditte = SoggettoLocalServiceUtil
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(), TipoSoggettoUtil.COMMITTENTE); .findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(),
boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, ditte, committenti, dettPratica); TipoSoggettoUtil.DITTA);
if(isRequired) List<Soggetto> committenti = SoggettoLocalServiceUtil
.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(),
TipoSoggettoUtil.COMMITTENTE);
boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil
.TIPOLOGIA_ALLEGATO_A17, ditte, committenti, dettPratica);
if (isRequired) {
isValid = false; isValid = false;
} }
}
clazz += " icon-asseverazioni fa "; clazz += " icon-asseverazioni fa ";
if (isValid) { if (isValid) {
clazz += "fa-check txt-green"; clazz += "fa-check txt-green";
} else { } else {
clazz += "fa-close txt-red"; clazz += "fa-close txt-red";
} }
} else { } else {
boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(
boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto); codiceDoc, tipoSoggetto);
boolean isRecommended = AsseverazioniUtil.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto); boolean isRecommended = AsseverazioniUtil
.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto);
boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() || dettPratica.getNormLavoriNoDirettore(); boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici()
|| dettPratica.getNormLavoriNoDirettore();
if(tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI) && signaturesPerSubject.size() == 0){ if (tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI)
&& signaturesPerSubject.size() == 0) {
isRequired = false; isRequired = false;
} }
if (isRequired || isRecommended) { if (isRequired || isRecommended) {
clazz += " icon-asseverazioni fa "; clazz += " icon-asseverazioni fa ";
if (isRequired) { if (isRequired) {
@ -497,12 +459,12 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
} }
} }
} }
%> %>
<div class="col-xs-2"> <div class="col-xs-2">
<span class='<%=clazz%> <%= !clazz.isEmpty() && tooltipTitle.length() > 0 ? "tooltip-info" : "" %>' title='<%= tooltipTitle.toString() %>'> <span class='<%= clazz %> <%= !clazz.isEmpty() && tooltipTitle.length() > 0 ?
<sub class="txt-bold"><%= !clazz.isEmpty() && signaturesPerSubject.size()>0 ? signaturesPerSubject.size() : "" %></sub> "tooltip-info" : "" %>' title='<%= tooltipTitle.toString() %>'>
<sub class="txt-bold"><%= !clazz.isEmpty() && signaturesPerSubject.size()>0 ?
signaturesPerSubject.size() : StringPool.BLANK %></sub>
</span> </span>
</div> </div>
<% <%
@ -510,7 +472,6 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
%> %>
</div> </div>
</div> </div>
<% <%
} }
} }
@ -518,23 +479,17 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
%> %>
</div> </div>
</div> </div>
<script type="text/javascript"> <script>
YUI().use( YUI().use('aui-tooltip', function(Y) {
'aui-tooltip', new Y.TooltipDelegate({
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info', trigger: '.tooltip-info',
position: 'top', position: 'top',
cssClass: 'tooltip-help', cssClass: 'tooltip-help',
html: true, html: true,
opacity: 1 opacity: 1,
} });
); });
}
);
</script> </script>
<aui:script use="aui-base"> <aui:script use="aui-base">
window.parent.Liferay.fire('verifyPopup-ready'); window.parent.Liferay.fire('verifyPopup-ready');
</aui:script> </aui:script>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_asseverazione.jsp

@ -28,7 +28,7 @@ String backURL = ParamUtil.getString(request, "backURL");
<div class="container-fluid clearfix"> <div class="container-fluid clearfix">
<h2 class="title-fascicolo pull-left">Gestione Asseverazioni</h2> <h2 class="title-fascicolo pull-left">Gestione Asseverazioni</h2>
<div class="pull-right"> <div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar"> cssClass="inline_toolbar">
<liferay-ui:icon iconCssClass="fa fa-arrow-left" message="back" url="<%= verifyURL %>" <liferay-ui:icon iconCssClass="fa fa-arrow-left" message="back" url="<%= verifyURL %>"
linkCssClass="btn" /> linkCssClass="btn" />

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

@ -47,7 +47,7 @@
<div class="container-fluid clearfix"> <div class="container-fluid clearfix">
<div class="container-btn-fascicolo pull-right" > <div class="container-btn-fascicolo pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-refresh" iconCssClass="fa fa-refresh"
message="refresh" message="refresh"

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

@ -72,7 +72,7 @@
<div class="container-fluid clearfix root-calc"> <div class="container-fluid clearfix root-calc">
<h2 class="title-fascicolo pull-left">Calcolo importo</h2> <h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>"> <c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-chevron-left" iconCssClass="fa fa-chevron-left"
@ -255,7 +255,7 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-right"> <div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-close" iconCssClass="fa fa-close"
message="cancel" message="cancel"

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo.jsp

@ -18,7 +18,7 @@
<liferay-ui:header <liferay-ui:header
title="<%=intPraticaTitle%>" title="<%=intPraticaTitle%>"
localizeTitle="<%= false %>" localizeTitle="false"
backURL="<%= Validator.isNotNull(backURL) ? backURL : viewProgettiURL %>" backURL="<%= Validator.isNotNull(backURL) ? backURL : viewProgettiURL %>"
/> />

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_delega.jsp

@ -31,7 +31,7 @@
<h2 class="title-fascicolo pull-left">Gestione Deleghe</h2> <h2 class="title-fascicolo pull-left">Gestione Deleghe</h2>
<c:if test="<%= backVisible %>"> <c:if test="<%= backVisible %>">
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-arrow-left" iconCssClass="fa fa-arrow-left"
message="back" message="back"

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

@ -327,8 +327,7 @@
<aui:input name="long" label="" type="hidden" <aui:input name="long" label="" type="hidden"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/> value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/>
</div> </div>
<aui:input type="hidden" name="geoIsEditable" value='<%= false %>' label=""/> <aui:input type="hidden" name="geoIsEditable" value="false" label=""/>
<liferay-ui:tabs names="mappe-bbcc,mappe-openstreetmap" refresh="false" value="mappe-openstreetmap"> <liferay-ui:tabs names="mappe-bbcc,mappe-openstreetmap" refresh="false" value="mappe-openstreetmap">
<liferay-ui:section> <liferay-ui:section>
<div class="col-xs-12"> <div class="col-xs-12">

37
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_storico.jsp

@ -1,44 +1,21 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%> <%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="com.liferay.portlet.documentlibrary.model.DLFileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Avviso"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayPortletMode"%>
<%@page import="javax.portlet.PortletRequest"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.CronostoriaUtil"%>
<%@page import="java.util.Comparator"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.Date"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.CronostoriaBean"%>
<%@page import="java.util.ArrayList"%>
<%@include file="/html/fascicolofe/init.jsp"%> <%@include file="/html/fascicolofe/init.jsp"%>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
if(intPraticaId==0l){ if (intPraticaId == 0) {
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if (dettPratica == null) { if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
} }
intPraticaId = dettPratica.getIntPraticaId(); intPraticaId = dettPratica.getIntPraticaId();
} }
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
%> %>
<liferay-util:include page="/html/cronologia/view.jsp"
<liferay-util:include page="/html/cronologia/view.jsp" servletContext='<%= ServletContextPool.get("portos-bo-portlet") %>'> servletContext='<%= ServletContextPool.get("portos-bo-portlet") %>'>
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"></liferay-util:param> <liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-util:include> </liferay-util:include>

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

@ -24,5 +24,6 @@
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="lib" path="/home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar"/>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> <classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath> </classpath>

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

@ -2,118 +2,108 @@
<%-- <%--
/** /**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
* * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
* This library is free software; you can redistribute it and/or modify it under * Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version. * any later version.
* * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* This library is distributed in the hope that it will be useful, but WITHOUT * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details. * details.
*/ */
--%> --%>
<%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="com.liferay.portal.kernel.util.GetterUtil"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayPortletRequest"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayPortletResponse"%>
<%@page import="com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowHandler"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowInstance"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowLog"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowLogManagerUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskDueDateException"%>
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%>
<%@page import="com.liferay.portal.util.PortalUtil"%>
<%@page import="com.liferay.portal.util.WebKeys"%>
<%@page import="com.liferay.portlet.asset.model.AssetEntry"%>
<%@page import="com.liferay.portlet.asset.model.AssetRenderer"%>
<%@page import="com.liferay.portlet.asset.model.AssetRendererFactory"%>
<%@page import="java.io.Serializable"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<%@page import="javax.portlet.PortletURL"%>
<%@include file="/html/portlet/workflow_tasks/init.jsp"%> <%@include file="/html/portlet/workflow_tasks/init.jsp"%>
<% <%
String randomId = StringUtil.randomId(); String randomId = StringUtil.randomId();
String redirect = ParamUtil.getString(request, "redirect"); String redirect = ParamUtil.getString(request, "redirect");
WorkflowTask workflowTask = (WorkflowTask) request.getAttribute(WebKeys.WORKFLOW_TASK); WorkflowTask workflowTask = (WorkflowTask) request.getAttribute(WebKeys.WORKFLOW_TASK);
WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(company.getCompanyId(),
WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(company.getCompanyId(), workflowTask.getWorkflowInstanceId()); workflowTask.getWorkflowInstanceId());
Map<String, Serializable> workflowContext = workflowInstance.getWorkflowContext(); Map<String, Serializable> workflowContext = workflowInstance.getWorkflowContext();
long companyId = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_COMPANY_ID)); long companyId = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_COMPANY_ID));
long groupId = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_GROUP_ID)); long groupId = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_GROUP_ID));
String className = (String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME); String className = (String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME);
long classPK = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)); long classPK = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK));
WorkflowHandler workflowHandler = WorkflowHandlerRegistryUtil.getWorkflowHandler(className); WorkflowHandler workflowHandler = WorkflowHandlerRegistryUtil.getWorkflowHandler(className);
AssetRenderer assetRenderer = workflowHandler.getAssetRenderer(classPK); AssetRenderer assetRenderer = workflowHandler.getAssetRenderer(classPK);
AssetRendererFactory assetRendererFactory = workflowHandler.getAssetRendererFactory(); AssetRendererFactory assetRendererFactory = workflowHandler.getAssetRendererFactory();
AssetEntry assetEntry = null; AssetEntry assetEntry = null;
if (assetRenderer != null) { if (assetRenderer != null) {
assetEntry = assetRendererFactory.getAssetEntry(assetRendererFactory.getClassName(), assetRenderer.getClassPK()); assetEntry = assetRendererFactory.getAssetEntry(assetRendererFactory.getClassName(), assetRenderer.getClassPK());
} }
String headerTitle = LanguageUtil.get(pageContext, workflowTask.getName()) + StringPool.COLON + StringPool.SPACE
String headerTitle = LanguageUtil.get(pageContext, workflowTask.getName()); + workflowHandler.getTitle(classPK, locale);
headerTitle = headerTitle.concat(StringPool.COLON + StringPool.SPACE + workflowHandler.getTitle(classPK, locale));
boolean showEditURL = false; boolean showEditURL = false;
if ((workflowTask.getAssigneeUserId() == user.getUserId()) && !workflowTask.isCompleted()) { if ((workflowTask.getAssigneeUserId() == user.getUserId()) && !workflowTask.isCompleted()) {
showEditURL = true; showEditURL = true;
} }
PortletURL editPortletURL = workflowHandler.getURLEdit(classPK, liferayPortletRequest, liferayPortletResponse); PortletURL editPortletURL = workflowHandler.getURLEdit(classPK, liferayPortletRequest, liferayPortletResponse);
String viewFullContentURLString = null; String viewFullContentURLString = null;
if (assetRenderer.isPreviewInContext()) { if (assetRenderer.isPreviewInContext()) {
viewFullContentURLString = assetRenderer.getURLViewInContext((LiferayPortletRequest)renderRequest, (LiferayPortletResponse)renderResponse, null); viewFullContentURLString = assetRenderer.getURLViewInContext((LiferayPortletRequest) renderRequest,
(LiferayPortletResponse) renderResponse, null);
} }
else { else {
PortletURL viewFullContentURL = renderResponse.createRenderURL(); PortletURL viewFullContentURL = renderResponse.createRenderURL();
viewFullContentURL.setParameter("struts_action", "/workflow_tasks/view_content"); viewFullContentURL.setParameter("struts_action", "/workflow_tasks/view_content");
viewFullContentURL.setParameter("redirect", currentURL); viewFullContentURL.setParameter("redirect", currentURL);
if (assetEntry != null) { if (assetEntry != null) {
viewFullContentURL.setParameter("assetEntryId", String.valueOf(assetEntry.getEntryId())); viewFullContentURL.setParameter("assetEntryId", String.valueOf(assetEntry.getEntryId()));
viewFullContentURL.setParameter("assetEntryVersionId", String.valueOf(classPK)); viewFullContentURL.setParameter("assetEntryVersionId", String.valueOf(classPK));
} }
if (assetRendererFactory != null) { if (assetRendererFactory != null) {
viewFullContentURL.setParameter("type", assetRendererFactory.getType()); viewFullContentURL.setParameter("type", assetRendererFactory.getType());
} }
viewFullContentURL.setParameter("showEditURL", String.valueOf(showEditURL)); viewFullContentURL.setParameter("showEditURL", String.valueOf(showEditURL));
viewFullContentURL.setParameter("workflowAssetPreview", Boolean.TRUE.toString()); viewFullContentURL.setParameter("workflowAssetPreview", Boolean.TRUE.toString());
viewFullContentURLString = viewFullContentURL.toString(); viewFullContentURLString = viewFullContentURL.toString();
} }
request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE); request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE);
%> %>
<%-- <portlet:renderURL var="backURL">
<portlet:param name="struts_action" value="/workflow_tasks/view" />
</portlet:renderURL>
<liferay-ui:header
backURL="<%= backURL.toString() %>"
localizeTitle="<%= false %>"
title="<%= headerTitle %>"
/>--%>
<div class="container_gestione_attivita"> <div class="container_gestione_attivita">
<div class="container_gestione_attivita_header"> <div class="container_gestione_attivita_header">
<h2 class="container_gestione_attivita_header-title">Gestione Attività</h2> <h2 class="container_gestione_attivita_header-title">Gestione Attività</h2>
</div> </div>
<div class="container_gestione_attivita_body"> <div class="container_gestione_attivita_body">
<div class="container_gestione_attivita_body-left"> <div class="container_gestione_attivita_body-left">
<div class="container_gestione_attivita_body-left-dati"> <div class="container_gestione_attivita_body-left-dati">
<liferay-ui:error exception="<%= WorkflowTaskDueDateException.class %>"
<liferay-ui:error exception="<%= WorkflowTaskDueDateException.class %>" message="please-enter-a-valid-due-date" /> message="please-enter-a-valid-due-date" />
<div class="lfr-asset-assigned attivita_header-item"> <div class="lfr-asset-assigned attivita_header-item">
<aui:field-wrapper label="assigned-to"> <aui:field-wrapper label="assigned-to">
<i class="icon-user"></i> <i class="icon-user"></i>
<c:choose> <c:choose>
<c:when test="<%= workflowTask.isAssignedToSingleUser() %>"> <c:when test="<%= workflowTask.isAssignedToSingleUser() %>">
<liferay-ui:input-resource url="<%= PortalUtil.getUserName(workflowTask.getAssigneeUserId(), StringPool.BLANK) %>" /> <liferay-ui:input-resource url="<%= PortalUtil.getUserName(workflowTask
.getAssigneeUserId(), StringPool.BLANK) %>" />
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<liferay-ui:input-resource url='<%= LanguageUtil.get(pageContext, "nobody") %>' /> <liferay-ui:input-resource url='<%= LanguageUtil.get(pageContext, "nobody") %>' />
@ -121,102 +111,77 @@ request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE);
</c:choose> </c:choose>
</aui:field-wrapper> </aui:field-wrapper>
</div> </div>
<div class="lfr-asset-status attivita_header-item"> <div class="lfr-asset-status attivita_header-item">
<aui:field-wrapper label="state"> <aui:field-wrapper label="state">
<i class="icon-th-list"></i> <i class="icon-th-list"></i>
<liferay-ui:input-resource url="<%= LanguageUtil.get(pageContext, WorkflowInstanceLinkLocalServiceUtil.getState(companyId, groupId, className, classPK)) %>" /> <liferay-ui:input-resource url="<%= LanguageUtil.get(pageContext,
WorkflowInstanceLinkLocalServiceUtil.getState(companyId, groupId, className,
classPK)) %>" />
</aui:field-wrapper> </aui:field-wrapper>
</div> </div>
<div class="lfr-asset-date attivita_header-item"> <div class="lfr-asset-date attivita_header-item">
<aui:field-wrapper label="create-date"> <aui:field-wrapper label="create-date">
<i class="icon-calendar"></i> <i class="icon-calendar"></i>
<liferay-ui:input-resource url="<%= dateFormatDateTime.format(workflowTask.getCreateDate()) %>" /> <liferay-ui:input-resource url="<%= dateFormatDateTime.format(workflowTask
.getCreateDate()) %>" />
</aui:field-wrapper> </aui:field-wrapper>
</div> </div>
</div> </div>
<c:if test="<%= Validator.isNotNull(workflowTask.getDescription()) %>"> <c:if test="<%= Validator.isNotNull(workflowTask.getDescription()) %>">
<div class="lfr-asset-field"> <div class="lfr-asset-field">
<aui:field-wrapper label="description"> <aui:field-wrapper label="description">
<%= workflowTask.getDescription() %> <%= workflowTask.getDescription() %>
</aui:field-wrapper> </aui:field-wrapper>
</div> </div>
</c:if> </c:if>
<c:if test="<%= assetRenderer != null %>"> <c:if test="<%= assetRenderer != null %>">
<% <%
String path = workflowHandler.render(classPK, renderRequest, renderResponse, AssetRenderer.TEMPLATE_ABSTRACT); String path = workflowHandler.render(classPK, renderRequest, renderResponse, AssetRenderer
.TEMPLATE_ABSTRACT);
request.setAttribute(WebKeys.ASSET_RENDERER, assetRenderer); request.setAttribute(WebKeys.ASSET_RENDERER, assetRenderer);
request.setAttribute(WebKeys.ASSET_PUBLISHER_ABSTRACT_LENGTH, 200); request.setAttribute(WebKeys.ASSET_PUBLISHER_ABSTRACT_LENGTH, 200);
%> %>
<c:choose> <c:choose>
<c:when test="<%= path == null %>"> <c:when test="<%= path == null %>">
<%= workflowHandler.getSummary(classPK, locale) %> <%= workflowHandler.getSummary(classPK, locale) %>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<liferay-util:include page="<%= path %>" portletId="<%= assetRendererFactory.getPortletId() %>" /> <liferay-util:include page="<%= path %>" portletId="<%= assetRendererFactory
.getPortletId() %>" />
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:if> </c:if>
<liferay-ui:panel-container cssClass="task-panel-container" extended="true"> <liferay-ui:panel-container cssClass="task-panel-container" extended="true">
<liferay-ui:panel defaultState="closed" title="Attività e Commenti"> <liferay-ui:panel defaultState="closed" title="Attività e Commenti">
<% <%
List<Integer> logTypes = new ArrayList<Integer>(); List<Integer> logTypes = new ArrayList<Integer>();
logTypes.add(WorkflowLog.TASK_ASSIGN); logTypes.add(WorkflowLog.TASK_ASSIGN);
logTypes.add(WorkflowLog.TASK_COMPLETION); logTypes.add(WorkflowLog.TASK_COMPLETION);
logTypes.add(WorkflowLog.TASK_UPDATE); logTypes.add(WorkflowLog.TASK_UPDATE);
logTypes.add(WorkflowLog.TRANSITION); logTypes.add(WorkflowLog.TRANSITION);
List<WorkflowLog> workflowLogs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(company
List<WorkflowLog> workflowLogs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(company.getCompanyId(), workflowTask.getWorkflowInstanceId(), logTypes, QueryUtil.ALL_POS, QueryUtil.ALL_POS, WorkflowComparatorFactoryUtil.getLogCreateDateComparator(true)); .getCompanyId(), workflowTask.getWorkflowInstanceId(), logTypes, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, WorkflowComparatorFactoryUtil.getLogCreateDateComparator(true));
%> %>
<%@include file="/html/portlet/workflow_instances/workflow_logs.jspf"%> <%@include file="/html/portlet/workflow_instances/workflow_logs.jspf"%>
</liferay-ui:panel> </liferay-ui:panel>
</liferay-ui:panel-container> </liferay-ui:panel-container>
</div> </div>
</div> </div>
<div class="container_gestione_attivita_body-right"> <div class="container_gestione_attivita_body-right">
<div class="lfr-asset-summary"> <div class="lfr-asset-summary">
<h2 class="title-action">Azioni</h2> <h2 class="title-action">Azioni</h2>
<div class="separator"></div> <div class="separator"></div>
</div> </div>
<% <%
request.removeAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); request.removeAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
%> %>
<liferay-util:include page="/html/portlet/workflow_tasks/workflow_task_action.jsp"> <liferay-util:include page="/html/portlet/workflow_tasks/workflow_task_action.jsp">
<liferay-portlet:param name="viewFullContentURLString" value="<%= viewFullContentURLString %>" /> <liferay-portlet:param name="viewFullContentURLString" value="<%= viewFullContentURLString %>" />
<!-- ADT BUG BO ID= 27 -->
<liferay-portlet:param name="classPkForCarichiLavoro" value="<%= String.valueOf(classPK) %>" /> <liferay-portlet:param name="classPkForCarichiLavoro" value="<%= String.valueOf(classPK) %>" />
</liferay-util:include> </liferay-util:include>
</div> </div>
</div> </div>
<style> <style>
html { html {
padding: 0!important; padding: 0!important;
@ -233,14 +198,12 @@ request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE);
.container_gestione_attivita_header-title { .container_gestione_attivita_header-title {
color: #fff!important; color: #fff!important;
} }
.attivita_header-item .control-label { .attivita_header-item .control-label {
padding-left: 18px; padding-left: 18px;
} }
.attivita_header-item { .attivita_header-item {
padding-right: 40px; padding-right: 40px;
} }
.container_gestione_attivita_body { .container_gestione_attivita_body {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
@ -263,7 +226,8 @@ request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE);
border-radius: 4px; border-radius: 4px;
width: 80%; width: 80%;
} }
.button_custom a, .button_custom a i, .button_custom a span, .button_custom a span:hover, .button_custom a i:hover, .button_custom a:hover { .button_custom a, .button_custom a i, .button_custom a span, .button_custom a span:hover, .button_custom a i:hover,
.button_custom a:hover {
color: #333!important; color: #333!important;
} }
.task-panel-header { .task-panel-header {
@ -283,7 +247,6 @@ color: #333!important;
.container_gestione_attivita_body-right { .container_gestione_attivita_body-right {
border-left: 1px solid #ddd; border-left: 1px solid #ddd;
} }
.container_gestione_attivita_body-right .lfr-menu-list { .container_gestione_attivita_body-right .lfr-menu-list {
margin-left: 0; margin-left: 0;
} }
@ -300,7 +263,6 @@ color: #333!important;
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
} }
.container_gestione_attivita_body-left-dati { .container_gestione_attivita_body-left-dati {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
@ -309,11 +271,9 @@ color: #333!important;
flex-wrap: wrap; flex-wrap: wrap;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
.accordion .accordion-heading { .accordion .accordion-heading {
background-color: #812121!important; background-color: #812121!important;
} }
.accordion .accordion-heading .title-text { .accordion .accordion-heading .title-text {
color: #fff; color: #fff;
} }
@ -331,21 +291,13 @@ color: #333!important;
color: black color: black
} }
</style> </style>
<aui:script use="liferay-workflow-tasks"> <aui:script use="liferay-workflow-tasks">
var onTaskClickFn = A.rbind('onTaskClick', Liferay.WorkflowTasks, ''); var onTaskClickFn = A.rbind('onTaskClick', Liferay.WorkflowTasks, '');
Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskAssignToMeLink', onTaskClickFn); Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskAssignToMeLink', onTaskClickFn);
Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskAssignLink', onTaskClickFn); Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskAssignLink', onTaskClickFn);
Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskChangeUOLink', onTaskClickFn); Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskChangeUOLink', onTaskClickFn);
Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskRemoveAssignUOLink', onTaskClickFn); Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskRemoveAssignUOLink', onTaskClickFn);
<%-- Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskDueDateLink', onTaskClickFn); --%>
</aui:script> </aui:script>
<% <%
PortalUtil.addPortletBreadcrumbEntry(request, headerTitle, currentURL); PortalUtil.addPortletBreadcrumbEntry(request, headerTitle, currentURL);
%> %>

4
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=Kaleo build.namespace=Kaleo
build.number=53 build.number=54
build.date=1630401875482 build.date=1631008099103
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva