Sfoglia il codice sorgente

Modifiche 31 agosto

master
Salvatore La Manna 3 anni fa
parent
commit
22b6e0a672
  1. 22
      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. 343
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati_annullamento.jsp
  30. 46
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_andamento.jsp
  31. 400
      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. 239
      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. 62
      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. 404
      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. 83
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_top.jspf
  44. 68
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_top_pagamento.jspf
  45. 533
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf
  46. 42
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/verify_ok.jsp
  47. 60
      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. 637
      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. 49
      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. 382
      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

22
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);
} }
} }
@ -256,12 +256,12 @@ public class SchedulerInvioDocumento implements MessageListener {
if (avviso.getClassName().equals(DettPratica.class.getName())) { if (avviso.getClassName().equals(DettPratica.class.getName())) {
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso.getClassPk()); dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso.getClassPk());
switch (dettPratica.getTipoIntegrazione()) { switch (dettPratica.getTipoIntegrazione()) {
case TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE: case TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE:
case TipoIntegrazioneUtil.VARIANTE: case TipoIntegrazioneUtil.VARIANTE:
case TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO: case TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO:
tipoAllegato += LanguageUtil.get(LocaleUtil.ITALIAN, tipoAllegato += LanguageUtil.get(LocaleUtil.ITALIAN,
"label-integrazione-" + dettPratica.getTipoIntegrazione()); "label-integrazione-" + dettPratica.getTipoIntegrazione());
break; break;
} }
} else { } else {
dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(avviso.getIntPraticaId()); dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(avviso.getIntPraticaId());
@ -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);
avvisoExtra = documentiVid.get(0); if (documentiVid.size() > 0) {
dtInvio = avvisoExtra.getDtInvio(); avvisoExtra = documentiVid.get(0);
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>

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

@ -1,209 +1,190 @@
<%@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){ long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); if (dettPraticaId == 0) {
if(dettPraticaId==0){ dettPraticaId = GetterUtil.getLong(httpServletRequest.getParameter("dettPraticaId"));
dettPraticaId = GetterUtil.getLong( httpServletRequest.getParameter("dettPraticaId"));
}
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
} }
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
}
String tipologiaAllegato = DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO; IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
String tipologiaAllegato = DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO;
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(), tipologiaAllegato, QueryUtil.ALL_POS, QueryUtil.ALL_POS); List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(),
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"
<thead class="table-columns allegato-group__head"> id="<portlet:namespace/>allegati-table-<%= tipologiaAllegato %>">
<tr> <thead class="table-columns allegato-group__head">
<tr>
<th>STATO</th> <th>STATO</th>
<th>ALLEGATO</th> <th>ALLEGATO</th>
<th>FIRME</th> <th>FIRME</th>
<th>AGGIUNTO DA</th> <th>AGGIUNTO DA</th>
<th>INVALIDATO DA</th> <th>INVALIDATO DA</th>
<th class="text-center">AZIONI</th> <th class="text-center">AZIONI</th>
</tr> </tr>
</thead> </thead>
<tbody class="allegato-group__body"> <tbody class="allegato-group__body">
<% <%
for(DocPratica docPratica:docPraticas){ for (DocPratica docPratica:docPraticas) {
long docPraticaId = docPratica.getDocPraticaId(); long docPraticaId = docPratica.getDocPraticaId();
%> %>
<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 ?
</td> "txt-green" : "txt-red" %>' style="color:red;"></span>
<td> </td>
<%= docPratica.getFileName() %> <td>
</td> <%= docPratica.getFileName() %>
<td class="text-center"> </td>
<% <td class="text-center">
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); <%
StringBuilder title = new StringBuilder(); FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
if(firme.numeroFirme()>0){ StringBuilder title = new StringBuilder();
List<String> cfCheck = new ArrayList<String>(); if (firme.numeroFirme() > 0) {
if(!firme.getFirmeDigitali().isEmpty()){ List<String> cfCheck = new ArrayList<String>();
title.append("Firma sul file:<ul>"); if (!firme.getFirmeDigitali().isEmpty()) {
for(FirmeDetail firma: firme.getFirmeDigitali()){ title.append("Firma sul file:<ul>");
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); for (FirmeDetail firma: firme.getFirmeDigitali()) {
if (soggetti.size() > 0 ){ List<Soggetto> soggetti = SoggettoLocalServiceUtil
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); .findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(),
firma.getCfFirmatario());
if (soggetti.size() > 0) {
title.append("<li>").append(soggetti.get(0).getNome())
.append(StringPool.SPACE)
.append(soggetti.get(0).getCognome()).append("</li>");
}
title.append("<li>").append(firma.getCfFirmatario());
cfCheck.add(firma.getCfFirmatario().trim());
if (Validator.isNotNull(firma.getDtFirma())) {
title.append(" del ")
.append(dateFormatDate.format(firma.getDtFirma()));
}
title.append("</li>");
}
title.append("</ul>");
} }
title.append("<li>"+firma.getCfFirmatario()); if (!firme.getFirmeApplicativo().isEmpty()) {
cfCheck.add(firma.getCfFirmatario().trim()); title.append("Firme da applicativo:<ul>");
if(Validator.isNotNull(firma.getDtFirma())){ for (FirmeDetail firma: firme.getFirmeApplicativo()) {
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); List<Soggetto> soggetti = SoggettoLocalServiceUtil
} .findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(),
title.append("</li>"); firma.getCfFirmatario());
} if (soggetti.size() > 0) {
title.append("</ul>"); title.append("<li>").append(soggetti.get(0).getNome())
} .append(StringPool.SPACE)
if(!firme.getFirmeApplicativo().isEmpty()){ .append(soggetti.get(0).getCognome()).append("</li>");
title.append("Firme da applicativo:<ul>"); }
for(FirmeDetail firma: firme.getFirmeApplicativo()){ title.append("<li>").append(firma.getCfFirmatario());
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); if (Validator.isNotNull(firma.getDtFirma())) {
if (soggetti.size() > 0 ){ title.append(" del ")
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); .append(dateFormatDate.format(firma.getDtFirma()));
}
title.append("</li>");
}
title.append("</ul>");
} }
title.append("<li>"+firma.getCfFirmatario()); %>
if(Validator.isNotNull(firma.getDtFirma())){ <span class="fa fa-check icon-asseverazioni tooltip-info"
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); title="<%=title.toString() %>" style="color:green">
} <sub style="font-weight: bold"><%= firme.numeroFirme() %></sub>
title.append("</li>"); </span>
} <%
title.append("</ul>"); } else {
} %>
} <span class="fa fa-close icon-asseverazioni tooltip-info"
if(firme.numeroFirme()>0){ title="Non ci sono firme sul file" style="color:red"></span>
%> <%
<span class="fa fa-check icon-asseverazioni tooltip-info" title="<%=title.toString() %>" style="color:green"> }
<sub style="font-weight: bold"><%=firme.numeroFirme() %></sub> %>
</span> </td>
<% <td>
}else{ <%
%> if (DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())) {
<span class="fa fa-close icon-asseverazioni tooltip-info" title="Non ci sono firme sul file" style="color:red"></span> DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica
<% .getClassPk());
} if (adding!=null) {
%> out.print(adding.getFullDescription());
</td> }
<td> } else if (FineLavori.class.getName().equalsIgnoreCase(docPratica
<% .getClassName())) {
String description = StringPool.BLANK; FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica
.getClassPk());
if(DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())){ if (adding!=null) {
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); out.print(adding.getFullDescription());
if(adding!=null){ }
//description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ; } else if (Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())) {
description = adding.getFullDescription(); Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica
} .getClassPk());
}else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){ if (adding!=null) {
FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); out.print(adding.getFullDescription());
if(adding!=null){ }
description = adding.getFullDescription() ; }
} %>
}else if(Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())){ </td>
Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); <td>
if(adding!=null){ <%
description = adding.getFullDescription() ; // Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere
} // gli allegati
} DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica
.getDettPraticaIdRimozione());
out.print(description); if (removing != null) {
%> out.print(removing.getFullDescription());
</td> }
<td> %>
<% </td>
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati <td class="text-center text-nowrap">
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); <c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId()) %>">
if(removing != null){ <liferay-portlet:renderURL var="previewURL"
%> windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<%= removing.getFullDescription() %> <liferay-portlet:param name="fileEntryId"
<% value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" />
} <liferay-portlet:param name="mvcPath"
%> value="/html/common/preview_file_entry.jsp" />
</td> </liferay-portlet:renderURL>
<td class="text-center text-nowrap"> <liferay-ui:icon id='<%= "open_" + docPraticaId %>' message="Visualizza"
<c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId())%>"> linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard"
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> url="<%= previewURL %>" useDialog="true" />
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" /> <liferay-ui:icon id='<%= "download_" + docPraticaId %>' message="Download"
<liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" /> linkCssClass="btn btn-action" iconCssClass="fa fa-download"
</liferay-portlet:renderURL> url="<%= docPratica.getDownloadUrl(themeDisplay) %>" />
</c:if>
<liferay-ui:icon id='<%="open_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard" message="Visualizza" url="<%=previewURL%>" useDialog="true"/> </td>
<liferay-ui:icon id='<%="download_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-download" message="Download" url="<%=docPratica.getDownloadUrl(themeDisplay)%>" /> </tr>
</c:if> <%
</td>
</tr>
<%
} }
%> %>
</tbody> </tbody>
</table> </table>
<% <%
} }
%> %>
</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) { trigger: '.allegati-tipologia-table .tooltip-info',
new Y.TooltipDelegate( position: 'top',
{ cssClass: 'tooltip-help',
trigger: '.allegati-tipologia-table .tooltip-info', html: true,
position: 'top', opacity: 1,
cssClass: 'tooltip-help', });
html: true, });
opacity: 1
}
);
}
);
</script> </script>

46
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>

400
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"%> <%@include file="/html/fascicolo/init.jsp"%>
<%@page import="java.util.Map.Entry"%> <liferay-portlet:actionURL varImpl="searchURL" name="searchURL" />
<%@page import="java.util.Collections"%>
<%@page import="java.util.Date" %>
<%@ include file="/html/fascicolo/init.jsp" %>
<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,122 +59,98 @@ 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" />
<liferay-ui:error key="error-sospesa" message="message-error-pratica-sospesa"/> <liferay-ui:error key="error-sospesa" message="message-error-pratica-sospesa" />
<liferay-ui:error key="error-ripresa" message="message-error-pratica-ripresa"/> <liferay-ui:error key="error-ripresa" message="message-error-pratica-ripresa" />
<liferay-ui:success key="success-workflow-sospeso" message="message-success-workflow-sospeso"/> <liferay-ui:success key="success-workflow-sospeso" message="message-success-workflow-sospeso" />
<liferay-ui:success key="success-workflow-ripreso" message="message-success-workflow-ripreso"/> <liferay-ui:success key="success-workflow-ripreso" message="message-success-workflow-ripreso" />
<liferay-ui:error key="error-workflow-sospeso" message="message-error-workflow-sospeso"/> <liferay-ui:error key="error-workflow-sospeso" message="message-error-workflow-sospeso" />
<liferay-ui:error key="error-workflow-ripreso" message="message-error-workflow-ripreso"/> <liferay-ui:error key="error-workflow-ripreso" message="message-error-workflow-ripreso" />
<liferay-ui:error key="error-workflow-stato-incosistente" message="message-error-stato-workflow-incosistente"/> <liferay-ui:error key="error-workflow-stato-incosistente" message="message-error-stato-workflow-incosistente" />
<liferay-ui:success key="success-cambio-stato" message="message-success-stato-cambiato"/> <liferay-ui:success key="success-cambio-stato" message="message-success-stato-cambiato" />
<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 %>" >
<liferay-portlet:param name="comune" value="<%=comuneSearch %>"/> <liferay-portlet:param name="comune" value="<%= comuneSearch %>"/>
<liferay-portlet:param name="provinciaJS" value="<%=provinciaSearch %>"/> <liferay-portlet:param name="provinciaJS" value="<%= provinciaSearch %>"/>
</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 %>" />
<liferay-portlet:param name="dataRichiestaFine" value="<%=dataAlSearch %>"/> <liferay-portlet:param name="dataRichiestaFine" value="<%= dataAlSearch %>" />
<liferay-portlet:param name="numeroProgetto" value="<%=numeroProgettoSearch %>"/> <liferay-portlet:param name="numeroProgetto" value="<%= numeroProgettoSearch %>" />
<liferay-portlet:param name="protocollo" value="<%=protocolloSearch %>"/> <liferay-portlet:param name="protocollo" value="<%= protocolloSearch %>" />
<liferay-portlet:param name="tipoPratica" value="<%=tipoPraticaSearch %>"/> <liferay-portlet:param name="tipoPratica" value="<%= tipoPraticaSearch %>" />
<liferay-portlet:param name="descIntervento" value="<%=descInterventoSearch %>"/> <liferay-portlet:param name="descIntervento" value="<%= descInterventoSearch %>" />
<liferay-portlet:param name="statoPratica" value="<%=statoPraticaSearch %>"/> <liferay-portlet:param name="statoPratica" value="<%= statoPraticaSearch %>" />
<liferay-portlet:param name="committente" value="<%=committenteSearch %>"/> <liferay-portlet:param name="committente" value="<%= committenteSearch %>" />
<liferay-portlet:param name="tecnicoIstruttore" value="<%=tecnicoIstruttoreSearch %>"/> <liferay-portlet:param name="tecnicoIstruttore" value="<%= tecnicoIstruttoreSearch %>" />
<liferay-portlet:param name="titolareDigitale" value="<%=titolareDigitaleSearch %>"/> <liferay-portlet:param name="titolareDigitale" value="<%= titolareDigitaleSearch %>" />
<liferay-portlet:param name="soggettiInterconnessi" value="<%=soggettiInterconnessiSearch %>"/> <liferay-portlet:param name="soggettiInterconnessi" value="<%= soggettiInterconnessiSearch %>" />
<liferay-portlet:param name="ufficio" value="<%=ufficioSearch %>"/> <liferay-portlet:param name="ufficio" value="<%= ufficioSearch %>" />
<liferay-portlet:param name="comune" value="<%=comuneSearch %>"/> <liferay-portlet:param name="comune" value="<%= comuneSearch %>" />
<liferay-portlet:param name="provincia" value="<%=provinciaSearch %>"/> <liferay-portlet:param name="provincia" value="<%= provinciaSearch %>" />
<liferay-portlet:param name="tipoIntervento" value="<%=tipoIntervento %>"/> <liferay-portlet:param name="tipoIntervento" value="<%= tipoIntervento %>" />
<liferay-portlet:param name="praticaAperta" value="<%=praticaAperta %>"/> <liferay-portlet:param name="praticaAperta" value="<%= praticaAperta %>" />
<liferay-portlet:param name="indirizzo" value="<%=indirizzo %>"/> <liferay-portlet:param name="indirizzo" value="<%= indirizzo %>" />
<liferay-portlet:param name="ordinaPer" value="<%=ordinaPer %>"/> <liferay-portlet:param name="ordinaPer" value="<%= ordinaPer %>" />
<liferay-portlet:param name="ordinaTipo" value="<%=ordinaTipo %>"/> <liferay-portlet:param name="ordinaTipo" value="<%= ordinaTipo %>" />
<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");
if (Validator.isNotNull(intPraticaId)) {
String intPraticaId = doc.get("intPraticaId"); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId));
if (Validator.isNotNull(intPraticaId)) { if (Validator.isNotNull(intPratica)) {
listaIntPratica.add(intPratica);
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); } else {
if (Validator.isNotNull(intPratica)) { Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class);
listaIntPratica.add(intPratica); indexer.delete(company.getCompanyId(), doc.getUID());
}else{ }
Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); }
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,106 +158,111 @@ 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) %>">
<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %> <span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info"
</span> title="Sottoposta a parere" style="padding:5px;margin-right:5px">
<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>
</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"
<i class="fa fa-exclamation-circle txt-orange" style="font-size:33px"></i> style="padding:0">
</span> <i class="fa fa-exclamation-circle txt-orange" style="font-size:33px"></i>
</span>
</c:if> </c:if>
</div> </div>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<!-- SORTEGGIATA --> <!-- SORTEGGIATA -->
<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(
for(Soggetto committente : committenti){ lastDettPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE);
builder.append(committente.getTitle()+"<br/>"+committente.getCodiceFiscale()) for (Soggetto committente : committenti) {
.append(StringPool.COMMA_AND_SPACE).append("<br/><br/>"); if (builder.length() > 0) {
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,
StringBuilder sb = new StringBuilder(); QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_Avviso", "createDate",
if(!avvisi.isEmpty()){ false));
sb.append("<ul class='avvisi-tooltip'>"); StringBuilder sb = new StringBuilder();
for(Avviso avviso : avvisi){ if (!avvisi.isEmpty()) {
String tipoDocumento = avviso.translateTipoDocumento(); sb.append("<ul class='avvisi-tooltip'>");
String testoEvento =LanguageUtil.get(pageContext, tipoDocumento); for (Avviso avviso : avvisi) {
sb.append("<li class='avviso-tooltip'>"+testoEvento+"</li>"); String tipoDocumento = avviso.translateTipoDocumento();
} String testoEvento = LanguageUtil.get(pageContext, tipoDocumento);
sb.append("</ul>"); sb.append("<li class='avviso-tooltip'>").append(testoEvento).append("</li>");
}
sb.append("</ul>");
%> %>
<liferay-portlet:renderURL var="fascicoloAvvisiURL"> <liferay-portlet:renderURL var="fascicoloAvvisiURL">
<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">
@ -332,14 +281,15 @@ String keywords = StringPool.BLANK;
</span> </span>
</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>
</span> </span>
</c:if> </c:if>
<c:if test="<%= intPratica.isFineLavoriTotale()%>"> <c:if test="<%= intPratica.isFineLavoriTotale() %>">
<span class="btn status-icon tooltip-info btn-action" title="Fine Lavori Totale presente"> <span class="btn status-icon tooltip-info btn-action" title="Fine Lavori Totale presente">
<i class="fa fa-gavel relative"> <i class="fa fa-gavel relative">
<span class="fa-hover fa-top-right txt-green txt-bold">T</span> <span class="fa-hover fa-top-right txt-green txt-bold">T</span>
@ -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) { trigger: '.tooltip-info',
new Y.TooltipDelegate( position: 'top',
{ cssClass: 'tooltip-help',
trigger: '.tooltip-info', html: true,
position: 'top', opacity: 1,
cssClass: 'tooltip-help', });
html: true, });
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 %>"

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

@ -1,71 +1,58 @@
<%@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"%> <%@include file="/html/fascicolofe/init.jsp"%>
<%@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" %>
<% <%
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">
<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>
<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,110 +60,82 @@
</div> </div>
</div> </div>
</aui:form> </aui:form>
<!-- ADT BUG FE ID = 31 --> <aui:script use="aui-base">
<%-- A.one("#<portlet:namespace/>appSignCheckbox").on('change', function (event) {
<liferay-portlet:actionURL name="generaFirmaAnnullamento" var="generaFirmaAnnullamentoURL"> var checked = event.currentTarget.get('checked');
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/> if (checked) {
<liferay-portlet:param name="errorUrl" value="<%=redirectErrorURL%>"/> A.one("#<portlet:namespace />signButton").removeClass('disabled').set('disabled', false);
<liferay-portlet:param name="redirect" value="<%=okURL%>"/> } else {
</liferay-portlet:actionURL> A.one("#<portlet:namespace />signButton").addClass('disabled').set('disabled', true);
}
<aui:form name="fm_abort" action="<%=generaFirmaAnnullamentoURL %>" method="post"> });
<div class="container-fluid"> </aui:script>
<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">
A.one("#<portlet:namespace/>appSignCheckbox").on('change', function(event){
var checked = event.currentTarget.get('checked');
if(checked){
A.one("#<portlet:namespace/>signButton").removeClass('disabled').set('disabled', false);
}else{
A.one("#<portlet:namespace/>signButton").addClass('disabled').set('disabled', true);
}
});
</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_"
+ intPratica.getDocPraticaAnnullamentoId() %>'
linkCssClass="btn btn-primary btn-action"
iconCssClass="fa fa-download" url="<%=downloadUrl%>" />
</div> </div>
<liferay-portlet:actionURL name="deleteFileAnnullamento" var="deleteDocURL"> <liferay-portlet:actionURL name="deleteFileAnnullamento"
<liferay-portlet:param name="docPraticaAnnullamentoId" value="<%=String.valueOf(intPratica.getDocPraticaAnnullamentoId())%>" /> 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(
'click', 'click',
function(event) { function(event) {
@ -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) { trigger: '.tooltip-info',
new Y.TooltipDelegate( position: 'top',
{ cssClass: 'tooltip-help',
trigger: '.tooltip-info', html: true,
position: 'top', opacity: 1,
cssClass: 'tooltip-help', });
html: true, });
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', id: '<%= dialogId %>'
function() { });
}, ['aui-base','liferay-util-window']);
Liferay.fire(
'closeWindow',
{
id: '<%= dialogId %>'
}
);
},
['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"

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

@ -1,61 +1,49 @@
<%@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()) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(delega.getDettPraticaId()) %>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(delega.getDettPraticaId()) %>" />
<liferay-portlet:param name="backURL" value="<%=backUrl %>" /> <liferay-portlet:param name="backURL" value="<%= backUrl %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="annullaDelega" var="annullaDelegaURL"> <liferay-portlet:actionURL name="annullaDelega" var="annullaDelegaURL">
<liferay-portlet:param name="delegaId" value="<%= String.valueOf(delega.getPrimaryKey()) %>" /> <liferay-portlet:param name="delegaId" value="<%= String.valueOf(delega.getPrimaryKey()) %>" />
<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) { trigger: '.tooltip-info',
new Y.TooltipDelegate( position: 'top',
{ cssClass: 'tooltip-help',
trigger: '.tooltip-info', html: true,
position: 'top', opacity: 1,
cssClass: 'tooltip-help', });
html: true, });
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>

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

@ -1,292 +1,230 @@
<%@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", 0);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); 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");
String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK);
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl"); DettPratica dettPratica = null;
String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); IntPratica intPratica = null;
DettPratica dettPratica = null; if (dettPraticaId != 0) {
IntPratica intPratica = null; dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if(dettPraticaId!=0l){ intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); intPraticaId = dettPratica.getIntPraticaId();
intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); } else {
intPraticaId = dettPratica.getIntPraticaId(); intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
}else{ dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if(dettPratica==null){
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
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
boolean geoDisabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),dettPratica.getDettPraticaId()) .getDettPraticaId()) || !ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId());
|| !ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId()); String[] pageDatiDomanda = new String[] { "page_dettagli_principali", "page_soggetti", "page_desc_edificio",
"page_geologica", "page_allegati", "page_asseverazioni_riepilogo" };
String[] pageDatiDomanda = new String[] {"page_dettagli_principali", "page_soggetti", "page_desc_edificio", if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)) {
"page_geologica", "page_allegati", "page_asseverazioni_riepilogo"}; pageDatiDomanda = Arrays.copyOf(pageDatiDomanda, pageDatiDomanda.length-1);
}
if(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)){ String[][] categorySections = { pageDatiDomanda };
pageDatiDomanda = Arrays.copyOf(pageDatiDomanda, pageDatiDomanda.length-1); String[] _CATEGORY_NAMES = { "cat_dati_domanda" };
}
String[][] categorySections = {pageDatiDomanda};
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>
<liferay-util:buffer var="htmlTop">
<c:if test="<%= dettPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE %>">
<aui:form name="fmDomande" onSubmit="preventDefault();" action="<%= Validator.isNull(tipoIntegrazione) ? saveDettPraticaURL : saveTipoPraticaURL %>"> <%@include file="/html/fascicolofe/navigator/common/html_top.jspf"%>
</c:if>
<aui:model-context bean="<%=dettPratica %>" model="<%=DettPratica.class %>"></aui:model-context> <c:if test="<%= dettPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE %>">
<%@include file="/html/fascicolofe/navigator/common/html_top_pagamento.jspf"%>
</c:if>
</liferay-util:buffer>
<liferay-util:buffer var="htmlBottom">
<c:if test="<%= dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT %>">
<%@include file="/html/fascicolofe/navigator/common/html_bottom.jspf"%>
</c:if>
</liferay-util:buffer>
<aui:form name="fmDomande" onSubmit="preventDefault();" action="<%= Validator.isNull(tipoIntegrazione) ?
saveDettPraticaURL : saveTipoPraticaURL %>">
<aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" />
<aui:input type="hidden" name="bozza" /> <aui:input type="hidden" name="bozza" />
<aui:input type="hidden" name="disabledSubmit" value="<%= disabledInput %>" /> <aui:input type="hidden" name="disabledSubmit" value="<%= disabledInput %>" />
<aui:input type="hidden" name="geoDisabledSubmit" value="<%= geoDisabledInput %>" /> <aui:input type="hidden" name="geoDisabledSubmit" value="<%= geoDisabledInput %>" />
<aui:input type="hidden" name="current_tab" value="<%=current_tab %>"/> <aui:input type="hidden" name="current_tab" value="<%= current_tab %>" />
<aui:input type="hidden" name="tipoIntegrazione" value="<%= tipoIntegrazione %>" /> <aui:input type="hidden" name="tipoIntegrazione" value="<%= tipoIntegrazione %>" />
<liferay-ui:form-navigator categoryNames="<%= _CATEGORY_NAMES %>" displayStyle="steps" formName="fmDomande"
<liferay-util:buffer var="htmlTop"> categorySections="<%= categorySections %>" jspPath="/html/fascicolofe/navigator/domanda/"
<c:if test="<%=dettPratica.getStatus()!=WorkflowConstants.STATUS_INCOMPLETE %>"> htmlBottom="<%= htmlBottom %>" showButtons="false" htmlTop="<%= htmlTop %>" />
<%@ include file="/html/fascicolofe/navigator/common/html_top.jspf" %>
</c:if>
<c:if test="<%=dettPratica.getStatus()==WorkflowConstants.STATUS_INCOMPLETE %>">
<%@ include file="/html/fascicolofe/navigator/common/html_top_pagamento.jspf" %>
</c:if>
</liferay-util:buffer>
<liferay-util:buffer var="htmlBottom">
<c:if test="<%=dettPratica.getStatus()==WorkflowConstants.STATUS_DRAFT %>">
<%@ include file="/html/fascicolofe/navigator/common/html_bottom.jspf" %>
</c:if>
</liferay-util:buffer>
<liferay-ui:form-navigator
categoryNames="<%= _CATEGORY_NAMES %>"
displayStyle="steps"
categorySections="<%= categorySections %>"
formName="fmDomande"
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() %>">
<portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.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: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) %>" />
<liferay-portlet:param name="backURL" value="<%= currentURL %>" /> <liferay-portlet:param name="backURL" value="<%= currentURL %>" />
<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>
<c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<portlet:renderURL var="verifyRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<portlet:param name="mvcPath" value="/html/fascicolofe/verify_cambio_soggetti.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/verify_cambio_soggetti.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: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"
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/> windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet: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){ window.location.href = "<%= refreshURL %>"
window.location.href = "<%= refreshURL %>" }
} Loading.end();
Loading.end();
});
modalWin.after('hide', function(event) {
Loading.start();
if(verifyPopupReady){
window.location.href = "<%= refreshURL %>"
}
Loading.end();
});
modalWin.after('destroy', function(event) {
Loading.start();
if(verifyPopupReady){
window.location.href = "<%= refreshURL %>"
}
Loading.end();
});
}); });
Liferay.on('verifyPopup-ready',function(event) { modalWin.after('hide', function (event) {
verifyPopupReady=true; Loading.start();
if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
Loading.end();
}); });
</aui:script> modalWin.after('destroy', function (event) {
Loading.start();
<script type="text/javascript"> if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
Liferay.provide( }
window, Loading.end();
'saveDettPratica', });
function(bozza, cmd, area) { });
Loading.start();
AUI().one('#<portlet:namespace />bozza').set('value',bozza);
AUI().one('#<portlet:namespace />cmd').set('value',cmd);
if(area!=undefined && area!=""){
AUI().one('#<portlet:namespace />verifyArea').set('value',area);
}
submitForm(document.<portlet:namespace />fmDomande);
},
['aui-base']
);
// ADT BUG FE ID = 14
Liferay.on(
'portletReady',
function(event) {
$("#isBottomBar").hide();
$("#isTopBar").hide();
$('[id*="_portosfeportlet_verificaDiv_"]').hide();
var queryParams = window.location.search.substr(1).split('&').reduce(function (q, query) {
var chunks = query.split('=');
var key = chunks[0];
var value = chunks[1];
return (q[key] = value, q);
}, {});
var saveAndVerify = "false";
for (var property in queryParams) {
if (queryParams.hasOwnProperty(property) &&
property.toString().endsWith("saveAndVerify")) {
saveAndVerify = queryParams[property];
}
}
if(saveAndVerify === "true"){ Liferay.on('verifyPopup-ready', function (event) {
//$("[name='bodyVerifyPopUp']").show(); verifyPopupReady = true;
$("#isTopBar").show(); });
$("#isBottomBar").hide(); </aui:script>
$('[id*="_portosfeportlet_verificaDiv_"]').show(); <script>
} Liferay.provide(window, 'saveDettPratica', function (bozza, cmd, area) {
} Loading.start();
); AUI().one('#<portlet:namespace />bozza').set('value', bozza);
AUI().one('#<portlet:namespace />cmd').set('value', cmd);
if (area != undefined && area != "") {
AUI().one('#<portlet:namespace />verifyArea').set('value', area);
}
submitForm(document.<portlet:namespace />fmDomande);
}, ['aui-base']);
Liferay.on('portletReady', function (event) {
$("#isBottomBar").hide();
$("#isTopBar").hide();
$('[id*="_portosfeportlet_verificaDiv_"]').hide();
var queryParams = window.location.search.substr(1).split('&').reduce(function (q, query) {
var chunks = query.split('=');
var key = chunks[0];
var value = chunks[1];
return (q[key] = value, q);
}, {});
var saveAndVerify = "false";
for (var property in queryParams) {
if (queryParams.hasOwnProperty(property) && property.toString().endsWith("saveAndVerify")) {
saveAndVerify = queryParams[property];
}
}
if (saveAndVerify === "true") {
$("#isTopBar").show();
$("#isBottomBar").hide();
$('[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', var nodeObject = event.currentTarget;
function(event){ A.one('#<portlet:namespace />current_tab').set('value', nodeObject.attr('data-sectionid'));
var nodeObject = event.currentTarget; }, 'li.tab');
A.one('#<portlet:namespace/>current_tab').set('value', nodeObject.attr('data-sectionid'));
}, var current_tab = '<%=current_tab%>';
'li.tab'); if (current_tab != '' && document.location.hash == '') {
var current_tab = '<%=current_tab%>'; document.location.hash='_1_WAR_portosfeportlet_tab=<%=current_tab%>';
}
if(current_tab!='' && document.location.hash==''){
document.location.hash='_1_WAR_portosfeportlet_tab=<%=current_tab%>';
}
</aui:script> </aui:script>

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>

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

@ -1,58 +1,55 @@
<%@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;
} }
.anteprimaasseverazione p, .anteprimaasseverazione li { .anteprimaasseverazione p, .anteprimaasseverazione li {
font-size: 12px; font-size: 12px;
margin-bottom: 6px; margin-bottom: 6px;
} }
.anteprimaasseverazione ul { .anteprimaasseverazione ul {
list-style-type: square; list-style-type: square;
list-style-position: inside; list-style-position: inside;
} }
.anteprimaasseverazione li { .anteprimaasseverazione li {
display: list-item !important; display: list-item !important;
} }
.anteprimaasseverazione .indent { .anteprimaasseverazione .indent {
margin-left: 24px; margin-left: 24px;
list-style-type: circle; list-style-type: circle;
margin-bottom: 3px; margin-bottom: 3px;
} }
</style> </style>
<div class="container-fluid clearfix"> <div class="container-fluid clearfix">
<div class="row"> <div class="row">
<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;
if(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione())){ if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione())) {
label = "gestione-soggetti"; label = "gestione-soggetti";
}else if(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione())){ } else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione())) {
label = "richiesta-integrazione"; label = "richiesta-integrazione";
}else if(TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione())){ } else if (TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione())) {
label = "variante"; label = "variante";
}else if(Validator.isNull(dettPraticaId)){ }else if (Validator.isNull(dettPraticaId)) {
label = "new-fascicolo"; label = "new-fascicolo";
} else { } else {
label = "edit-fascicolo"; label = "edit-fascicolo";
} }
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>

68
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()
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> || DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>">
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" /> <liferay-portlet:renderURL var="calcolaURL"
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/> windowState="<%= LiferayWindowState.POP_UP.toString() %>">
</liferay-portlet:renderURL> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-ui:icon <liferay-portlet:param name="mvcPath"
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"btn btn-primary":"btn btn-primary disabled" %>' value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
iconCssClass="fa fa-cogs" </liferay-portlet:renderURL>
useDialog = "true" <liferay-ui:icon
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPratica.getDettPraticaId())>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>' linkCssClass='<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ?
url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?calcolaURL:StringPool.DASH %>" "btn btn-primary" : "btn btn-primary disabled" %>'
/> iconCssClass="fa fa-cogs" useDialog = "true"
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPratica
.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>

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

@ -1,359 +1,336 @@
<%@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();
String formName = "fmDomande"; String formName = "fmDomande";
String buttonId = "fmbuttonsalvaconferma_"+randomId; String buttonId = "fmbuttonsalvaconferma_" + randomId;
String buttonAsseverazioneId = "fmbuttonasseverazione_"+randomId; String buttonAsseverazioneId = "fmbuttonasseverazione_" + randomId;
String script = String script =
"var el_relazioni = $('textarea[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Relazioni]');" + "var el_relazioni = $('textarea[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Relazioni]');" +
"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');" +
"var err_coniugio = (el_coniugiochk.length == 0);" +
"console.log('length: ' + el_relazioni.length);" + "var err_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));" +
"el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});" +
"var err_coniugio = (el_coniugiochk.length == 0);" + "el_relazioni.css({'border-color':(err_relazioni ?'#a94442' : '#ccc')});" +
"var err_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));" + "if (err_coniugio || err_relazioni) {" +
"$('#" + renderResponse.getNamespace() + "{{prefix}}SaveAndCloseDiv_" + randomId + "').parent().scrollTop(0);" +
"el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});" + "return false;" +
"el_relazioni.css({'border-color':(err_relazioni ?'#a94442' : '#ccc')});" + "}" +
"}" +
"if (err_coniugio || err_relazioni) {" + "saveDettPratica(false, '{{type}}');";
"$('#" + renderResponse.getNamespace() + "{{prefix}}SaveAndCloseDiv_" + randomId + "').parent().scrollTop(0);" + %>
"return false;" + <aui:input type="hidden" name="<%= Constants.CMD %>" value="" />
"}" +
"}" +
"saveDettPratica(false, '{{type}}');";
%>
<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()%>">
<liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza" url="javascript:saveDettPratica(true)"
<c:if test="<%= intPratica.getUserId() == user.getUserId()%>"> linkCssClass="btn" />
<liferay-ui:icon </c:if>
iconCssClass="fa fa-save" <c:if test="<%= intPratica.getUserId() == user.getUserId()
message="salva-bozza" && !DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId)
url="javascript:saveDettPratica(true);" && !AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), dettPraticaId) %>">
linkCssClass="btn" <liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-verifica" linkCssClass="btn btn-primary"
/> url="javascript:saveDettPratica(false, 'domanda', 'verifyFascicolo')" />
</c:if> </c:if>
<c:if test="<%= intPratica.getUserId() == user.getUserId() <c:if test="<%= DelegheUtil.canCompilaDomanda(user.getUserId(), dettPraticaId) %>">
&& !DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) <liferay-ui:icon iconCssClass="fa fa-users"
&& !AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), dettPraticaId)%>"> linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId) ? "btn"
:"btn disabled" %>'
<liferay-ui:icon message="gestione-deleghe" url="javascript:saveDettPratica(false, 'domanda', 'verifyDeleghe')" />
iconCssClass="fa fa-check-square" </c:if>
message="salva-verifica" <c:if test="<%= DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>">
url="javascript:saveDettPratica(false, 'domanda', 'verifyFascicolo');" <%
linkCssClass="btn btn-primary" boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese();
/> boolean isIntegrazione = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil
</c:if> .RICHIESTA_INTEGRAZIONE);
Map<String,Object> dataMap = new HashMap<String, Object>();
<c:if test="<%=DelegheUtil.canCompilaDomanda(user.getUserId(),dettPraticaId) %>"> dataMap.put("id", renderResponse.getNamespace() + "openVerificaFascicolo");
<liferay-ui:icon %>
iconCssClass="fa fa-users" <liferay-portlet:renderURL var="completedURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?"btn":"btn disabled" %>' <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/completed_fascicolo.jsp"/>
message="gestione-deleghe" <liferay-portlet:param name="classPk" value="<%= String.valueOf(dettPraticaId) %>" />
url="javascript:saveDettPratica(false, 'domanda', 'verifyDeleghe');" <liferay-portlet:param name="className" value="<%= DettPratica.class.getName() %>" />
/> <liferay-portlet:param name="comingFrom" value="domanda" />
</liferay-portlet:renderURL>
<c:if test="<%= isIntegrazione %>">
<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="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= completedURL %>" />
</liferay-portlet:actionURL>
<liferay-ui:icon linkCssClass='<%= ValidazionePraticaUtil.canCompleteIntegrazione(dettPraticaId) ?
"btn btn-primary" : "btn btn-primary disabled" %>'
iconCssClass="fa fa-check" message="Concludi Integrazione" url="<%= completeIntegrazioneURL %>"
data="<%= dataMap %>" />
</c:if> </c:if>
<c:if test="<%= !isIntegrazione %>">
<c:if test="<%= DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>"> <c:if test="<%= isEsente %>">
<liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL"
<% windowState="<%= LiferayWindowState.POP_UP.toString() %>">
boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese(); <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" />
boolean isIntegrazione = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE); <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
%>
<%-- <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>();
dataMap.put("id", renderResponse.getNamespace()+"openVerificaFascicolo");
%>
<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="classPk" value="<%=String.valueOf(dettPraticaId)%>" />
<liferay-portlet:param name="className" value="<%=DettPratica.class.getName()%>" />
<liferay-portlet:param name="comingFrom" value="domanda" />
</liferay-portlet:renderURL>
<c:if test="<%= isIntegrazione %>">
<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="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) ?"btn btn-primary":"btn btn-primary disabled" %>' linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?
iconCssClass="fa fa-check" "btn btn-primary" : "btn btn-primary disabled" %>'
message="Concludi Integrazione" iconCssClass="fa fa-check" useDialog="true" message="Concludi Domanda"
url="<%= completeIntegrazioneURL %>" url="<%= completeDomandaEsenteURL %>" data="<%= dataMap %>" />
data="<%= dataMap %>"
/>
</c:if> </c:if>
<c:if test="<%= !isIntegrazione %>"> <c:if test="<%= !isEsente %>">
<c:if test="<%= isEsente %>"> <liferay-ui:icon iconCssClass="fa fa-cogs"
<liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> linkCssClass='<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ?
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/> "btn btn-primary" : "btn btn-primary disabled" %>'
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId) > 0 ?
<liferay-portlet:param name="redirect" value="<%= completedURL %>" /> LanguageUtil.get(pageContext, "dati-pagamento")
</liferay-portlet:actionURL> : LanguageUtil.get(pageContext, "calcola-importo") %>'
<liferay-ui:icon url="javascript:saveDettPratica(false, 'domanda', 'verifyPagamenti')"
linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>' data="<%= dataMap %>" />
iconCssClass="fa fa-check"
useDialog="<%= true %>"
message="Concludi Domanda"
url="<%= completeDomandaEsenteURL %>"
data="<%= dataMap %>"
/>
</c:if>
<c:if test="<%= !isEsente %>">
<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');"
data="<%= dataMap %>"
/>
</c:if>
</c:if> </c:if>
</c:if> </c:if>
</c:if>
<c:if test="<%=DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) && !DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>"> <c:if test="<%= DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) &&
<liferay-ui:icon !DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>">
iconCssClass="fa fa-save" <liferay-ui:icon iconCssClass="fa fa-save" message="save" url="javascript:saveDettPratica(true)"
message="save" linkCssClass="btn" />
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'>")
tooltipSection.append("<li class='item-body-modal'>"+LanguageUtil.get(pageContext, incomplete)+"</li>"); .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 url="javascript:void(0)"
id="<%=buttonId %>" linkCssClass='<%= validated ? "btn btn-primary" : "btn btn-primary disabled" %>' />
iconCssClass="fa fa-check-circle"
message="concludi-delega"
url="javascript:void(0)"
linkCssClass='<%= !validated ? "btn btn-primary disabled" : "btn btn-primary" %>'
/>
</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: {" +
"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>');"+ "success: function (event, id, obj) {" +
"body.ancestor('.modal-body').next('.modal-footer').remove();return;}"+ "var response = this.get('responseData');" +
"}, complete: function(event){A.one('#"+renderResponse.getNamespace()+"dgSaveAndCloseDiv_"+randomId+"').show();modal.show();}"+ "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.ancestor('.modal-body').next('.modal-footer').remove();" +
"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" <div id='<%= renderResponse.getNamespace() + "asSaveAndCloseDiv_" + randomId %>' class="hide">
message="Assevera"
url="#"
linkCssClass="btn btn-primary"
/>
<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
for(Asseverazione asseverazione : asseverazioni){ .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, user.getScreenName(),
%> new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null);
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
if (Validator.isNull(testoAsseverazione)) { .anteprimaAsseverazione(asseverazione.getTipologia(), user,
testoAsseverazione = AsseverazioniUtil.retrieveAsseverazioneText(asseverazione, user.getScreenName()); dettPratica, null);
} if (Validator.isNull(testoAsseverazione)) {
testoAsseverazione = AsseverazioniUtil.retrieveAsseverazioneText(
asseverazione, user.getScreenName());
}
%> %>
<%= testoAsseverazione %> <%= testoAsseverazione %>
</c:if> </c:if>
</p> </p>
</li> </li>
<% <%
} }
%> %>
</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>

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

@ -1,45 +1,35 @@
<%@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"%>
<%@ include file="/html/init.jsp" %> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@include file="/html/init.jsp"%>
<% <%
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
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', id: '<%= dialogId %>'
function() { });
}, ['aui-base','liferay-util-window']);
Liferay.fire(
'closeWindow',
{
id: '<%= dialogId %>'
}
);
},
['aui-base','liferay-util-window']
);
</aui:script> </aui:script>

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

@ -1,77 +1,61 @@
<%@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>
</div> </div>
</c:when> </c:when>
<c:when test="<%=AsseverazioniUtil.hasAsseverazioniAttive(dettPratica.getDettPraticaId())%>"> <c:when test="<%= AsseverazioniUtil.hasAsseverazioniAttive(dettPratica.getDettPraticaId()) %>">
<div class="alert alert-warn"> <div class="alert alert-warn">
<liferay-ui:message key="asseverazioni-attive-domanda-non-modificabile" /> <liferay-ui:message key="asseverazioni-attive-domanda-non-modificabile" />
</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"

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

@ -1,168 +1,144 @@
<%@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"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@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"%>
<% <%
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) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if(dettPratica==null){ if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if(dettPratica==null){
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
} }
}
%> %>
<liferay-portlet:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:renderURL var="verifyURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_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 name="message" value="help_message_verifica"></liferay-util:param> </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();
if(!asseverazioniIsEnabled){ if (!asseverazioniIsEnabled) {
tooltipAsseverazioni.append("<ul>"); tooltipAsseverazioni.append("<ul>");
if(!ValidazionePraticaUtil.praticaIsCompleta(dettPraticaId)){ if (!ValidazionePraticaUtil.praticaIsCompleta(dettPraticaId)) {
tooltipAsseverazioni.append("<li>Domanda incompleta</li>"); tooltipAsseverazioni.append("<li>Domanda incompleta</li>");
} }
if(SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) == 0){ if (SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) == 0) {
tooltipAsseverazioni.append("<li>Nessun soggetto</li>"); tooltipAsseverazioni.append("<li>Nessun soggetto</li>");
}
if(DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)){
tooltipAsseverazioni.append("<li>Deleghe Attive</li>");
}
tooltipAsseverazioni.append("</ul>");
} }
if (DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)) {
tooltipAsseverazioni.append("<li>Deleghe Attive</li>");
}
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) %>">
<% <%
boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese(); boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese();
%> %>
<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) ?
iconCssClass="fa fa-cogs" "btn btn-primary" : "btn btn-primary disabled" %>'
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId)>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>' iconCssClass="fa fa-cogs"
url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?calcolaURL:StringPool.DASH %>" message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId) > 0 ?
/> 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>
@ -195,43 +170,43 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
</div> </div>
</div> </div>
<% <%
for(String section:sections){ for (String section : sections) {
%> %>
<div class="row asseverazioni-title"> <div class="row asseverazioni-title">
<div class="col-xs-8"> <div class="col-xs-8">
<%=LanguageUtil.get(pageContext, "sezione-"+section) %> <%= LanguageUtil.get(pageContext, "sezione-"+section) %>
</div> </div>
<div class="col-xs-2 text-center"> <div class="col-xs-2 text-center">
<% <%
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'>")
tooltipSection.append("<li class='item-body-modal'>"+LanguageUtil.get(pageContext, incomplete)+"</li>"); .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 %>">
<button id="<portlet:namespace /><%= section %>_button" class="btn btn-primary">Dettagli</button> <button id="<portlet:namespace /><%= section %>_button" class="btn btn-primary">Dettagli</button>
<div id="<portlet:namespace /><%= section %>_div" class="hide"><%= tooltipSection.toString() %></div> <div id="<portlet:namespace /><%= section %>_div" class="hide"><%= tooltipSection.toString() %></div>
<% <%
String title = "Riepilogo Errori Sezione "+LanguageUtil.get(pageContext, "sezione-"+section); String title = "Riepilogo Errori Sezione " + LanguageUtil.get(pageContext, "sezione-" + section);
String buttonId = section+"_button"; String buttonId = section + "_button";
String contentId = section+"_div"; String contentId = section + "_div";
%> %>
<liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="<%= title%>"></liferay-util:param> <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">
@ -284,12 +258,11 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
Asseverazioni Domanda Asseverazioni Domanda
</div> </div>
<% <%
String[] esiti_complete = {AsseverazioniUtil.STATO_ESEGUITA}; String[] esiti_complete = { AsseverazioniUtil.STATO_ESEGUITA };
String[] esiti_incomplete = {AsseverazioniUtil.STATO_ASSEGNATA}; String[] esiti_incomplete = { AsseverazioniUtil.STATO_ASSEGNATA };
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);
@ -301,216 +274,204 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
boolean isRecommended = AsseverazioniUtil.isAsseverazioneDomandaRecommendedByTipoSoggetto( boolean isRecommended = AsseverazioniUtil.isAsseverazioneDomandaRecommendedByTipoSoggetto(
dettPraticaId, tipoSoggetto); dettPraticaId, tipoSoggetto);
StringBuilder content = new StringBuilder(); StringBuilder content = new StringBuilder();
if(isRequired || isRecommended){ if (isRequired || isRecommended) {
clazz+= " icon-asseverazioni fa "; clazz += " icon-asseverazioni fa ";
if(isRequired){ if (isRequired) {
if(asseverazioniMancanti.isEmpty() && asseverazioniCompletate.size()>0){ if (asseverazioniMancanti.isEmpty() && asseverazioniCompletate.size() > 0) {
title = "Asseverazioni sufficienti"; title = "Asseverazioni sufficienti";
clazz +="fa-check txt-green"; clazz +="fa-check txt-green";
}else{ } else {
if(asseverazioniCompletate.size()>0){ if (asseverazioniCompletate.size() > 0) {
title = "Asseverazioni mancanti"; title = "Asseverazioni mancanti";
clazz +="fa-check txt-orange"; clazz +="fa-check txt-orange";
}else{ } else {
title = "Asseverazioni mancanti"; title = "Asseverazioni mancanti";
clazz +="fa-close txt-red"; clazz += "fa-close txt-red";
} }
} }
} else if (isRecommended) { } else if (isRecommended) {
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) } else if (
.append("\">"); !TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())
content.append("<sub class=\"txt-bold\">") && !TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())
.append(asseverazioniCompletate.size()>0 ? asseverazioniCompletate.size() : StringPool.BLANK) && TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto)
.append("</sub>"); && DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(intPraticaId, new String[]{ DelegheUtil.TIPO_GEOLOGO }, new String[]{ DelegheUtil.STATO_ESEGUITA }) > 0) {
content.append("</span>"); clazz = "icon-asseverazioni fa fa-check txt-green";
content.append("<span class=\"").append(clazz).append("\"></span>");
} else if(
!TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) &&
!TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) &&
TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto) &&
DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(intPraticaId, new String[]{DelegheUtil.TIPO_GEOLOGO}, new String[]{DelegheUtil.STATO_ESEGUITA})>0
){
clazz = "icon-asseverazioni fa fa-check txt-green";
content.append("<span class=\"").append(clazz).append("\">").append("</span>");
} else { } else {
content.append("<span>-</span>"); content.append("<span>-</span>");
} }
%> %>
<div class="col-xs-1 asserazioni-body-title text-center"> <div class="col-xs-1 asserazioni-body-title text-center">
<%= content.toString() %> <%= content.toString() %>
</div> </div>
<% <%
} }
%> %>
</div>
</div>
<%
for(String codiceDoc:tipologiaAllegati){
String nomeAllegato = codiceDoc + " - " + LanguageUtil.get(pageContext, "label-documenti-tipologia-" + codiceDoc);
%>
<div class="row asseverazioni-title">
<div class="col-xs-12">
<liferay-ui:message key='<%= nomeAllegato %>'/>
</div> </div>
</div> </div>
<% <%
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); for (String codiceDoc : tipologiaAllegati) {
if(docPraticas.isEmpty()){ String nomeAllegato = codiceDoc + " - " + LanguageUtil.get(pageContext, "label-documenti-tipologia-"
+ codiceDoc);
%> %>
<div class="row asseverazioni-title">
<div class="row asseverazioni-section"> <div class="col-xs-12">
<div class="col-xs-6"> <liferay-ui:message key='<%= nomeAllegato %>'/>
Nessun allegato presente per la tipologia
</div> </div>
</div> </div>
<% <%
}else{ List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId,
for(DocPratica docPratica : docPraticas){ codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
%> if (docPraticas.isEmpty()) {
%>
<div class="row asseverazioni-section">
<div class="col-xs-6">
Nessun allegato presente per la tipologia
</div>
</div>
<%
} else {
for (DocPratica docPratica : docPraticas) {
%>
<div class="row asseverazioni-section"> <div class="row asseverazioni-section">
<div class="col-xs-6"> <div class="col-xs-6">
<i class="fa fa-file-o file-icon" aria-hidden="true"></i><%= docPratica.getDescLong() %> <i class="fa fa-file-o file-icon" aria-hidden="true"></i><%= docPratica.getDescLong() %>
</div> </div>
<div class="col-xs-6 asserazioni-body-title text-center"> <div class="col-xs-6 asserazioni-body-title text-center">
<% <%
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) {
String clazz = StringPool.BLANK;
for(String tipoSoggetto : tipologiaSoggetti){ StringBuilder tooltipTitle = new StringBuilder();
String clazz= StringPool.BLANK; Set<String> signaturesPerSubject = new LinkedHashSet<String>();
StringBuilder tooltipTitle = new StringBuilder(); for (String sign : signatures) {
List<String> signaturesPerSubject = new UniqueList<String>(); List<Soggetto> soggetti = SoggettoLocalServiceUtil
for(String sign : signatures){ .getValidTmpByIntPratica_CodiceFiscale( intPraticaId, sign, docPratica
.getClassPk());
List<Soggetto> soggetti = SoggettoLocalServiceUtil.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); }
}
} }
} if (signaturesPerSubject.size() > 0) {
} tooltipTitle.append("Firme:<ul>");
if(signaturesPerSubject.size()>0){ for (String firma: signaturesPerSubject) {
tooltipTitle.append("Firme:<ul>"); tooltipTitle.append("<li>").append(firma).append("</li>");
for(String firma: signaturesPerSubject){ }
tooltipTitle.append("<li>"+firma+"</li>"); tooltipTitle.append("</ul>");
} }
tooltipTitle.append("</ul>"); if (isEnoughOne) {
} clazz += " icon-asseverazioni fa ";
if (signatures.isEmpty()) {
if(isEnoughOne){ clazz += "fa-close txt-red";
clazz+= " icon-asseverazioni fa "; } else {
if(signatures.isEmpty()){ clazz += "fa-check txt-green";
clazz +="fa-close txt-red"; }
} else { } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc)) {
clazz +="fa-check txt-green"; if (TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto)
} || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)
} else if( DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc) ){ && 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; } else if (signaturesPerSubject.isEmpty()) {
} else if(signaturesPerSubject.isEmpty()){ isValid = false;
isValid = false; } else {
} else { isValid = true;
isValid = true; }
} clazz += " icon-asseverazioni fa ";
if (isValid) {
// if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){ clazz += "fa-check txt-green";
// isValid = true; } else {
// } clazz += "fa-close txt-red";
}
clazz+= " icon-asseverazioni fa "; }
if(isValid){ } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09)) {
clazz +="fa-check txt-green"; boolean isValid = false;
} else { if ((tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA)
clazz +="fa-close txt-red"; || tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI))) {
} if (dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty()) {
} isValid = true;
} else if( codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09) ){ }
boolean isValid = false; if (!isValid && dettPratica.isLavoriPubblici()
&& TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)) {
if( (tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA) || tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI)) ){ isValid = true;
if(dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty() ){ }
isValid = true; clazz += " icon-asseverazioni fa ";
} if (isValid) {
if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){ clazz += "fa-check txt-green";
isValid = true; } else {
} clazz += "fa-close txt-red";
}
clazz+= " icon-asseverazioni fa "; }
if(isValid){ } else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) {
clazz +="fa-check txt-green"; boolean isValid = true;
} else { if (signatures.isEmpty()) {
clazz +="fa-close txt-red"; List<Soggetto> ditte = SoggettoLocalServiceUtil
} .findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(),
} TipoSoggettoUtil.DITTA);
List<Soggetto> committenti = SoggettoLocalServiceUtil
} else if( codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17) ){ .findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(),
boolean isValid = true; TipoSoggettoUtil.COMMITTENTE);
if(signatures.isEmpty()){ boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil
List<Soggetto> ditte = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(), TipoSoggettoUtil.DITTA); .TIPOLOGIA_ALLEGATO_A17, ditte, committenti, dettPratica);
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(), TipoSoggettoUtil.COMMITTENTE); if (isRequired) {
boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, ditte, committenti, dettPratica); isValid = false;
if(isRequired) }
isValid = false; }
} clazz += " icon-asseverazioni fa ";
if (isValid) {
clazz+= " icon-asseverazioni fa "; clazz += "fa-check txt-green";
if(isValid){ } else {
clazz +="fa-check txt-green"; clazz += "fa-close txt-red";
} else { }
clazz +="fa-close txt-red"; } else {
} boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(
codiceDoc, tipoSoggetto);
} else { boolean isRecommended = AsseverazioniUtil
.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto);
boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto); boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici()
boolean isRecommended = AsseverazioniUtil.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto); || dettPratica.getNormLavoriNoDirettore();
if (tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI)
boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() || dettPratica.getNormLavoriNoDirettore(); && signaturesPerSubject.size() == 0) {
isRequired = false;
if(tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI) && signaturesPerSubject.size() == 0){ }
isRequired = false; if (isRequired || isRecommended) {
} clazz += " icon-asseverazioni fa ";
if (isRequired) {
if(isRequired || isRecommended){ if (signaturesPerSubject.size() > 0) {
clazz+= " icon-asseverazioni fa "; clazz += "fa-check txt-green";
if(isRequired){ } else {
if(signaturesPerSubject.size()>0){ clazz += "fa-close txt-red";
clazz +="fa-check txt-green"; }
}else{ } else if (isRecommended) {
clazz +="fa-close txt-red"; clazz += "fa-circle txt-blue";
} }
} else if (isRecommended) { }
clazz +="fa-circle txt-blue";
} }
%>
<div class="col-xs-2">
<span class='<%= clazz %> <%= !clazz.isEmpty() && tooltipTitle.length() > 0 ?
"tooltip-info" : "" %>' title='<%= tooltipTitle.toString() %>'>
<sub class="txt-bold"><%= !clazz.isEmpty() && signaturesPerSubject.size()>0 ?
signaturesPerSubject.size() : StringPool.BLANK %></sub>
</span>
</div>
<%
} }
} %>
%>
<div class="col-xs-2">
<span class='<%=clazz%> <%= !clazz.isEmpty() && tooltipTitle.length() > 0 ? "tooltip-info" : "" %>' title='<%= tooltipTitle.toString() %>'>
<sub class="txt-bold"><%= !clazz.isEmpty() && signaturesPerSubject.size()>0 ? signaturesPerSubject.size() : "" %></sub>
</span>
</div> </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) { trigger: '.tooltip-info',
new Y.TooltipDelegate( position: 'top',
{ cssClass: 'tooltip-help',
trigger: '.tooltip-info', html: true,
position: 'top', opacity: 1,
cssClass: 'tooltip-help', });
html: true, });
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">

49
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"%> <%@include file="/html/fascicolofe/init.jsp"%>
<%@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" %>
<% <%
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();
} }
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); intPraticaId = dettPratica.getIntPraticaId();
}
%> %>
<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>

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

@ -2,251 +2,214 @@
<%-- <%--
/** /**
* 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"%>
<%@ include file="/html/portlet/workflow_tasks/init.jsp" %> <%@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"%>
<% <%
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);
WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(company.getCompanyId(),
WorkflowTask workflowTask = (WorkflowTask)request.getAttribute(WebKeys.WORKFLOW_TASK); workflowTask.getWorkflowInstanceId());
WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(company.getCompanyId(), 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);
%> %>
<div class="container_gestione_attivita">
<%-- <portlet:renderURL var="backURL"> <div class="container_gestione_attivita_header">
<portlet:param name="struts_action" value="/workflow_tasks/view" /> <h2 class="container_gestione_attivita_header-title">Gestione Attività</h2>
</portlet:renderURL> </div>
<div class="container_gestione_attivita_body">
<liferay-ui:header <div class="container_gestione_attivita_body-left">
backURL="<%= backURL.toString() %>" <div class="container_gestione_attivita_body-left-dati">
localizeTitle="<%= false %>" <liferay-ui:error exception="<%= WorkflowTaskDueDateException.class %>"
title="<%= headerTitle %>" message="please-enter-a-valid-due-date" />
/>--%> <div class="lfr-asset-assigned attivita_header-item">
<aui:field-wrapper label="assigned-to">
<div class="container_gestione_attivita"> <i class="icon-user"></i>
<div class="container_gestione_attivita_header"> <c:choose>
<h2 class="container_gestione_attivita_header-title">Gestione Attività</h2> <c:when test="<%= workflowTask.isAssignedToSingleUser() %>">
</div> <liferay-ui:input-resource url="<%= PortalUtil.getUserName(workflowTask
.getAssigneeUserId(), StringPool.BLANK) %>" />
<div class="container_gestione_attivita_body"> </c:when>
<div class="container_gestione_attivita_body-left"> <c:otherwise>
<liferay-ui:input-resource url='<%= LanguageUtil.get(pageContext, "nobody") %>' />
</c:otherwise>
<div class="container_gestione_attivita_body-left-dati"> </c:choose>
</aui:field-wrapper>
<liferay-ui:error exception="<%= WorkflowTaskDueDateException.class %>" message="please-enter-a-valid-due-date" /> </div>
<div class="lfr-asset-status attivita_header-item">
<div class="lfr-asset-assigned attivita_header-item"> <aui:field-wrapper label="state">
<aui:field-wrapper label="assigned-to"> <i class="icon-th-list"></i>
<i class="icon-user"></i> <liferay-ui:input-resource url="<%= LanguageUtil.get(pageContext,
<c:choose> WorkflowInstanceLinkLocalServiceUtil.getState(companyId, groupId, className,
<c:when test="<%= workflowTask.isAssignedToSingleUser() %>"> classPK)) %>" />
<liferay-ui:input-resource url="<%= PortalUtil.getUserName(workflowTask.getAssigneeUserId(), StringPool.BLANK) %>" /> </aui:field-wrapper>
</c:when> </div>
<c:otherwise> <div class="lfr-asset-date attivita_header-item">
<liferay-ui:input-resource url='<%= LanguageUtil.get(pageContext, "nobody") %>' /> <aui:field-wrapper label="create-date">
</c:otherwise> <i class="icon-calendar"></i>
</c:choose> <liferay-ui:input-resource url="<%= dateFormatDateTime.format(workflowTask
</aui:field-wrapper> .getCreateDate()) %>" />
</aui:field-wrapper>
</div>
</div> </div>
<c:if test="<%= Validator.isNotNull(workflowTask.getDescription()) %>">
<div class="lfr-asset-status attivita_header-item"> <div class="lfr-asset-field">
<aui:field-wrapper label="description">
<aui:field-wrapper label="state"> <%= workflowTask.getDescription() %>
<i class="icon-th-list"></i> </aui:field-wrapper>
<liferay-ui:input-resource url="<%= LanguageUtil.get(pageContext, WorkflowInstanceLinkLocalServiceUtil.getState(companyId, groupId, className, classPK)) %>" /> </div>
</aui:field-wrapper>
</div>
<div class="lfr-asset-date attivita_header-item">
<aui:field-wrapper label="create-date">
<i class="icon-calendar"></i>
<liferay-ui:input-resource url="<%= dateFormatDateTime.format(workflowTask.getCreateDate()) %>" />
</aui:field-wrapper>
</div>
</div>
<c:if test="<%= Validator.isNotNull(workflowTask.getDescription()) %>">
<div class="lfr-asset-field">
<aui:field-wrapper label="description">
<%= workflowTask.getDescription() %>
</aui:field-wrapper>
</div>
</c:if>
<c:if test="<%= assetRenderer != null %>">
<%
String path = workflowHandler.render(classPK, renderRequest, renderResponse, AssetRenderer.TEMPLATE_ABSTRACT);
request.setAttribute(WebKeys.ASSET_RENDERER, assetRenderer);
request.setAttribute(WebKeys.ASSET_PUBLISHER_ABSTRACT_LENGTH, 200);
%>
<c:choose>
<c:when test="<%= path == null %>">
<%= workflowHandler.getSummary(classPK, locale) %>
</c:when>
<c:otherwise>
<liferay-util:include page="<%= path %>" portletId="<%= assetRendererFactory.getPortletId() %>" />
</c:otherwise>
</c:choose>
</c:if> </c:if>
<liferay-ui:panel-container cssClass="task-panel-container" extended="true"> <c:if test="<%= assetRenderer != null %>">
<liferay-ui:panel defaultState="closed" title="Attività e Commenti">
<% <%
List<Integer> logTypes = new ArrayList<Integer>(); String path = workflowHandler.render(classPK, renderRequest, renderResponse, AssetRenderer
.TEMPLATE_ABSTRACT);
logTypes.add(WorkflowLog.TASK_ASSIGN); request.setAttribute(WebKeys.ASSET_RENDERER, assetRenderer);
logTypes.add(WorkflowLog.TASK_COMPLETION); request.setAttribute(WebKeys.ASSET_PUBLISHER_ABSTRACT_LENGTH, 200);
logTypes.add(WorkflowLog.TASK_UPDATE);
logTypes.add(WorkflowLog.TRANSITION);
List<WorkflowLog> workflowLogs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(company.getCompanyId(), workflowTask.getWorkflowInstanceId(), logTypes, QueryUtil.ALL_POS, QueryUtil.ALL_POS, WorkflowComparatorFactoryUtil.getLogCreateDateComparator(true));
%> %>
<c:choose>
<%@ include file="/html/portlet/workflow_instances/workflow_logs.jspf" %> <c:when test="<%= path == null %>">
</liferay-ui:panel> <%= workflowHandler.getSummary(classPK, locale) %>
</c:when>
<c:otherwise>
</liferay-ui:panel-container> <liferay-util:include page="<%= path %>" portletId="<%= assetRendererFactory
.getPortletId() %>" />
</c:otherwise>
</div> </c:choose>
</c:if>
</div> <liferay-ui:panel-container cssClass="task-panel-container" extended="true">
<div class="container_gestione_attivita_body-right"> <liferay-ui:panel defaultState="closed" title="Attività e Commenti">
<%
<div class="lfr-asset-summary"> List<Integer> logTypes = new ArrayList<Integer>();
logTypes.add(WorkflowLog.TASK_ASSIGN);
<h2 class="title-action">Azioni</h2> logTypes.add(WorkflowLog.TASK_COMPLETION);
<div class="separator"></div> logTypes.add(WorkflowLog.TASK_UPDATE);
</div> logTypes.add(WorkflowLog.TRANSITION);
List<WorkflowLog> workflowLogs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(company
<% .getCompanyId(), workflowTask.getWorkflowInstanceId(), logTypes, QueryUtil.ALL_POS,
request.removeAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); QueryUtil.ALL_POS, WorkflowComparatorFactoryUtil.getLogCreateDateComparator(true));
%> %>
<%@include file="/html/portlet/workflow_instances/workflow_logs.jspf"%>
<liferay-util:include page="/html/portlet/workflow_tasks/workflow_task_action.jsp"> </liferay-ui:panel>
<liferay-portlet:param name="viewFullContentURLString" value="<%= viewFullContentURLString %>"/> </liferay-ui:panel-container>
<!-- ADT BUG BO ID= 27 --> </div>
<liferay-portlet:param name="classPkForCarichiLavoro" value="<%= String.valueOf(classPK) %>"/> </div>
</liferay-util:include> <div class="container_gestione_attivita_body-right">
<div class="lfr-asset-summary">
</div> <h2 class="title-action">Azioni</h2>
<div class="separator"></div>
</div>
<%
request.removeAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
%>
<liferay-util:include page="/html/portlet/workflow_tasks/workflow_task_action.jsp">
<liferay-portlet:param name="viewFullContentURLString" value="<%= viewFullContentURLString %>" />
<liferay-portlet:param name="classPkForCarichiLavoro" value="<%= String.valueOf(classPK) %>" />
</liferay-util:include>
</div>
</div> </div>
<style> <style>
html { html {
padding: 0!important; padding: 0!important;
} }
.container_gestione_attivita_header { .container_gestione_attivita_header {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
padding-left: 15px; padding-left: 15px;
padding-right: 15px; padding-right: 15px;
background-color: #812121; background-color: #812121;
} }
.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;
display: flex; display: flex;
-ms-flex-wrap: wrap; -ms-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
} }
.container_gestione_attivita_body-left { .container_gestione_attivita_body-left {
-webkit-box-flex: 1; -webkit-box-flex: 1;
@ -254,7 +217,7 @@ request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE);
flex: 1; flex: 1;
} }
.container_gestione_attivita_body-right { .container_gestione_attivita_body-right {
width: 200px; width: 200px;
} }
.container_gestione_attivita_body-left, .container_gestione_attivita_body-right { .container_gestione_attivita_body-left, .container_gestione_attivita_body-right {
padding: 15px; padding: 15px;
@ -263,19 +226,20 @@ 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,
color: #333!important; .button_custom a:hover {
color: #333!important;
} }
.task-panel-header { .task-panel-header {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-align: center; -webkit-box-align: center;
-ms-flex-align: center; -ms-flex-align: center;
align-items: center; align-items: center;
} }
.task-panel-header .task-content-title { .task-panel-header .task-content-title {
color: rgb(85, 85, 85); color: rgb(85, 85, 85);
} }
.title-action { .title-action {
margin: 0; margin: 0;
@ -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,20 +263,17 @@ 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;
display: flex; display: flex;
-ms-flex-wrap: wrap; -ms-flex-wrap: wrap;
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;
} }
@ -330,22 +290,14 @@ color: #333!important;
.aui label.control-label{ .aui label.control-label{
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