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. 345
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati_annullamento.jsp
  30. 48
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_andamento.jsp
  31. 414
      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. 64
      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. 85
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_top.jspf
  44. 74
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_top_pagamento.jspf
  45. 541
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf
  46. 44
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/verify_ok.jsp
  47. 62
      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. 647
      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. 388
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/edit_workflow_task.jsp
  61. 2
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java
  62. 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);
gestioneTempistica(avviso, controlloPratica);
} catch (Exception e) {
_log.info(e.getMessage() + ", avviso " + avviso.getAvvisoId() + ", controlloPratica "
+ avviso.getControlloPraticaId());
_log.info("Avviso " + avviso.getAvvisoId() + ", controlloPratica "
+ avviso.getControlloPraticaId() + ", messaggio: " + e.getMessage());
_log.debug("Error", e);
}
}
@ -256,12 +256,12 @@ public class SchedulerInvioDocumento implements MessageListener {
if (avviso.getClassName().equals(DettPratica.class.getName())) {
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso.getClassPk());
switch (dettPratica.getTipoIntegrazione()) {
case TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE:
case TipoIntegrazioneUtil.VARIANTE:
case TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO:
tipoAllegato += LanguageUtil.get(LocaleUtil.ITALIAN,
"label-integrazione-" + dettPratica.getTipoIntegrazione());
break;
case TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE:
case TipoIntegrazioneUtil.VARIANTE:
case TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO:
tipoAllegato += LanguageUtil.get(LocaleUtil.ITALIAN,
"label-integrazione-" + dettPratica.getTipoIntegrazione());
break;
}
} else {
dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(avviso.getIntPraticaId());
@ -445,8 +445,10 @@ public class SchedulerInvioDocumento implements MessageListener {
Avviso avvisoExtra = null;
List<Avviso> documentiVid = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(intPraticaId,
StatoPraticaConstants.VIDIMATA);
avvisoExtra = documentiVid.get(0);
dtInvio = avvisoExtra.getDtInvio();
if (documentiVid.size() > 0) {
avvisoExtra = documentiVid.get(0);
dtInvio = avvisoExtra.getDtInvio();
}
Date now = new Date();
// FIX come sopra
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) {
JSONArray esito = JSONFactoryUtil.createJSONArray();
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.INTEGRAZIONE));
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.impl.AllegatoManualeImpl;
import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence;
import java.io.Serializable;

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

@ -46,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.impl.AsseverazioneImpl;
import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence;
import java.io.Serializable;

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

@ -46,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.impl.AvvisoImpl;
import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence;
import java.io.Serializable;

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

@ -45,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.impl.CollaudoImpl;
import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence;
import java.io.Serializable;

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

@ -46,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.impl.ComuneImpl;
import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ComunePersistence;
import java.io.Serializable;

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

@ -45,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.impl.ComunicazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence;
import java.io.Serializable;

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

@ -45,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.impl.ConfigurazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence;
import java.io.Serializable;

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

@ -45,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.impl.ControlloPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence;
import java.io.Serializable;

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

@ -46,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.impl.DelegaImpl;
import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence;
import java.io.Serializable;

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

@ -45,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.impl.DettPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence;
import java.io.Serializable;

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

@ -45,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.impl.DocAggiuntivaImpl;
import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence;
import java.io.Serializable;

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

@ -46,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.impl.DocPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence;
import java.io.Serializable;

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

@ -45,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.impl.FineLavoriImpl;
import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl;
import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence;
import java.io.Serializable;

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

@ -42,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.impl.HistoryWorkflowActionImpl;
import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl;
import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence;
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.impl.IntPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence;
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.impl.PagamentoImpl;
import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence;
import java.io.Serializable;

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

@ -45,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.impl.ParereGeologoImpl;
import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence;
import java.io.Serializable;

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

@ -43,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.impl.ProvinciaImpl;
import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence;
import java.io.Serializable;

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

@ -45,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.impl.SoggettoImpl;
import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl;
import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence;
import java.io.Serializable;

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

@ -42,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.impl.StoricoSoggettoPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence;
import java.io.Serializable;

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

@ -45,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.impl.TempisticaImpl;
import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl;
import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence;
import java.io.Serializable;

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

@ -44,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.impl.TerritorioImpl;
import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl;
import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence;
import java.io.Serializable;

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

@ -13,8 +13,8 @@
##
build.namespace=portos_bo
build.number=3308
build.date=1630678547546
build.number=3310
build.date=1631007735211
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">
<liferay-hms:input-date
autoFocus="<%= false %>"
autoFocus="false"
cssClass="<%= cssClass %>"
dayParam='<%= fieldParam + "Day" %>'
dayValue="<%= day %>"

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

@ -26,7 +26,7 @@
</style>
<%
String toImport = "toImport";
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
//ADT: bug BO ID=6 stampa varianti in BO
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-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 %>">
<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"/>
@ -173,7 +173,7 @@
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>

345
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 import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeDetail"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@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="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.io.Serializable"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="java.util.LinkedHashMap"%>
<%@page import="java.util.Map.Entry"%>
<%@include file="/html/fascicolo/init.jsp"%>
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>"/>
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_allegati"></liferay-ui:message></h2>
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_allegati" /></h2>
<%
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData");
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request);
if(dettPratica==null){
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
if(dettPraticaId==0){
dettPraticaId = GetterUtil.getLong( httpServletRequest.getParameter("dettPraticaId"));
}
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData");
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request);
if (dettPratica == null) {
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
if (dettPraticaId == 0) {
dettPraticaId = GetterUtil.getLong(httpServletRequest.getParameter("dettPraticaId"));
}
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);
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
}
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);
%>
<div class="panel-group allegato-group">
<div class="panel panel-default">
<div class="lfr-search-container">
<%
if(!docPraticas.isEmpty()){
<div class="panel-group allegato-group">
<div class="panel panel-default">
<div class="lfr-search-container">
<%
if (!docPraticas.isEmpty()) {
%>
<table class="table table-striped allegati-tipologia-table" id="<portlet:namespace/>allegati-table-<%= tipologiaAllegato %>">
<thead class="table-columns allegato-group__head">
<tr>
<table class="table table-striped allegati-tipologia-table"
id="<portlet:namespace/>allegati-table-<%= tipologiaAllegato %>">
<thead class="table-columns allegato-group__head">
<tr>
<th>STATO</th>
<th>ALLEGATO</th>
<th>FIRME</th>
<th>AGGIUNTO DA</th>
<th>INVALIDATO DA</th>
<th class="text-center">AZIONI</th>
</tr>
</tr>
</thead>
<tbody class="allegato-group__body">
<%
for(DocPratica docPratica:docPraticas){
long docPraticaId = docPratica.getDocPraticaId();
%>
<tr>
<td class="text-center">
<span class='fa fa-circle <%= docPratica.getDettPraticaIdRimozione() == 0 ? "txt-green" : "txt-red" %>' style="color:red;"></span>
</td>
<td>
<%= docPratica.getFileName() %>
</td>
<td class="text-center">
<%
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
StringBuilder title = new StringBuilder();
if(firme.numeroFirme()>0){
List<String> cfCheck = new ArrayList<String>();
if(!firme.getFirmeDigitali().isEmpty()){
title.append("Firma sul file:<ul>");
for(FirmeDetail firma: firme.getFirmeDigitali()){
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario());
if (soggetti.size() > 0 ){
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>");
<%
for (DocPratica docPratica:docPraticas) {
long docPraticaId = docPratica.getDocPraticaId();
%>
<tr>
<td class="text-center">
<span class='fa fa-circle <%= docPratica.getDettPraticaIdRimozione() == 0 ?
"txt-green" : "txt-red" %>' style="color:red;"></span>
</td>
<td>
<%= docPratica.getFileName() %>
</td>
<td class="text-center">
<%
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
StringBuilder title = new StringBuilder();
if (firme.numeroFirme() > 0) {
List<String> cfCheck = new ArrayList<String>();
if (!firme.getFirmeDigitali().isEmpty()) {
title.append("Firma sul file:<ul>");
for (FirmeDetail firma: firme.getFirmeDigitali()) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil
.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());
cfCheck.add(firma.getCfFirmatario().trim());
if(Validator.isNotNull(firma.getDtFirma())){
title.append(" del "+dateFormatDate.format(firma.getDtFirma()));
}
title.append("</li>");
}
title.append("</ul>");
}
if(!firme.getFirmeApplicativo().isEmpty()){
title.append("Firme da applicativo:<ul>");
for(FirmeDetail firma: firme.getFirmeApplicativo()){
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario());
if (soggetti.size() > 0 ){
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>");
if (!firme.getFirmeApplicativo().isEmpty()) {
title.append("Firme da applicativo:<ul>");
for (FirmeDetail firma: firme.getFirmeApplicativo()) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil
.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());
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(Validator.isNotNull(firma.getDtFirma())){
title.append(" del "+dateFormatDate.format(firma.getDtFirma()));
}
title.append("</li>");
}
title.append("</ul>");
}
}
if(firme.numeroFirme()>0){
%>
<span class="fa fa-check icon-asseverazioni tooltip-info" title="<%=title.toString() %>" style="color:green">
<sub style="font-weight: bold"><%=firme.numeroFirme() %></sub>
</span>
<%
}else{
%>
<span class="fa fa-close icon-asseverazioni tooltip-info" title="Non ci sono firme sul file" style="color:red"></span>
<%
}
%>
</td>
<td>
<%
String description = StringPool.BLANK;
if(DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())){
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk());
if(adding!=null){
//description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ;
description = adding.getFullDescription();
}
}else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){
FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk());
if(adding!=null){
description = adding.getFullDescription() ;
}
}else if(Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())){
Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk());
if(adding!=null){
description = adding.getFullDescription() ;
}
}
out.print(description);
%>
</td>
<td>
<%
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione());
if(removing != null){
%>
<%= removing.getFullDescription() %>
<%
}
%>
</td>
<td class="text-center text-nowrap">
<c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId())%>">
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" />
<liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" />
</liferay-portlet:renderURL>
<liferay-ui:icon id='<%="open_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard" message="Visualizza" url="<%=previewURL%>" useDialog="true"/>
<liferay-ui:icon id='<%="download_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-download" message="Download" url="<%=docPratica.getDownloadUrl(themeDisplay)%>" />
</c:if>
</td>
</tr>
<%
%>
<span class="fa fa-check icon-asseverazioni tooltip-info"
title="<%=title.toString() %>" style="color:green">
<sub style="font-weight: bold"><%= firme.numeroFirme() %></sub>
</span>
<%
} else {
%>
<span class="fa fa-close icon-asseverazioni tooltip-info"
title="Non ci sono firme sul file" style="color:red"></span>
<%
}
%>
</td>
<td>
<%
if (DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())) {
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica
.getClassPk());
if (adding!=null) {
out.print(adding.getFullDescription());
}
} else if (FineLavori.class.getName().equalsIgnoreCase(docPratica
.getClassName())) {
FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica
.getClassPk());
if (adding!=null) {
out.print(adding.getFullDescription());
}
} else if (Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())) {
Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica
.getClassPk());
if (adding!=null) {
out.print(adding.getFullDescription());
}
}
%>
</td>
<td>
<%
// Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere
// gli allegati
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica
.getDettPraticaIdRimozione());
if (removing != null) {
out.print(removing.getFullDescription());
}
%>
</td>
<td class="text-center text-nowrap">
<c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId()) %>">
<liferay-portlet:renderURL var="previewURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="fileEntryId"
value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" />
<liferay-portlet:param name="mvcPath"
value="/html/common/preview_file_entry.jsp" />
</liferay-portlet:renderURL>
<liferay-ui:icon id='<%= "open_" + docPraticaId %>' message="Visualizza"
linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard"
url="<%= previewURL %>" useDialog="true" />
<liferay-ui:icon id='<%= "download_" + docPraticaId %>' message="Download"
linkCssClass="btn btn-action" iconCssClass="fa fa-download"
url="<%= docPratica.getDownloadUrl(themeDisplay) %>" />
</c:if>
</td>
</tr>
<%
}
%>
</tbody>
%>
</tbody>
</table>
<%
}
}
%>
</div>
</div>
</div>
<%
%>
</div>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.allegati-tipologia-table .tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
</script>
YUI().use('aui-tooltip', function(Y) {
new Y.TooltipDelegate({
trigger: '.allegati-tipologia-table .tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1,
});
});
</script>

48
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 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" %>
<%
int start = ParamUtil.getInteger(request, "start" ,QueryUtil.ALL_POS);
int end = ParamUtil.getInteger(request, "end" ,QueryUtil.ALL_POS);
boolean header = ParamUtil.getBoolean(request,"header" , true);
IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica");
int start = ParamUtil.getInteger(request, "start" , QueryUtil.ALL_POS);
int end = ParamUtil.getInteger(request, "end" , QueryUtil.ALL_POS);
boolean header = ParamUtil.getBoolean(request, "header", true);
IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica");
%>
<c:if test="<%=header %>">
<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>
<c:if test="<%= header %>">
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>"/>
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_andamento" /></h2>
</c:if>
<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="inBO" value="<%= String.valueOf(true) %>"></liferay-util:param>
</liferay-util:include>
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" />
<liferay-util:param name="inBO" value="true" />
</liferay-util:include>

414
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 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.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="com.liferay.portal.service.ServiceContext"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ProtocollazioneUtil"%>
<%@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.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@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"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.Date" %>
<%@ include file="/html/fascicolo/init.jsp" %>
<liferay-portlet:actionURL varImpl="searchURL" name="searchURL" />
<%@include file="/html/fascicolo/init.jsp"%>
<liferay-portlet:actionURL varImpl="searchURL" name="searchURL" />
<%
//GESTIONE RICERCA CON PAGINATORE SEARCH CONTAINER
String numeroProgettoSearch = ParamUtil.getString(request, "numeroProgetto");
String protocolloSearch = ParamUtil.getString(request, "protocollo");
@ -67,10 +38,7 @@ String tipoIntervento = ParamUtil.getString(request, "tipoIntervento", StringPoo
String indirizzo = ParamUtil.getString(request, "indirizzo");
String ordinaPer = ParamUtil.getString(request, "ordinaPer", StringPool.BLANK);
String ordinaTipo = ParamUtil.getString(request, "ordinaTipo", StringPool.BLANK);
boolean doSearch = true;
PortletURL iteratorURL = liferayPortletResponse.createRenderURL();
iteratorURL.setParameter("numeroProgetto", numeroProgettoSearch);
iteratorURL.setParameter("protocollo", protocolloSearch);
@ -91,122 +59,98 @@ iteratorURL.setParameter("praticaAperta", praticaAperta);
iteratorURL.setParameter("indirizzo", indirizzo);
iteratorURL.setParameter("ordinaPer", ordinaPer);
iteratorURL.setParameter("ordinaTipo", ordinaTipo);
String orderByType = ParamUtil.getString(request, "orderByType", "asc");
String orderByCol = ParamUtil.getString(request, "orderByCol", "nome");
String keywords = StringPool.BLANK;
%>
<liferay-ui:success key="success-sospesa" message="message-success-pratica-sospesa"/>
<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-ripresa" message="message-error-pratica-ripresa"/>
<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: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-stato-incosistente" message="message-error-stato-workflow-incosistente"/>
<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: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-no-such-user" 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"/>
<liferay-ui:success key="success-sospesa" message="message-success-pratica-sospesa" />
<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-ripresa" message="message-error-pratica-ripresa" />
<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: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-stato-incosistente" message="message-error-stato-workflow-incosistente" />
<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: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-no-such-user"
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">
<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-portlet:param name="comune" value="<%=comuneSearch %>"/>
<liferay-portlet:param name="provinciaJS" value="<%=provinciaSearch %>"/>
<liferay-portlet:param name="comune" value="<%= comuneSearch %>"/>
<liferay-portlet:param name="provinciaJS" value="<%= provinciaSearch %>"/>
</liferay-ui:search-form>
</aui:form>
</div>
</div>
<!-- Funzione per esportare la ricerca -->
<liferay-portlet:resourceURL id="exportRicerca" var="exportRicercaURL">
<liferay-portlet:param name="dataRichiestaInizio" value="<%=dataDaSearch %>"/>
<liferay-portlet:param name="dataRichiestaFine" value="<%=dataAlSearch %>"/>
<liferay-portlet:param name="numeroProgetto" value="<%=numeroProgettoSearch %>"/>
<liferay-portlet:param name="protocollo" value="<%=protocolloSearch %>"/>
<liferay-portlet:param name="tipoPratica" value="<%=tipoPraticaSearch %>"/>
<liferay-portlet:param name="descIntervento" value="<%=descInterventoSearch %>"/>
<liferay-portlet:param name="statoPratica" value="<%=statoPraticaSearch %>"/>
<liferay-portlet:param name="committente" value="<%=committenteSearch %>"/>
<liferay-portlet:param name="tecnicoIstruttore" value="<%=tecnicoIstruttoreSearch %>"/>
<liferay-portlet:param name="titolareDigitale" value="<%=titolareDigitaleSearch %>"/>
<liferay-portlet:param name="soggettiInterconnessi" value="<%=soggettiInterconnessiSearch %>"/>
<liferay-portlet:param name="ufficio" value="<%=ufficioSearch %>"/>
<liferay-portlet:param name="comune" value="<%=comuneSearch %>"/>
<liferay-portlet:param name="provincia" value="<%=provinciaSearch %>"/>
<liferay-portlet:param name="tipoIntervento" value="<%=tipoIntervento %>"/>
<liferay-portlet:param name="praticaAperta" value="<%=praticaAperta %>"/>
<liferay-portlet:param name="indirizzo" value="<%=indirizzo %>"/>
<liferay-portlet:param name="ordinaPer" value="<%=ordinaPer %>"/>
<liferay-portlet:param name="ordinaTipo" value="<%=ordinaTipo %>"/>
<liferay-portlet:param name="searchForExport" value="true"/>
<liferay-portlet:param name="<%= Constants.CMD %>" value="exportRicerca"/>
<liferay-portlet:param name="dataRichiestaInizio" value="<%= dataDaSearch %>" />
<liferay-portlet:param name="dataRichiestaFine" value="<%= dataAlSearch %>" />
<liferay-portlet:param name="numeroProgetto" value="<%= numeroProgettoSearch %>" />
<liferay-portlet:param name="protocollo" value="<%= protocolloSearch %>" />
<liferay-portlet:param name="tipoPratica" value="<%= tipoPraticaSearch %>" />
<liferay-portlet:param name="descIntervento" value="<%= descInterventoSearch %>" />
<liferay-portlet:param name="statoPratica" value="<%= statoPraticaSearch %>" />
<liferay-portlet:param name="committente" value="<%= committenteSearch %>" />
<liferay-portlet:param name="tecnicoIstruttore" value="<%= tecnicoIstruttoreSearch %>" />
<liferay-portlet:param name="titolareDigitale" value="<%= titolareDigitaleSearch %>" />
<liferay-portlet:param name="soggettiInterconnessi" value="<%= soggettiInterconnessiSearch %>" />
<liferay-portlet:param name="ufficio" value="<%= ufficioSearch %>" />
<liferay-portlet:param name="comune" value="<%= comuneSearch %>" />
<liferay-portlet:param name="provincia" value="<%= provinciaSearch %>" />
<liferay-portlet:param name="tipoIntervento" value="<%= tipoIntervento %>" />
<liferay-portlet:param name="praticaAperta" value="<%= praticaAperta %>" />
<liferay-portlet:param name="indirizzo" value="<%= indirizzo %>" />
<liferay-portlet:param name="ordinaPer" value="<%= ordinaPer %>" />
<liferay-portlet:param name="ordinaTipo" value="<%= ordinaTipo %>" />
<liferay-portlet:param name="searchForExport" value="true" />
<liferay-portlet:param name="<%= Constants.CMD %>" value="exportRicerca" />
</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="span2">
<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>
</div>
</div>
<liferay-ui:search-container
emptyResultsMessage="no-entries-were-found"
iteratorURL="<%= iteratorURL %>"
orderByType="<%= orderByType %>" orderByCol="<%= orderByCol %>"
>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" iteratorURL="<%= iteratorURL %>"
orderByType="<%= orderByType %>" orderByCol="<%= orderByCol %>">
<%
List<IntPratica> listaIntPratica = new ArrayList<IntPratica>();
Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(request, user, searchContainer.getStart(), searchContainer.getEnd());
for (Document doc : hits.toList()) {
String intPraticaId = doc.get("intPraticaId");
if (Validator.isNotNull(intPraticaId)) {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId));
if (Validator.isNotNull(intPratica)) {
listaIntPratica.add(intPratica);
}else{
Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class);
indexer.delete(company.getCompanyId(), doc.getUID());
}
}
}
searchContainer.setTotal(hits.getLength());
List<IntPratica> listaIntPratica = new ArrayList<IntPratica>();
Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(request, user, searchContainer.getStart(), searchContainer.getEnd());
for (Document doc : hits.toList()) {
String intPraticaId = doc.get("intPraticaId");
if (Validator.isNotNull(intPraticaId)) {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId));
if (Validator.isNotNull(intPratica)) {
listaIntPratica.add(intPratica);
} else {
Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class);
indexer.delete(company.getCompanyId(), doc.getUID());
}
}
}
searchContainer.setTotal(hits.getLength());
%>
<liferay-ui:search-container-results
results="<%=listaIntPratica%>"
/>
<liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.IntPratica"
modelVar="intPratica"
>
<liferay-ui:search-container-results results="<%= listaIntPratica %>" />
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.IntPratica" modelVar="intPratica">
<%
long intPraticaId = intPratica.getIntPraticaId();
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
Log _log = LogFactoryUtil.getLog("fascicolo_view_jsp");
if (lastDettPratica == null) {
_log.info("intPraticaId=" + intPraticaId + ", lastDettPratica null");
}
long intPraticaId = intPratica.getIntPraticaId();
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
%>
<liferay-portlet:renderURL var="viewURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= iteratorURL.toString() %>" />
</liferay-portlet:renderURL>
<liferay-ui:search-container-column-text name="#" cssClass="text-center middle-aligned">
<div class="flex-center">
<c:if test="<%= intPratica.isSospesa() %>">
@ -214,106 +158,111 @@ String keywords = StringPool.BLANK;
<span class="fa fa-circle txt-orange"></span>
</span>
</c:if>
<!--
Manifattura Web Group per Regione Siciliana
Le pratiche sottoposte a parere sono quelle che hanno
statoPratica == 'SP', non quelle in status di workflow = pending
Le pratiche sottoposte a parere sono quelle che hanno statoPratica == 'SP', non quelle in
status di workflow = pending
-->
<c:if test="<%= intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.SOTTOPOSTA_A_PARERE) %>">
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info" title="Sottoposta a parere" style="padding: 5px;margin-right:5px;">
<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>
</span>
<c:if test="<%= intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants
.SOTTOPOSTA_A_PARERE) %>">
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info"
title="Sottoposta a parere" style="padding:5px;margin-right:5px">
<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>
</span>
</c:if>
<c:if test="<%=StatoPraticaConstants.INTEGRAZIONE.equals(intPratica.getStatoPratica()) %>">
<span class="tooltip-info display-inline-block" title="Richiesta integrazione" style="padding:0">
<i class="fa fa-exclamation-circle txt-orange" style="font-size:33px"></i>
</span>
<c:if test="<%= StatoPraticaConstants.INTEGRAZIONE.equals(intPratica.getStatoPratica()) %>">
<span class="tooltip-info display-inline-block" title="Richiesta integrazione"
style="padding:0">
<i class="fa fa-exclamation-circle txt-orange" style="font-size:33px"></i>
</span>
</c:if>
</div>
</liferay-ui:search-container-column-text>
<!-- SORTEGGIATA -->
<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 name="titolare-digitale" href="<%=viewURL %>" cssClass="text-nowrap">
<%
Soggetto titolare = null;
User titolareUser = null;
<liferay-ui:search-container-column-text name="titolare-digitale" href="<%= viewURL %>"
cssClass="text-nowrap">
<%
Soggetto titolare = null;
User titolareUser = null;
if(lastDettPratica != null) {
titolareUser = UserLocalServiceUtil.getUser(intPratica.getUserId());
/*List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(lastDettPratica.getIntPraticaId(), lastDettPratica.getCodiceFiscaleDelegatoCommittente());
if(titolari != null && !titolari.isEmpty()){
titolare = titolari.get(0);
}*/
}
titolareUser = UserLocalServiceUtil.getUser(intPratica.getUserId());
}
%>
<c:if test="<%= Validator.isNotNull(titolareUser) %>">
<%= titolareUser.getFirstName() %><br/><%= titolareUser.getLastName() %>
</c:if>
</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();
if (lastDettPratica != null) {
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(lastDettPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE);
for(Soggetto committente : committenti){
builder.append(committente.getTitle()+"<br/>"+committente.getCodiceFiscale())
.append(StringPool.COMMA_AND_SPACE).append("<br/><br/>");
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(
lastDettPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE);
for (Soggetto committente : committenti) {
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());
}
%>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="tecnico-istruttore" href="<%=viewURL %>" cssClass="text-nowrap">
<c:if test="<%=intPratica.getStatusByUserId()!=0l %>">
<liferay-ui:search-container-column-text name="tecnico-istruttore" href="<%= viewURL %>"
cssClass="text-nowrap">
<c:if test="<%=intPratica.getStatusByUserId() != 0 %>">
<%
User istruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId());
if(istruttore!=null){
out.print(istruttore.getFullName());
}else{
out.print( "["+intPratica.getStatusByUserId()+"]");
}
User istruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId());
if (istruttore!=null) {
out.print(istruttore.getFullName());
} else {
out.print(StringPool.OPEN_BRACKET);
out.print(intPratica.getStatusByUserId());
out.print(StringPool.CLOSE_BRACKET);
}
%>
</c:if>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Stato Pratica" cssClass="text-nowrap text-center middle-aligned">
<strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica.getTipoProcedura())) %></strong>
<liferay-ui:search-container-column-text name="Stato Pratica"
cssClass="text-nowrap text-center middle-aligned">
<strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica
.getStatoPratica(), intPratica.getTipoProcedura())) %></strong>
<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));
StringBuilder sb = new StringBuilder();
if(!avvisi.isEmpty()){
sb.append("<ul class='avvisi-tooltip'>");
for(Avviso avviso : avvisi){
String tipoDocumento = avviso.translateTipoDocumento();
String testoEvento =LanguageUtil.get(pageContext, tipoDocumento);
sb.append("<li class='avviso-tooltip'>"+testoEvento+"</li>");
}
sb.append("</ul>");
List<Avviso> avvisi = AvvisoLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_Avviso", "createDate",
false));
StringBuilder sb = new StringBuilder();
if (!avvisi.isEmpty()) {
sb.append("<ul class='avvisi-tooltip'>");
for (Avviso avviso : avvisi) {
String tipoDocumento = avviso.translateTipoDocumento();
String testoEvento = LanguageUtil.get(pageContext, tipoDocumento);
sb.append("<li class='avviso-tooltip'>").append(testoEvento).append("</li>");
}
sb.append("</ul>");
%>
<liferay-portlet:renderURL var="fascicoloAvvisiURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolo/view_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-portlet:renderURL>
<a class="btn status-icon tooltip-info btn-action" title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>"
href="<%= fascicoloAvvisiURL.toString()+"#_"+PortletKeys.FASCICOLO+"_tab=_"+PortletKeys.FASCICOLO+"_page_avvisi" %>">
<a class="btn status-icon tooltip-info btn-action"
title="<%= HtmlUtil.escapeAttribute(sb.toString()) %>"
href="<%= fascicoloAvvisiURL.toString() + "#_" + PortletKeys.FASCICOLO + "_tab=_"
+ PortletKeys.FASCICOLO + "_page_avvisi" %>">
<i class="fa fa-envelope relative">
<span class="fa-hover fa-top-right txt-bold"><%= avvisi.size() %></span>
</i>
<span class="fa-hover fa-top-right txt-bold"><%= avvisi.size() %></span>
</i>
</a>
<%
}
%>
<%
int variantiCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE));
int integrazioniCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
}
int variantiCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(
intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE));
int integrazioniCount = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(
intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
%>
<c:if test="<%= variantiCount > 0 %>">
<span class="btn status-icon tooltip-info btn-action" title="Varianti Presentate">
@ -332,14 +281,15 @@ String keywords = StringPool.BLANK;
</span>
</c:if>
<c:if test="<%= intPratica.isFineLavoriParziale() || intPratica.isFineLavoriTotale() %>">
<c:if test="<%= !intPratica.isFineLavoriTotale()%>">
<span class="btn status-icon tooltip-info btn-action" title="Fine Lavori Parziale presente">
<c:if test="<%= !intPratica.isFineLavoriTotale() %>">
<span class="btn status-icon tooltip-info btn-action"
title="Fine Lavori Parziale presente">
<i class="fa fa-gavel relative">
<span class="fa-hover fa-top-right txt-orange txt-bold">P</span>
</i>
</span>
</c:if>
<c:if test="<%= intPratica.isFineLavoriTotale()%>">
<c:if test="<%= intPratica.isFineLavoriTotale() %>">
<span class="btn status-icon tooltip-info btn-action" title="Fine Lavori Totale presente">
<i class="fa fa-gavel relative">
<span class="fa-hover fa-top-right txt-green txt-bold">T</span>
@ -363,43 +313,37 @@ String keywords = StringPool.BLANK;
</span>
</c:if>
</c:if>
</span>
</span>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Descrizione Intervento" href="<%=viewURL %>" >
<%
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), comune.getCodiceProvincia());
<liferay-ui:search-container-column-text name="Descrizione Intervento" href="<%= viewURL %>" >
<%
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), comune
.getCodiceProvincia());
%>
Territorio: <strong><%= comune.getDenominazione() %> <%= (lastDettPratica == null || lastDettPratica.getLocalita().isEmpty()) ? "" : "(Loc. "+lastDettPratica.getLocalita()+" ) " %>- <%= provincia.getProvincia() %></strong><br>
Localizzazione: <strong><%= lastDettPratica == null ? "" : lastDettPratica.getVia() %></strong><br>
<strong><%= LanguageUtil.get(pageContext, "label_procedura_" + intPratica.getTipoProcedura()) + ") " + LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica.getTipoProcedura()) %></strong><br><br>
<%= lastDettPratica == null ? "" : lastDettPratica.getDescLongIntervento() %>
Territorio: <strong><%= comune.getDenominazione() %>
<%= (lastDettPratica == null || lastDettPratica.getLocalita().isEmpty()) ? StringPool.BLANK
: "(Loc. "+lastDettPratica.getLocalita()+" ) " %>- <%= provincia.getProvincia() %></strong><br>
Localizzazione: <strong><%= lastDettPratica == null ? StringPool.BLANK
: 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-jsp path="/html/fascicolo/fascicolo_actions.jsp" align="right" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= true %>" />
<liferay-ui:search-iterator paginate="true" />
</liferay-ui:search-container>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
</script>
YUI().use('aui-tooltip', function(Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1,
});
});
</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">
<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"
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 --%>

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

@ -90,7 +90,7 @@
String contentFormId = "pagamentoFormContent_"+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
id='<%=buttonFormId %>'
iconCssClass="fa fa-edit"
@ -126,7 +126,7 @@
String buttonId = "pagamentoButton_"+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
id='<%=buttonId %>'
iconCssClass="fa fa-info-circle"
@ -167,6 +167,6 @@
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</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-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</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">
<liferay-hms:input-date
autoFocus="<%= false %>"
autoFocus="false"
cssClass="<%= cssClass %>"
dayParam='<%= fieldParam + "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 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.SoggettoLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="java.util.Calendar"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%@include file="/html/fascicolofe/init.jsp"%>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
String dialogId = ParamUtil.getString(request, "dialogId");
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
String dialogId = ParamUtil.getString(request, "dialogId");
%>
<liferay-portlet:renderURL var="redirectErrorURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="dialogId" value="<%=dialogId %>"/>
</liferay-portlet:renderURL>
<liferay-portlet:renderURL var="redirectErrorURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dialogId" value="<%= dialogId %>" />
</liferay-portlet:renderURL>
<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-portlet:renderURL var="okURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="dialogId" value="<%=dialogId %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dialogId" value="<%= dialogId %>" />
</liferay-portlet:renderURL>
<liferay-portlet:actionURL name="allegatoFileAnnullamento" var="allegatoFileAnnullamentoURL">
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="errorUrl" value="<%=redirectErrorURL%>"/>
<liferay-portlet:param name="redirect" value="<%=okURL%>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="errorUrl" value="<%= redirectErrorURL %>" />
<liferay-portlet:param name="redirect" value="<%= okURL %>" />
</liferay-portlet:actionURL>
<aui:form name="fm_abort" action="<%=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="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="File Annullamento" >
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="File Annullamento">
<div class="container-fluid">
<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="" />
</div>
</div>
<!-- ADT BUG FE ID = 31 -->
<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>
<aui:button-row>
<aui:button type="submit" value="Upload"></aui:button>
<aui:button type="submit" value="Upload" />
</aui:button-row>
</div>
</liferay-ui:panel>
</div>
@ -73,110 +60,82 @@
</div>
</div>
</aui:form>
<!-- ADT BUG FE ID = 31 -->
<%--
<liferay-portlet:actionURL name="generaFirmaAnnullamento" var="generaFirmaAnnullamentoURL">
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="errorUrl" value="<%=redirectErrorURL%>"/>
<liferay-portlet:param name="redirect" value="<%=okURL%>"/>
</liferay-portlet:actionURL>
<aui:form name="fm_abort" action="<%=generaFirmaAnnullamentoURL %>" method="post">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Firma da applicativo" >
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-checkbox-edit-allegato">
<%
Soggetto titolareDigitale = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(intPraticaId, user.getScreenName()).get(0);
%>
<aui:input type="checkbox" name="appSign" label='<%= LanguageUtil.format(pageContext, "label.firma-annullamento", titolareDigitale.getDescrizioneCompleta()) %>' />
</div>
</div>
<aui:button-row>
<aui:button name="signButton" cssClass="btn-success" type="submit" value="Firma" disabled="true"></aui:button>
</aui:button-row>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
</div> --%>
<aui:script use="aui-base">
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> --%>
<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>
</c:if>
<c:if test="<%= !intPratica.isAnnullata() && Validator.isNotNull(intPratica.getDocPraticaAnnullamentoId()) %>">
<liferay-ui:error key="annullamento-fascicolo-not-checked" message="annullamento-fascicolo-not-checked" />
<liferay-portlet:renderURL var="okURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="dialogId" value="<%=dialogId %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dialogId" value="<%= dialogId %>" />
</liferay-portlet:renderURL>
<liferay-portlet:actionURL name="completeAnnullamento" var="completeAnnullamentoURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="redirect" value="<%=okURL%>"/>
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= okURL %>" />
</liferay-portlet:actionURL>
<aui:form name="fm_abort" action="<%=completeAnnullamentoURL %>">
<aui:form name="fm_abort" action="<%= completeAnnullamentoURL %>">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dichiarazione-annullamento" >
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="dichiarazione-annullamento">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
</div>
<div class="col-xs-12"></div>
</div>
<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"
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>
<div class="abort_file">
<h4 class="file-section-title">File Annullamento</h4>
<div class="container-section-file">
<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>
<liferay-ui:icon-menu icon="" showExpanded="<%=true %>" showWhenSingleIcon="<%=true%>">
<liferay-ui:icon-menu icon="" showExpanded="true"
showWhenSingleIcon="true">
<%
String downloadUrl = docAnnullamento.getDownloadUrl(themeDisplay);
String downloadUrl = docAnnullamento.getDownloadUrl(themeDisplay);
%>
<div title="Scarica" class="tooltip-info">
<liferay-ui:icon id='<%=renderResponse.getNamespace()+"download_"+intPratica.getDocPraticaAnnullamentoId() %>'
linkCssClass="btn btn-primary btn-action" iconCssClass="fa fa-download" url="<%=downloadUrl%>"/>
<liferay-ui:icon
id='<%= renderResponse.getNamespace() + "download_"
+ intPratica.getDocPraticaAnnullamentoId() %>'
linkCssClass="btn btn-primary btn-action"
iconCssClass="fa fa-download" url="<%=downloadUrl%>" />
</div>
<liferay-portlet:actionURL name="deleteFileAnnullamento" var="deleteDocURL">
<liferay-portlet:param name="docPraticaAnnullamentoId" value="<%=String.valueOf(intPratica.getDocPraticaAnnullamentoId())%>" />
<liferay-portlet:actionURL name="deleteFileAnnullamento"
var="deleteDocURL">
<liferay-portlet:param name="docPraticaAnnullamentoId"
value="<%= String.valueOf(intPratica
.getDocPraticaAnnullamentoId()) %>" />
</liferay-portlet:actionURL>
<div title="Cancella allegato" class="tooltip-info">
<liferay-ui:icon id='<%="delete_"+intPratica.getDocPraticaAnnullamentoId() %>' linkCssClass="btn btn-danger btn-action" iconCssClass="fa fa-trash"
url="javascript:void(0)"/>
<liferay-ui:icon
id='<%= "delete_" + intPratica
.getDocPraticaAnnullamentoId() %>'
linkCssClass="btn btn-danger btn-action"
iconCssClass="fa fa-trash" url="javascript:void(0)"/>
</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(
'click',
function(event) {
@ -199,16 +158,15 @@
}
);
</aui:script>
</liferay-ui:icon-menu>
</div>
</div>
</div>
</div>
<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 type="submit" value="Conferma Annullamento"></aui:button>
<aui:button type="submit" value="Conferma Annullamento" />
</aui:button-row>
</div>
</div>
@ -220,33 +178,28 @@
</div>
</aui:form>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
YUI().use('aui-tooltip', function (Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1,
});
});
</script>
</c:if>
<c:if test="<%= intPratica.isAnnullata() %>">
<div class="container-fluid">
<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)) %>
</div>
</div>
<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 value="Chiudi" cssClass="btn" onClick='<%=renderResponse.getNamespace()+"closePopup()"%>'></aui:button>
<aui:button value="Chiudi" cssClass="btn" onClick='<%=renderResponse.getNamespace()+"closePopup()"%>' />
</aui:button-row>
</div>
</div>
@ -254,19 +207,9 @@
</c:if>
<aui:script use="aui-base">
Liferay.provide(
window,
'<portlet:namespace/>closePopup',
function() {
Liferay.fire(
'closeWindow',
{
id: '<%= dialogId %>'
}
);
},
['aui-base','liferay-util-window']
);
Liferay.provide(window, '<portlet:namespace />closePopup', function () {
Liferay.fire('closeWindow', {
id: '<%= dialogId %>'
});
}, ['aui-base','liferay-util-window']);
</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 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.util.PortosIndexField"%>
<%@include file="/html/fascicolofe/init.jsp"%>
<liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false"

64
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 import="it.tref.liferay.portos.bo.model.Delega"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
Delega delega = (Delega)row.getObject();
String backUrl = (String)request.getAttribute("back");
ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
Delega delega = (Delega) row.getObject();
String backUrl = (String) request.getAttribute("back");
%>
<liferay-ui:icon-menu cssClass="menu_button_activity" showWhenSingleIcon="<%=true%>" showExpanded="<%= true %>">
<c:if test="<%=delega.getDtEsito()==null %>">
<liferay-ui:icon-menu cssClass="menu_button_activity" showWhenSingleIcon="true" showExpanded="true">
<c:if test="<%= delega.getDtEsito() == null %>">
<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="redirect" value="<%=currentURL %>"/>
<liferay-portlet:param name="redirect" value="<%= currentURL %>" />
</liferay-portlet:actionURL>
<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>
<liferay-portlet:renderURL var="redirectURL">
<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="dettPraticaId" value="<%=String.valueOf(delega.getDettPraticaId()) %>" />
<liferay-portlet:param name="backURL" value="<%=backUrl %>" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(delega.getIntPraticaId()) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(delega.getDettPraticaId()) %>" />
<liferay-portlet:param name="backURL" value="<%= backUrl %>" />
</liferay-portlet:renderURL>
<liferay-portlet:actionURL name="annullaDelega" var="annullaDelegaURL">
<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>
<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>
</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>
</c:if>
</liferay-ui:icon-menu>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
</script>
YUI().use('aui-tooltip', function (Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1,
});
});
</script>

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

@ -93,14 +93,14 @@
%>
<liferay-ui:header
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>'
localizeTitle="<%= false %>"
localizeTitle="false"
backURL="<%= backURL %>"
/>
</div>
<c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
iconCssClass="fa fa-save"
@ -237,10 +237,10 @@
<div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>" >
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_PARZIALE)%>">
<aui:option label='Parziale' value="<%= true %>" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/>
<aui:option label='Parziale' value="true" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/>
</c:if>
<c:if test="<%=AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_TOTALE)%>">
<aui:option label='Totale' value="<%= false %>" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/>
<aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/>
</c:if>
</aui:select>
</div>
@ -301,7 +301,7 @@
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
@ -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-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</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-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</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 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="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@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.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.util.ArrayUtil"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%
String backURL = ParamUtil.getString(request, "backURL");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l);
String current_tab = ParamUtil.getString(request, "current_tab",StringPool.BLANK);
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK);
DettPratica dettPratica = null;
IntPratica intPratica = null;
if(dettPraticaId!=0l){
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
intPraticaId = dettPratica.getIntPraticaId();
}else{
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if(dettPratica==null){
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
dettPraticaId = dettPratica.getDettPraticaId();
String backURL = ParamUtil.getString(request, "backURL");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
String current_tab = ParamUtil.getString(request, "current_tab", StringPool.BLANK);
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK);
DettPratica dettPratica = null;
IntPratica intPratica = null;
if (dettPraticaId != 0) {
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
intPraticaId = dettPratica.getIntPraticaId();
} else {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
request.setAttribute("bean.dettPratica", dettPratica);
String tipoIntegrazione = dettPratica.getTipoIntegrazione();
request.setAttribute("bean.tipoIntegrazione", tipoIntegrazione);
boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),dettPratica.getDettPraticaId());
boolean geoDisabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),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"};
if(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)){
pageDatiDomanda = Arrays.copyOf(pageDatiDomanda, pageDatiDomanda.length-1);
}
String[][] categorySections = {pageDatiDomanda};
String[] _CATEGORY_NAMES = {"cat_dati_domanda"};
dettPraticaId = dettPratica.getDettPraticaId();
}
request.setAttribute("bean.dettPratica", dettPratica);
String tipoIntegrazione = dettPratica.getTipoIntegrazione();
request.setAttribute("bean.tipoIntegrazione", tipoIntegrazione);
boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(), dettPratica.getDettPraticaId());
boolean geoDisabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(), 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" };
if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)) {
pageDatiDomanda = Arrays.copyOf(pageDatiDomanda, pageDatiDomanda.length-1);
}
String[][] categorySections = { pageDatiDomanda };
String[] _CATEGORY_NAMES = { "cat_dati_domanda" };
%>
<liferay-portlet:actionURL name="saveDettPratica" var="saveDettPraticaURL" >
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId) %>"/>
<liferay-portlet:param name="backURL" value="<%=backURL %>"/>
<liferay-portlet:param name="successURL" value="<%=currentURL %>"/>
<liferay-portlet:param name="backgroundTaskActive" value="<%=String.valueOf(true) %>"/>
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= backURL %>" />
<liferay-portlet:param name="successURL" value="<%= currentURL %>" />
<liferay-portlet:param name="backgroundTaskActive" value="true" />
</liferay-portlet:actionURL>
<liferay-portlet:actionURL name="saveTipoPratica" var="saveTipoPraticaURL" >
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId) %>"/>
<liferay-portlet:param name="backURL" value="<%=backURL %>"/>
<liferay-portlet:param name="successURL" value="<%=currentURL %>"/>
<liferay-portlet:param name="backgroundTaskActive" value="<%=String.valueOf(true) %>"/>
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= backURL %>" />
<liferay-portlet:param name="successURL" value="<%= currentURL %>" />
<liferay-portlet:param name="backgroundTaskActive" value="true" />
</liferay-portlet:actionURL>
<aui:form name="fmDomande" onSubmit="preventDefault();" action="<%= Validator.isNull(tipoIntegrazione) ? saveDettPraticaURL : saveTipoPraticaURL %>">
<aui:model-context bean="<%=dettPratica %>" model="<%=DettPratica.class %>"></aui:model-context>
<liferay-util:buffer var="htmlTop">
<c:if test="<%= dettPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE %>">
<%@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>
<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="disabledSubmit" value="<%= disabledInput %>" />
<aui:input type="hidden" name="geoDisabledSubmit" value="<%= geoDisabledInput %>" />
<aui:input type="hidden" name="current_tab" value="<%=current_tab %>"/>
<aui:input type="hidden" name="current_tab" value="<%= current_tab %>" />
<aui:input type="hidden" name="tipoIntegrazione" value="<%= tipoIntegrazione %>" />
<liferay-util:buffer var="htmlTop">
<c:if test="<%=dettPratica.getStatus()!=WorkflowConstants.STATUS_INCOMPLETE %>">
<%@ 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%>" />
<liferay-ui:form-navigator categoryNames="<%= _CATEGORY_NAMES %>" displayStyle="steps" formName="fmDomande"
categorySections="<%= categorySections %>" jspPath="/html/fascicolofe/navigator/domanda/"
htmlBottom="<%= htmlBottom %>" showButtons="false" htmlTop="<%= htmlTop %>" />
</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='<%= "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="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</portlet:renderURL>
<aui:script use="aui-base">
Liferay.Util.openWindow(
{
id: '<portlet:namespace />openVerificaFascicolo',
title: 'Verifica Domanda',
uri: '<%=verifyRenderURL%>'
}
);
Liferay.Util.openWindow({
id: '<portlet:namespace />openVerificaFascicolo',
title: 'Verifica Domanda',
uri: '<%=verifyRenderURL%>',
});
</aui:script>
</c:if>
<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="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= currentURL %>" />
<liferay-portlet:param name="backVisible" value="false" />
</liferay-portlet:renderURL>
<aui:script use="aui-base">
Liferay.Util.openWindow(
{
id: '<portlet:namespace />openVerificaDeleghe',
title: 'Gestione Deleghe',
uri: '<%=verifyDelegheRenderURL%>'
}
);
Liferay.Util.openWindow({
id: '<portlet:namespace />openVerificaDeleghe',
title: 'Gestione Deleghe',
uri: '<%=verifyDelegheRenderURL%>',
});
</aui:script>
</c:if>
</c:if>
<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="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</portlet:renderURL>
<aui:script use="aui-base">
Liferay.Util.openWindow(
{
id: '<portlet:namespace />openVerificaFascicolo',
title: 'Verifica Cambio Soggetti',
uri: '<%=verifyRenderURL%>'
}
);
Liferay.Util.openWindow({
id: '<portlet:namespace />openVerificaFascicolo',
title: 'Verifica Cambio Soggetti',
uri: '<%=verifyRenderURL%>',
});
</aui:script>
</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='<%= "verifyPagamenti".equalsIgnoreCase(verifyArea) %>'>
<liferay-portlet:renderURL var="verifyPagamentiRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<liferay-portlet:renderURL var="verifyPagamentiRenderURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= currentURL %>" />
</liferay-portlet:renderURL>
<aui:script use="aui-base">
Liferay.Util.openWindow(
{
id: '<portlet:namespace />openVerificaFascicolo',
title: 'Gestione Pagamenti',
uri: '<%=verifyPagamentiRenderURL%>'
}
);
Liferay.Util.openWindow({
id: '<portlet:namespace />openVerificaFascicolo',
title: 'Gestione Pagamenti',
uri: '<%=verifyPagamentiRenderURL%>',
});
</aui:script>
</c:if>
</c:if>
</c:if>
<liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" />
<%
String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), "_"+PortletKeys.FASCICOLOFE+"_openVerifyUrl");
String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), StringPool.UNDERLINE + PortletKeys.FASCICOLOFE
+ "_openVerifyUrl");
%>
<aui:script use="aui-base">
var verifyPopupReady = false;
Liferay.on('popupReady',function(event) {
var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) {
Loading.start();
if(event.prevVal && verifyPopupReady){
window.location.href = "<%= refreshURL %>"
}
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();
});
var verifyPopupReady = false;
Liferay.on('popupReady', function (event) {
var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function (event) {
Loading.start();
if (event.prevVal && verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
Loading.end();
});
Liferay.on('verifyPopup-ready',function(event) {
verifyPopupReady=true;
modalWin.after('hide', function (event) {
Loading.start();
if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
Loading.end();
});
</aui:script>
<script type="text/javascript">
modalWin.after('destroy', function (event) {
Loading.start();
if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>"
}
Loading.end();
});
});
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']
);
// 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"){
//$("[name='bodyVerifyPopUp']").show();
$("#isTopBar").show();
$("#isBottomBar").hide();
$('[id*="_portosfeportlet_verificaDiv_"]').show();
}
}
);
Liferay.on('verifyPopup-ready', function (event) {
verifyPopupReady = true;
});
</aui:script>
<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>
<aui:script use="aui-base">
A.one('#<portlet:namespace/>tabsBoundingBox').delegate(
'click',
function(event){
var nodeObject = event.currentTarget;
A.one('#<portlet:namespace/>current_tab').set('value', nodeObject.attr('data-sectionid'));
},
'li.tab');
var current_tab = '<%=current_tab%>';
if(current_tab!='' && document.location.hash==''){
document.location.hash='_1_WAR_portosfeportlet_tab=<%=current_tab%>';
}
A.one('#<portlet:namespace />tabsBoundingBox').delegate('click', function (event) {
var nodeObject = event.currentTarget;
A.one('#<portlet:namespace />current_tab').set('value', nodeObject.attr('data-sectionid'));
}, 'li.tab');
var current_tab = '<%=current_tab%>';
if (current_tab != '' && document.location.hash == '') {
document.location.hash='_1_WAR_portosfeportlet_tab=<%=current_tab%>';
}
</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
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>'
localizeTitle="<%= false %>"
localizeTitle="false"
backURL="<%= backURL %>"
/>
</div>
<c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
iconCssClass="fa fa-save"
@ -224,15 +224,15 @@
<div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoFineLavori" showEmptyOption="true" disabled="<%= disabledEditing %>" >
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE)%>">
<aui:option label='Parziale' value="<%= true %>" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/>
<aui:option label='Parziale' value="true" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/>
</c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE)%>">
<aui:option label='Totale' value="<%= false %>" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/>
<aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/>
</c:if>
<c:if test="<%= !AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE) &&
!AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE) %>">
<aui:option label='Parziale' disabled="<%= true %>" value="<%= true %>" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/>
<aui:option label='Totale' disabled="<%= true %>" value="<%= false %>" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/>
<aui:option label='Parziale' disabled="true" value="true" selected="<%= Validator.isNotNull(fineLavori) && fineLavori.getParziale() %>"/>
<aui:option label='Totale' disabled="true" value="false" selected="<%= Validator.isNotNull(fineLavori) && !fineLavori.getParziale() %>"/>
</c:if>
</aui:select>
</div>
@ -292,7 +292,7 @@
String contentId = "dettagliContent_"+index;
String titleId = "Dettagli "+tipoIntegrazione+" #"+dettPraticaExtra.getDettPraticaId();
%>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
id='<%=buttonId %>'
iconCssClass="fa fa-info-circle"
@ -356,7 +356,7 @@
</c:if> --%>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
@ -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-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</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="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<%@ include file="/html/fascicolofe/navigator/common/save_actions.jspf" %>
<!-- ADT BUG FE ID = 14 -->
<c:set var="isBar" value="isBottomBar" scope="session"/>
</div>
</div>

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

@ -1,60 +1,57 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<style type="text/css">
.anteprimaasseverazione h1 {
font-size: 14px;
}
.anteprimaasseverazione p, .anteprimaasseverazione li {
font-size: 12px;
margin-bottom: 6px;
}
.anteprimaasseverazione ul {
list-style-type: square;
list-style-position: inside;
}
.anteprimaasseverazione li {
display: list-item !important;
}
.anteprimaasseverazione .indent {
margin-left: 24px;
list-style-type: circle;
margin-bottom: 3px;
}
.anteprimaasseverazione h1 {
font-size: 14px;
}
.anteprimaasseverazione p, .anteprimaasseverazione li {
font-size: 12px;
margin-bottom: 6px;
}
.anteprimaasseverazione ul {
list-style-type: square;
list-style-position: inside;
}
.anteprimaasseverazione li {
display: list-item !important;
}
.anteprimaasseverazione .indent {
margin-left: 24px;
list-style-type: circle;
margin-bottom: 3px;
}
</style>
<div class="container-fluid clearfix">
<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: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 number = StringPool.BLANK;
if(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione())){
label = "gestione-soggetti";
}else if(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione())){
label = "richiesta-integrazione";
}else if(TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione())){
label = "variante";
}else if(Validator.isNull(dettPraticaId)){
label = "new-fascicolo";
} else {
label = "edit-fascicolo";
}
String message = LanguageUtil.get(pageContext, label);
String label = StringPool.BLANK;
String number = StringPool.BLANK;
if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione())) {
label = "gestione-soggetti";
} else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione())) {
label = "richiesta-integrazione";
} else if (TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione())) {
label = "variante";
}else if (Validator.isNull(dettPraticaId)) {
label = "new-fascicolo";
} else {
label = "edit-fascicolo";
}
String message = LanguageUtil.get(pageContext, label);
%>
<liferay-ui:header
title='<%= message+" #"+dettPratica.getTitle() %>'
localizeTitle="<%= false %>"
backURL="<%= Validator.isNotNull(backURL)?backURL:baseViewUrl %>"
/>
<liferay-ui:header title='<%= message + " #" + dettPratica.getTitle() %>' localizeTitle="false"
backURL="<%= Validator.isNotNull(backURL) ? backURL : baseViewUrl %>" />
</div>
<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">
<c:if test="<%= dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT %>">
<div class="col-xs-5 container_action-top">
<%@ include file="/html/fascicolofe/navigator/common/save_actions.jspf" %>
<!-- ADT BUG FE ID = 14 -->
<c:set var="isBar" value="isTopBar" scope="session"/>
</div>
</c:if>
</div>
</div>
</div>

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

@ -1,53 +1,49 @@
<%@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.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.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.ValidazionePraticaUtil"%>
<div class="container-fluid clearfix">
<div class="row">
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9">
<liferay-ui:header
title='<%= LanguageUtil.get(pageContext, (Validator.isNull(dettPraticaId) ? "new-fascicolo" : "edit-fascicolo")) %>'
localizeTitle="<%= false %>"
backURL="<%= backURL %>"
/>
<div class="col-xs-9">
<liferay-ui:header
title='<%= LanguageUtil.get(pageContext, (Validator.isNull(dettPraticaId) ? "new-fascicolo"
: "edit-fascicolo")) %>'
localizeTitle="false" backURL="<%= backURL %>" />
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="col-xs-3">
<div class="pull-right" >
<%
String formName = "fmDomande";
String buttonId = "fmbuttonsalvaconferma";
String formName = "fmDomande";
String buttonId = "fmbuttonsalvaconferma";
%>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= intPratica.getUserId() == user.getUserId() || dettPratica.getUserId() == user.getUserId() || DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>">
<liferay-portlet:renderURL var="calcolaURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
</liferay-portlet:renderURL>
<liferay-ui:icon
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"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 %>"
/>
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar">
<c:if test="<%= intPratica.getUserId() == user.getUserId()
|| dettPratica.getUserId() == user.getUserId()
|| DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>">
<liferay-portlet:renderURL var="calcolaURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="mvcPath"
value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
</liferay-portlet:renderURL>
<liferay-ui:icon
linkCssClass='<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ?
"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>
</liferay-ui:icon-menu>
</div>
</div>
</div>
</div>
</div>
</div>

541
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 import="it.tref.liferay.portos.bo.shared.util.Constants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@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.dao.orm.QueryUtil"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@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.Validator"%>
<%@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.model.Delega"%>
<%@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.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.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" >
<%
String randomId = StringUtil.randomId();
String formName = "fmDomande";
String buttonId = "fmbuttonsalvaconferma_"+randomId;
String buttonAsseverazioneId = "fmbuttonasseverazione_"+randomId;
String script =
"var el_relazioni = $('textarea[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Relazioni]');" +
"if (el_relazioni.length) {" +
"var el_coniugio = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]');" +
"var el_coniugiochk = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]:checked');" +
"console.log('length: ' + el_relazioni.length);" +
"var err_coniugio = (el_coniugiochk.length == 0);" +
"var err_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));" +
"el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});" +
"el_relazioni.css({'border-color':(err_relazioni ?'#a94442' : '#ccc')});" +
"if (err_coniugio || err_relazioni) {" +
"$('#" + renderResponse.getNamespace() + "{{prefix}}SaveAndCloseDiv_" + randomId + "').parent().scrollTop(0);" +
"return false;" +
"}" +
"}" +
"saveDettPratica(false, '{{type}}');";
%>
<aui:input type="hidden" name="<%= Constants.CMD %>" value="" />
<%
String randomId = StringUtil.randomId();
String formName = "fmDomande";
String buttonId = "fmbuttonsalvaconferma_" + randomId;
String buttonAsseverazioneId = "fmbuttonasseverazione_" + randomId;
String script =
"var el_relazioni = $('textarea[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Relazioni]');" +
"if (el_relazioni.length) {" +
"var el_coniugio = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]');" +
"var el_coniugiochk = $('input[name=_" + PortletKeys.FASCICOLOFE + "_{{prefix}}Coniugio]:checked');" +
"var err_coniugio = (el_coniugiochk.length == 0);" +
"var err_relazioni = ((el_relazioni.val().replace(/\\s*/g, '').length < 10) && (el_coniugiochk.val() == 1));" +
"el_coniugio.parent().css({color:(err_coniugio ? '#a94442' : '#333')});" +
"el_relazioni.css({'border-color':(err_relazioni ?'#a94442' : '#ccc')});" +
"if (err_coniugio || err_relazioni) {" +
"$('#" + renderResponse.getNamespace() + "{{prefix}}SaveAndCloseDiv_" + randomId + "').parent().scrollTop(0);" +
"return false;" +
"}" +
"}" +
"saveDettPratica(false, '{{type}}');";
%>
<aui:input type="hidden" name="<%= Constants.CMD %>" value="" />
<aui:input type="hidden" name="verifyArea" value="" />
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<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);"
linkCssClass="btn"
/>
</c:if>
<c:if test="<%= intPratica.getUserId() == user.getUserId()
&& !DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId)
&& !AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), dettPraticaId)%>">
<liferay-ui:icon
iconCssClass="fa fa-check-square"
message="salva-verifica"
url="javascript:saveDettPratica(false, 'domanda', 'verifyFascicolo');"
linkCssClass="btn btn-primary"
/>
</c:if>
<c:if test="<%=DelegheUtil.canCompilaDomanda(user.getUserId(),dettPraticaId) %>">
<liferay-ui:icon
iconCssClass="fa fa-users"
linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?"btn":"btn disabled" %>'
message="gestione-deleghe"
url="javascript:saveDettPratica(false, 'domanda', 'verifyDeleghe');"
/>
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<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)"
linkCssClass="btn" />
</c:if>
<c:if test="<%= intPratica.getUserId() == user.getUserId()
&& !DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId)
&& !AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), dettPraticaId) %>">
<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 test="<%= DelegheUtil.canCompilaDomanda(user.getUserId(), dettPraticaId) %>">
<liferay-ui:icon iconCssClass="fa fa-users"
linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId) ? "btn"
:"btn disabled" %>'
message="gestione-deleghe" url="javascript:saveDettPratica(false, 'domanda', 'verifyDeleghe')" />
</c:if>
<c:if test="<%= DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>">
<%
boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese();
boolean isIntegrazione = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil
.RICHIESTA_INTEGRAZIONE);
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: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 test="<%= DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>">
<%
boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese();
boolean isIntegrazione = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE);
%>
<%-- <c:if test="<%= !isEsente && !isIntegrazione && DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>">
<liferay-ui:icon
iconCssClass="fa fa-cogs"
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"btn btn-primary":"btn btn-primary disabled" %>'
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId)>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>'
url="javascript:saveDettPratica(false, 'domanda', 'verifyPagamenti');"
/>
</c:if> --%>
<%
Map<String,Object> dataMap = new HashMap<String, Object>();
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)%>" />
<c:if test="<%= !isIntegrazione %>">
<c:if test="<%= isEsente %>">
<liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" />
<liferay-portlet:param name="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 %>"
/>
linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?
"btn btn-primary" : "btn btn-primary disabled" %>'
iconCssClass="fa fa-check" useDialog="true" message="Concludi Domanda"
url="<%= completeDomandaEsenteURL %>" data="<%= dataMap %>" />
</c:if>
<c:if test="<%= !isIntegrazione %>">
<c:if test="<%= isEsente %>">
<liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<liferay-portlet:param name="redirect" value="<%= completedURL %>" />
</liferay-portlet:actionURL>
<liferay-ui:icon
linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>'
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 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 test="<%=DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) && !DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>">
<liferay-ui:icon
iconCssClass="fa fa-save"
message="save"
url="javascript:saveDettPratica(true);"
linkCssClass="btn"
/>
<%
long delegaId = ParamUtil.getLong(request, "delegaId");
Delega delega = DelegaLocalServiceUtil.getDelega(delegaId);
boolean validated = true;
StringBuilder tooltipSection = new StringBuilder();
if(delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO)){
//List<String> notCompleted = ValidazionePraticaUtil.notCompletedSection(SezioniUtil.SEZIONE_GEOLOGICA, dettPraticaId);
List<String> notCompleted = ValidazionePraticaUtil.notCompletedSezioneGeologica(dettPraticaId);
if(!notCompleted.isEmpty()){
validated = false;
tooltipSection.append("<ul class='list-body-modal'>");
for(String incomplete : notCompleted){
tooltipSection.append("<li class='item-body-modal'>"+LanguageUtil.get(pageContext, incomplete)+"</li>");
}
tooltipSection.append("</ul>");
</c:if>
<c:if test="<%= DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) &&
!DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>">
<liferay-ui:icon iconCssClass="fa fa-save" message="save" url="javascript:saveDettPratica(true)"
linkCssClass="btn" />
<%
long delegaId = ParamUtil.getLong(request, "delegaId");
Delega delega = DelegaLocalServiceUtil.getDelega(delegaId);
boolean validated = true;
StringBuilder tooltipSection = new StringBuilder();
if (delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO)) {
List<String> notCompleted = ValidazionePraticaUtil.notCompletedSezioneGeologica(dettPraticaId);
if (!notCompleted.isEmpty()) {
validated = false;
tooltipSection.append("<ul class='list-body-modal'>");
for (String incomplete : notCompleted) {
tooltipSection.append("<li class='item-body-modal'>")
.append(LanguageUtil.get(pageContext, incomplete)).append("</li>");
}
tooltipSection.append("</ul>");
}
}
%>
<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"
message="verifica-delega"
url="javascript:saveDettPratica(true,'saveAndVerify');"
linkCssClass="btn"
/>
<!-- ADT BUG FE ID = 14 -->
<liferay-ui:icon id="<%= buttonIdVerifica %>" iconCssClass="fa fa-times-circle txt-red"
message="verifica-delega" url="javascript:saveDettPratica(true,'saveAndVerify')"
linkCssClass="btn" />
<div id="${isBar}" hidden>
<liferay-util:include page="/html/common/submit_window_delega.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="Validazione Sezione Geologia"></liferay-util:param>
<liferay-util:param name="headerCSS" value="display-inline"></liferay-util:param>
<liferay-util:param name="contentDiv" value='<%= "verificaDiv_"+randomId %>'></liferay-util:param>
<liferay-util:param name="buttonId" value="<%=buttonIdVerifica %>"></liferay-util:param>
<liferay-util:param name="buttonAnnulla" value="Chiudi"></liferay-util:param>
<liferay-util:param name="okVisible" value="false"></liferay-util:param>
<liferay-util:param name="width" value="500"></liferay-util:param>
<liferay-util:param name="height" value="320"></liferay-util:param>
<liferay-util:include page="/html/common/submit_window_delega.jsp"
servletContext="<%= application %>">
<liferay-util:param name="titolo" value="Validazione Sezione Geologia" />
<liferay-util:param name="headerCSS" value="display-inline" />
<liferay-util:param name="contentDiv" value='<%= "verificaDiv_" + randomId %>' />
<liferay-util:param name="buttonId" value="<%= buttonIdVerifica %>" />
<liferay-util:param name="buttonAnnulla" value="Chiudi" />
<liferay-util:param name="okVisible" value="false" />
<liferay-util:param name="width" value="500" />
<liferay-util:param name="height" value="320" />
</liferay-util:include>
<div hidden id='<%=renderResponse.getNamespace()+"verificaDiv_"+randomId %>' class="text-center" >
<div hidden id='<%= renderResponse.getNamespace() + "verificaDiv_" + randomId %>'
class="text-center" >
<h4 class="txt-bold text-center">Sezione Geologia incompleta:</h4>
<%= tooltipSection.toString() %>
<%= tooltipSection.toString() %>
</div>
</div>
</c:if>
<c:if test="<%= validated && DelegheUtil.TIPO_GEOLOGO.equalsIgnoreCase(delega.getTipologia()) %>">
<liferay-ui:icon
iconCssClass="fa fa-check-circle txt-green"
message="verifica-delega"
url="javascript:void(0)"
linkCssClass="btn disabled"
/>
<liferay-ui:icon iconCssClass="fa fa-check-circle txt-green" message="verifica-delega"
url="javascript:void(0)" linkCssClass="btn disabled" />
</c:if>
<span class="<%= !validated ? "tooltip-info" : StringPool.BLANK %>" title="Delega incompleta">
<liferay-ui:icon
id="<%=buttonId %>"
iconCssClass="fa fa-check-circle"
message="concludi-delega"
url="javascript:void(0)"
linkCssClass='<%= !validated ? "btn btn-primary disabled" : "btn btn-primary" %>'
/>
<span class="<%= validated ? StringPool.BLANK : "tooltip-info" %>" title="Delega incompleta">
<liferay-ui:icon id="<%= buttonId %>" iconCssClass="fa fa-check-circle" message="concludi-delega"
url="javascript:void(0)"
linkCssClass='<%= validated ? "btn btn-primary" : "btn btn-primary disabled" %>' />
</span>
<c:if test="<%= validated %>">
<div id='<%=renderResponse.getNamespace()+"dgSaveAndCloseDiv_"+randomId %>' class="hide" >
<div id='<%= renderResponse.getNamespace()+"dgSaveAndCloseDiv_" + randomId %>' class="hide" >
<span>
<c:choose>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_TOTALE) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-totale", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_TOTALE)
&& delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-totale",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_COMPILAZIONE) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-compilazione", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_COMPILAZIONE)
&& delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-compilazione",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</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" />
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 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>
<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 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>
<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 test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-firma-inserimento", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI)
&& delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-firma-inserimento",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_FINE_LAVORI) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-fine-lavori", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_FINE_LAVORI)
&& delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-fine-lavori",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_VISUALIZZAZIONE) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-visualizzazione", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_VISUALIZZAZIONE)
&& delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-visualizzazione",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_COLLAUDO) && delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-collaudo", new String[]{user.getFirstName()+user.getMiddleName(), user.getLastName()}) %>
<c:when test="<%= delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_COLLAUDO)
&& delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) %>">
<%= LanguageUtil.format(pageContext, "confirm-delega-collaudo",
new String[]{ user.getFirstName(), user.getLastName() }) %>
</c:when>
</c:choose>
</span>
</div>
<liferay-portlet:resourceURL id="isCompletedDelegaGeologo" var="isCompletedDelegaGeologoURL" />
<%
String function = "A.io.request('"+isCompletedDelegaGeologoURL+"',{data: {"+renderResponse.getNamespace()+"classPk: "+dettPraticaId+"},"+
"dataType: 'json',on: {success: function(event, id, obj) {console.log(this.get('responseData'));var response = this.get('responseData');"+
"console.log(response.isCompleted);"+
"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();}"+
"}});";
String function = "A.io.request('" + isCompletedDelegaGeologoURL + "'," +
"{data: {" + renderResponse.getNamespace()+"classPk: "+dettPraticaId+"}," +
"dataType: 'json'," +
"on: {" +
"success: function (event, id, obj) {" +
"var response = this.get('responseData');" +
"if (!response.isCompleted) {" +
"var body = A.one('#" + renderResponse.getNamespace() + "dgSaveAndCloseDiv_" + randomId + "');" +
"body.html('<p class=\"text-center\">Delega incompleta<a href=\"javascript:void(0)\" class=\"btn btn-success\" style=\"margin-bottom:20px\" onclick=\"window.location.reload()\">Refresh</a></p>');" +
"body.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:param name="formName" value="<%= formName %>"></liferay-util:param>
<liferay-util:param name="onClick" value="<%= script.replace(\"{{prefix}}\", \"dg\").replace(\"{{type}}\", \"delega\") %>"></liferay-util:param>
<liferay-util:param name="titolo" value="Conclusione Delega"></liferay-util:param>
<liferay-util:param name="contentDiv" value='<%= "dgSaveAndCloseDiv_"+randomId %>'></liferay-util:param>
<liferay-util:param name="buttonId" value="<%=buttonId %>"></liferay-util:param>
<liferay-util:param name="buttonConferma" value="Conferma"></liferay-util:param>
<liferay-util:param name="width" value="500"></liferay-util:param>
<liferay-util:param name="height" value="320"></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 name="titolo" value="Conclusione Delega" />
<liferay-util:param name="contentDiv" value='<%= "dgSaveAndCloseDiv_" + randomId %>' />
<liferay-util:param name="buttonId" value="<%= buttonId %>" />
<liferay-util:param name="buttonConferma" value="Conferma" />
<liferay-util:param name="width" value="500" />
<liferay-util:param name="height" value="320" />
<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>
</liferay-util:include>
</c:if>
</c:if>
<c:if test="<%=AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), intPraticaId) %>">
<liferay-ui:icon
id="<%=buttonAsseverazioneId %>"
iconCssClass="fa fa-save"
message="Assevera"
url="#"
linkCssClass="btn btn-primary"
/>
<div id='<%=renderResponse.getNamespace()+"asSaveAndCloseDiv_"+randomId %>' class="hide" >
<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 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>
<c:if test="<%=AsseverazioniUtil.hasAsseverazioneAttiva(user.getUserId(), intPraticaId) %>">
<liferay-ui:icon id="<%= buttonAsseverazioneId %>" iconCssClass="fa fa-save" message="Assevera" url="#"
linkCssClass="btn btn-primary" />
<div id='<%= renderResponse.getNamespace() + "asSaveAndCloseDiv_" + randomId %>' class="hide">
<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 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>
<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);
for(Asseverazione asseverazione : asseverazioni){
%>
<%
List<Asseverazione> asseverazioni = AsseverazioneServiceUtil
.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, user.getScreenName(),
new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null);
for (Asseverazione asseverazione : asseverazioni) {
%>
<li class="anteprimaasseverazione">
<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);
if (Validator.isNull(testoAsseverazione)) {
testoAsseverazione = AsseverazioniUtil.retrieveAsseverazioneText(asseverazione, user.getScreenName());
}
String testoAsseverazione = AsseverazioneLocalServiceUtil
.anteprimaAsseverazione(asseverazione.getTipologia(), user,
dettPratica, null);
if (Validator.isNull(testoAsseverazione)) {
testoAsseverazione = AsseverazioniUtil.retrieveAsseverazioneText(
asseverazione, user.getScreenName());
}
%>
<%= testoAsseverazione %>
</c:if>
</p>
</li>
<%
<%
}
%>
%>
</ol>
</div>
<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="onClick" value="<%= script.replace(\"{{prefix}}\", \"as\").replace(\"{{type}}\", \"asseverazione\") %>"></liferay-util:param>
<liferay-util:param name="titolo" value="Conferma Asseverazione"></liferay-util:param>
<liferay-util:param name="contentDiv" value='<%= "asSaveAndCloseDiv_"+randomId %>'></liferay-util:param>
<liferay-util:param name="buttonId" value="<%= buttonAsseverazioneId %>"></liferay-util:param>
<liferay-util:param name="buttonConferma" value="Conferma"></liferay-util:param>
<liferay-util:param name="width" value="800"></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 name="titolo" value="Conferma Asseverazione" />
<liferay-util:param name="contentDiv" value='<%= "asSaveAndCloseDiv_"+randomId %>' />
<liferay-util:param name="buttonId" value="<%= buttonAsseverazioneId %>" />
<liferay-util:param name="buttonConferma" value="Conferma" />
<liferay-util:param name="width" value="800" />
</liferay-util:include>
</c:if>
</c:if>
<c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<liferay-ui:icon
iconCssClass="fa fa-save"
message="salva-bozza"
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"
/>
<liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza" 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>
</liferay-ui:icon-menu>
</div>
</div>

44
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 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"%>
<%@ 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");
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
String label = ParamUtil.getString(request, "label");
String dialogId = renderResponse.getNamespace()+"openVerificaFascicolo";
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
String label = ParamUtil.getString(request, "label");
String dialogId = renderResponse.getNamespace()+"openVerificaFascicolo";
%>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<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 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 value="Chiudi" cssClass="btn btn-success" onClick='<%=renderResponse.getNamespace()+"closePopup()"%>'></aui:button>
</aui:button-row>
<aui:button value="Chiudi" cssClass="btn btn-success" onClick='<%= renderResponse.getNamespace()
+ "closePopup()" %>' />
</aui:button-row>
</div>
</div>
</div>
<aui:script use="aui-base">
Liferay.provide(
window,
'<portlet:namespace/>closePopup',
function() {
Liferay.fire(
'closeWindow',
{
id: '<%= dialogId %>'
}
);
},
['aui-base','liferay-util-window']
);
Liferay.provide(window, '<portlet:namespace/>closePopup', function () {
Liferay.fire('closeWindow', {
id: '<%= dialogId %>'
});
}, ['aui-base','liferay-util-window']);
</aui:script>

62
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 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.ValidazionePraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AsseverazioniUtil"%>
<%@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"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@ include file="/html/fascicolofe/init.jsp"%>
<%
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
request.setAttribute("bean.dettPratica", dettPratica);
long soggettoId = ParamUtil.getLong(request, "soggettoId");
boolean disabledInput = ParamUtil.getBoolean(request, "disabledInput");
boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
request.setAttribute("bean.dettPratica", dettPratica);
long soggettoId = ParamUtil.getLong(request, "soggettoId");
boolean disabledInput = ParamUtil.getBoolean(request, "disabledInput");
boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
%>
<c:if test="<%=!inBO%>">
<c:if test="<%= !inBO %>">
<c:choose>
<c:when test="<%=!ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId())%>">
<div class="alert alert-warn">
<liferay-ui:message key="domanda-non-modificabile" />
</div>
<c:when test="<%= !ValidazionePraticaUtil.praticaIsEditable(dettPratica.getDettPraticaId()) %>">
<div class="alert alert-warn"><liferay-ui:message key="domanda-non-modificabile" /></div>
</c:when>
<c:when
test="<%=disabledInput
&& !AsseverazioniUtil.hasAsseverazioniAttive(dettPratica.getDettPraticaId())%>">
<c:when test="<%=disabledInput
&& !AsseverazioniUtil.hasAsseverazioniAttive(dettPratica.getDettPraticaId())%>">
<div class="alert alert-warn">
<%
String descrizioneSoggetto = "";
String descrizioneSoggetto = StringPool.BLANK;
Soggetto soggetto = SoggettoLocalServiceUtil.fetchSoggetto(soggettoId);
if (soggetto != null) {
descrizioneSoggetto = soggetto.getDescrizioneCompleta();
} else {
descrizioneSoggetto = "nessuna delega attiva";
List<Soggetto> responsabiliCompilazione = null;
Object obj = request.getAttribute("responsabiliCompilazione");
if (obj instanceof List<?>) {
responsabiliCompilazione = (List<Soggetto>) obj;
}
if (Validator.isNotNull(responsabiliCompilazione) && (responsabiliCompilazione.size() > 0)) {
List<String> nomi = new ArrayList<String>();
for (Soggetto responsabile : responsabiliCompilazione) {
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" />
: <strong><%=descrizioneSoggetto%></strong>
: <strong><%= descrizioneSoggetto %></strong>
</div>
</c:when>
<c:when test="<%=AsseverazioniUtil.hasAsseverazioniAttive(dettPratica.getDettPraticaId())%>">
<c:when test="<%= AsseverazioniUtil.hasAsseverazioniAttive(dettPratica.getDettPraticaId()) %>">
<div class="alert alert-warn">
<liferay-ui:message key="asseverazioni-attive-domanda-non-modificabile" />
</div>
</c:when>
<c:when
test="<%=PagamentiCommonUtil.pagamentiInitialized(dettPratica.getDettPraticaId(),
DettPratica.class.getName())%>">
<div class="alert alert-warn">
<liferay-ui:message key="pagamento-attivo-domanda-non-modificabile" />
</div>
test="<%= PagamentiCommonUtil.pagamentiInitialized(dettPratica.getDettPraticaId(), DettPratica.class
.getName()) %>">
<div class="alert alert-warn"><liferay-ui:message key="pagamento-attivo-domanda-non-modificabile" /></div>
</c:when>
</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-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
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-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
iconCssClass="fa fa-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">
<h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(collaudo.getCollaudoId(), Collaudo.class.getName()) %>">
<liferay-ui:icon
iconCssClass="fa fa-chevron-left"
@ -255,7 +255,7 @@
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
iconCssClass="fa fa-close"
message="cancel"

647
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 import="java.util.HashMap"%>
<%@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="com.liferay.portal.kernel.util.ParamUtil"%>
<%@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.util.AsseverazioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="java.util.LinkedHashSet"%>
<%@page import="java.util.Set"%>
<%@include file="/html/fascicolofe/init.jsp"%>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if(dettPratica==null){
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if(dettPratica==null){
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
}
%>
<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="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<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="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" />
</liferay-portlet:renderURL>
<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="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<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="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" />
</liferay-portlet:renderURL>
<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: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>
<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="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId)%>" />
<portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId)%>" />
<portlet:param name="backURL" value="<%= currentURL %>" />
</portlet:renderURL>
<portlet:renderURL var="asseverazioneURL">
<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:renderURL>
<liferay-portlet:renderURL var="viewProgettiURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view.jsp"/>
</liferay-portlet:renderURL>
<liferay-portlet:actionURL name="completeIntegrazione" var="completeIntegrazioneURL">
<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:actionURL>
<liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL">
<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:actionURL>
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="help_message_verifica"></liferay-util:param>
</liferay-util:include>
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="help_message_verifica" />
</liferay-util:include>
<div class="container-fluid clearfix">
<h2 class="title-fascicolo pull-left">Verifica Fascicolo</h2>
<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 iconCssClass="fa fa-refresh" message="refresh" url="<%= verifyURL %>"
linkCssClass="btn" />
<liferay-ui:icon
iconCssClass="fa fa-refresh"
message="refresh"
url="<%=verifyURL %>"
linkCssClass="btn"
/>
<liferay-ui:icon
linkCssClass='<%=ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?"btn":"btn disabled" %>'
iconCssClass="fa fa-users"
message="gestione-deleghe-compilazione"
url="<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?delegaURL:StringPool.DASH %>"
/>
linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId) ?"btn"
:"btn disabled" %>'
iconCssClass="fa fa-users" message="gestione-deleghe-compilazione"
url="<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId) ? delegaURL
: StringPool.DASH %>" />
<%
boolean asseverazioniIsEnabled = ValidazionePraticaUtil.asseverazioniIsEnable(dettPraticaId);
StringBuilder tooltipAsseverazioni = new StringBuilder();
if(!asseverazioniIsEnabled){
tooltipAsseverazioni.append("<ul>");
if(!ValidazionePraticaUtil.praticaIsCompleta(dettPraticaId)){
tooltipAsseverazioni.append("<li>Domanda incompleta</li>");
}
if(SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) == 0){
tooltipAsseverazioni.append("<li>Nessun soggetto</li>");
}
if(DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)){
tooltipAsseverazioni.append("<li>Deleghe Attive</li>");
}
tooltipAsseverazioni.append("</ul>");
boolean asseverazioniIsEnabled = ValidazionePraticaUtil.asseverazioniIsEnable(dettPraticaId);
StringBuilder tooltipAsseverazioni = new StringBuilder();
if (!asseverazioniIsEnabled) {
tooltipAsseverazioni.append("<ul>");
if (!ValidazionePraticaUtil.praticaIsCompleta(dettPraticaId)) {
tooltipAsseverazioni.append("<li>Domanda incompleta</li>");
}
if (SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) == 0) {
tooltipAsseverazioni.append("<li>Nessun soggetto</li>");
}
if (DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)) {
tooltipAsseverazioni.append("<li>Deleghe Attive</li>");
}
tooltipAsseverazioni.append("</ul>");
}
%>
<span class="<%= !asseverazioniIsEnabled ? "tooltip-info" : StringPool.BLANK %>" title="<%= tooltipAsseverazioni.toString() %>">
<liferay-ui:icon
linkCssClass='<%=asseverazioniIsEnabled ? "btn":"btn disabled" %>'
iconCssClass="fa fa-pencil"
message="gestione-asseverazioni"
url="<%= asseverazioniIsEnabled?asseverazioneURL:StringPool.DASH %>"
/>
<span class="<%= asseverazioniIsEnabled ? StringPool.BLANK : "tooltip-info" %>"
title="<%= tooltipAsseverazioni.toString() %>">
<liferay-ui:icon linkCssClass='<%=asseverazioniIsEnabled ? "btn" : "btn disabled" %>'
iconCssClass="fa fa-pencil" message="gestione-asseverazioni"
url="<%= asseverazioniIsEnabled ? asseverazioneURL : StringPool.DASH %>" />
</span>
<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 %>">
<liferay-ui:icon
linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>'
iconCssClass="fa fa-check"
message="Concludi Domanda"
url="<%= completeDomandaEsenteURL %>"
/>
linkCssClass='<%= ValidazionePraticaUtil.canCompleteDettPraticaEsente(dettPraticaId) ?
"btn btn-primary" : "btn btn-primary disabled" %>'
iconCssClass="fa fa-check" message="Concludi Domanda"
url="<%= completeDomandaEsenteURL %>" />
</c:if>
<c:if test="<%= !isEsente %>">
<liferay-ui:icon
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"btn btn-primary":"btn btn-primary disabled" %>'
iconCssClass="fa fa-cogs"
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId)>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>'
url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?calcolaURL:StringPool.DASH %>"
/>
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ?
"btn btn-primary" : "btn btn-primary disabled" %>'
iconCssClass="fa fa-cogs"
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 test="<%= dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE) %>">
<liferay-ui:icon
linkCssClass='<%= ValidazionePraticaUtil.canCompleteIntegrazione(dettPraticaId) ?"btn btn-primary":"btn btn-primary disabled" %>'
iconCssClass="fa fa-check"
message="Concludi Integrazione"
url="<%= completeIntegrazioneURL %>"
/>
linkCssClass='<%= ValidazionePraticaUtil.canCompleteIntegrazione(dettPraticaId) ?
"btn btn-primary" : "btn btn-primary disabled" %>'
iconCssClass="fa fa-check" message="Concludi Integrazione"
url="<%= completeIntegrazioneURL %>" />
</c:if>
</liferay-ui:icon-menu>
</div>
@ -178,10 +154,9 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
<div class="container-fluid clearfix compilazione-domanda" id="<portlet:namespace/>_section-completed">
<div class="col-xs-12 asseverazioni tab-error">
<div class="row asseverazioni-header">
<div class="col-xs-12 text-center asseverazioni-header__title">
<strong>Compilazione Domanda</strong>
</div>
</div>
<div class="col-xs-12">
<div class="row" style="padding-top: 10px;">
<div class="col-xs-8">
@ -195,43 +170,43 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
</div>
</div>
<%
for(String section:sections){
for (String section : sections) {
%>
<div class="row asseverazioni-title">
<div class="col-xs-8">
<%=LanguageUtil.get(pageContext, "sezione-"+section) %>
<%= LanguageUtil.get(pageContext, "sezione-"+section) %>
</div>
<div class="col-xs-2 text-center">
<%
StringBuilder tooltipSection = new StringBuilder();
List<String> notCompleted = ValidazionePraticaUtil.notCompletedSection(section, dettPraticaId);
if (notCompleted.size() > 0 ) {
if(!notCompleted.isEmpty()){
tooltipSection.append("<ul class='list-body-modal'>");
for(String incomplete : notCompleted){
tooltipSection.append("<li class='item-body-modal'>"+LanguageUtil.get(pageContext, incomplete)+"</li>");
}
tooltipSection.append("</ul>");
}
}
%>
<span class='icon-asseverazioni fa <%= notCompleted.size() == 0 ? "fa-check txt-green" : "fa-close txt-red"%>'></span>
StringBuilder tooltipSection = new StringBuilder();
List<String> notCompleted = ValidazionePraticaUtil.notCompletedSection(section, dettPraticaId);
if (notCompleted.size() > 0 ) {
tooltipSection.append("<ul class='list-body-modal'>");
for (String incomplete : notCompleted) {
tooltipSection.append("<li class='item-body-modal'>")
.append(LanguageUtil.get(pageContext, incomplete)).append("</li>");
}
tooltipSection.append("</ul>");
}
%>
<span class='icon-asseverazioni fa <%= notCompleted.size() == 0 ? "fa-check txt-green"
: "fa-close txt-red"%>'></span>
</div>
<div class="col-xs-2 text-center">
<c:if test="<%= tooltipSection.length() > 0 %>">
<button id="<portlet:namespace /><%= section %>_button" class="btn btn-primary">Dettagli</button>
<div id="<portlet:namespace /><%= section %>_div" class="hide"><%= tooltipSection.toString() %></div>
<%
String title = "Riepilogo Errori Sezione "+LanguageUtil.get(pageContext, "sezione-"+section);
String buttonId = section+"_button";
String contentId = section+"_div";
<%
String title = "Riepilogo Errori Sezione " + LanguageUtil.get(pageContext, "sezione-" + section);
String buttonId = section + "_button";
String contentId = section + "_div";
%>
<liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="<%= title%>"></liferay-util:param>
<liferay-util:param name="buttonId" value="<%=buttonId%>"></liferay-util:param>
<liferay-util:param name="contentDiv" value="<%=contentId%>"></liferay-util:param>
<liferay-util:param name="width" value="750"></liferay-util:param>
<liferay-util:param name="externalForm" value="true"></liferay-util:param>
<liferay-util:param name="titolo" value="<%= title %>" />
<liferay-util:param name="buttonId" value="<%=buttonId%>" />
<liferay-util:param name="contentDiv" value="<%=contentId%>" />
<liferay-util:param name="width" value="750" />
<liferay-util:param name="externalForm" value="true" />
</liferay-util:include>
</c:if>
</div>
@ -241,7 +216,6 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
%>
</div>
</div>
<div class="container-fluid clearfix asseverazioni-firme" id="<portlet:namespace/>_asseverazioni-table">
<div class="col-xs-12 asseverazioni">
<div class="row asseverazioni-header">
@ -284,12 +258,11 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
Asseverazioni Domanda
</div>
<%
String[] esiti_complete = {AsseverazioniUtil.STATO_ESEGUITA};
String[] esiti_incomplete = {AsseverazioniUtil.STATO_ASSEGNATA};
String[] esiti_complete = { AsseverazioniUtil.STATO_ESEGUITA };
String[] esiti_incomplete = { AsseverazioniUtil.STATO_ASSEGNATA };
for (String tipoSoggetto : tipologiaSoggetti) {
String clazz = StringPool.BLANK;
String title = StringPool.BLANK;
List<Asseverazione> asseverazioniCompletate = AsseverazioneLocalServiceUtil
.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, esiti_complete,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
@ -301,216 +274,204 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
boolean isRecommended = AsseverazioniUtil.isAsseverazioneDomandaRecommendedByTipoSoggetto(
dettPraticaId, tipoSoggetto);
StringBuilder content = new StringBuilder();
if(isRequired || isRecommended){
clazz+= " icon-asseverazioni fa ";
if(isRequired){
if(asseverazioniMancanti.isEmpty() && asseverazioniCompletate.size()>0){
title = "Asseverazioni sufficienti";
clazz +="fa-check txt-green";
}else{
if(asseverazioniCompletate.size()>0){
title = "Asseverazioni mancanti";
clazz +="fa-check txt-orange";
}else{
title = "Asseverazioni mancanti";
clazz +="fa-close txt-red";
if (isRequired || isRecommended) {
clazz += " icon-asseverazioni fa ";
if (isRequired) {
if (asseverazioniMancanti.isEmpty() && asseverazioniCompletate.size() > 0) {
title = "Asseverazioni sufficienti";
clazz +="fa-check txt-green";
} else {
if (asseverazioniCompletate.size() > 0) {
title = "Asseverazioni mancanti";
clazz +="fa-check txt-orange";
} else {
title = "Asseverazioni mancanti";
clazz += "fa-close txt-red";
}
}
}
} else if (isRecommended) {
title = "Asseverazioni consigliate";
clazz +="fa-circle txt-blue";
title = "Asseverazioni consigliate";
clazz += "fa-circle txt-blue";
}
content.append("<span class=\"")
.append(clazz)
.append(" tooltip-info\" title=\"")
.append(title)
.append("\">");
content.append("<sub class=\"txt-bold\">")
.append(asseverazioniCompletate.size()>0 ? asseverazioniCompletate.size() : StringPool.BLANK)
.append("</sub>");
content.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>");
content.append("<span class=\"").append(clazz).append(" tooltip-info\" title=\"").append(title)
.append("\">").append("<sub class=\"txt-bold\">")
.append(asseverazioniCompletate.size() > 0 ? asseverazioniCompletate.size()
: StringPool.BLANK).append("</sub>").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("\"></span>");
} else {
content.append("<span>-</span>");
content.append("<span>-</span>");
}
%>
%>
<div class="col-xs-1 asserazioni-body-title text-center">
<%= content.toString() %>
</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>
<%
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if(docPraticas.isEmpty()){
for (String codiceDoc : tipologiaAllegati) {
String nomeAllegato = codiceDoc + " - " + LanguageUtil.get(pageContext, "label-documenti-tipologia-"
+ codiceDoc);
%>
<div class="row asseverazioni-section">
<div class="col-xs-6">
Nessun allegato presente per la tipologia
<div class="row asseverazioni-title">
<div class="col-xs-12">
<liferay-ui:message key='<%= nomeAllegato %>'/>
</div>
</div>
<%
}else{
for(DocPratica docPratica : docPraticas){
%>
</div>
<%
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId,
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="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 class="col-xs-6 asserazioni-body-title text-center">
<%
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
List<String> signatures = firme.allSignatures();
boolean isEnoughOne = AsseverazioniUtil.isEnoughOne(codiceDoc);
for(String tipoSoggetto : tipologiaSoggetti){
String clazz= StringPool.BLANK;
StringBuilder tooltipTitle = new StringBuilder();
List<String> signaturesPerSubject = new UniqueList<String>();
for(String sign : signatures){
List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, sign, docPratica.getClassPk());
for(Soggetto soggetto: soggetti){
if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)){
signaturesPerSubject.add(sign);
<%
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
List<String> signatures = firme.allSignatures();
boolean isEnoughOne = AsseverazioniUtil.isEnoughOne(codiceDoc);
for (String tipoSoggetto : tipologiaSoggetti) {
String clazz = StringPool.BLANK;
StringBuilder tooltipTitle = new StringBuilder();
Set<String> signaturesPerSubject = new LinkedHashSet<String>();
for (String sign : signatures) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil
.getValidTmpByIntPratica_CodiceFiscale( intPraticaId, sign, docPratica
.getClassPk());
for (Soggetto soggetto: soggetti) {
if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)) {
signaturesPerSubject.add(sign);
}
}
}
}
}
if(signaturesPerSubject.size()>0){
tooltipTitle.append("Firme:<ul>");
for(String firma: signaturesPerSubject){
tooltipTitle.append("<li>"+firma+"</li>");
}
tooltipTitle.append("</ul>");
}
if(isEnoughOne){
clazz+= " icon-asseverazioni fa ";
if(signatures.isEmpty()){
clazz +="fa-close txt-red";
} else {
clazz +="fa-check txt-green";
}
} else if( DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc) ){
if(TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto) || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && dettPratica.isLavoriPubblici()) ){
boolean isValid = false;
if(dettPratica.getNormArt3com3()){
isValid = true;
} else if(signaturesPerSubject.isEmpty()){
isValid = false;
} else {
isValid = true;
}
// if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){
// isValid = true;
// }
clazz+= " icon-asseverazioni fa ";
if(isValid){
clazz +="fa-check txt-green";
} else {
clazz +="fa-close txt-red";
}
}
} else if( codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09) ){
boolean isValid = false;
if( (tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA) || tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI)) ){
if(dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty() ){
isValid = true;
}
if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){
isValid = true;
}
clazz+= " icon-asseverazioni fa ";
if(isValid){
clazz +="fa-check txt-green";
} else {
clazz +="fa-close txt-red";
}
}
} else if( codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17) ){
boolean isValid = true;
if(signatures.isEmpty()){
List<Soggetto> ditte = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(), TipoSoggettoUtil.DITTA);
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(), TipoSoggettoUtil.COMMITTENTE);
boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, ditte, committenti, dettPratica);
if(isRequired)
isValid = false;
}
clazz+= " icon-asseverazioni fa ";
if(isValid){
clazz +="fa-check txt-green";
} else {
clazz +="fa-close txt-red";
}
} else {
boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto);
boolean isRecommended = AsseverazioniUtil.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto);
boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() || dettPratica.getNormLavoriNoDirettore();
if(tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI) && signaturesPerSubject.size() == 0){
isRequired = false;
}
if(isRequired || isRecommended){
clazz+= " icon-asseverazioni fa ";
if(isRequired){
if(signaturesPerSubject.size()>0){
clazz +="fa-check txt-green";
}else{
clazz +="fa-close txt-red";
}
} else if (isRecommended) {
clazz +="fa-circle txt-blue";
if (signaturesPerSubject.size() > 0) {
tooltipTitle.append("Firme:<ul>");
for (String firma: signaturesPerSubject) {
tooltipTitle.append("<li>").append(firma).append("</li>");
}
tooltipTitle.append("</ul>");
}
if (isEnoughOne) {
clazz += " icon-asseverazioni fa ";
if (signatures.isEmpty()) {
clazz += "fa-close txt-red";
} else {
clazz += "fa-check txt-green";
}
} else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc)) {
if (TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto)
|| (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)
&& dettPratica.isLavoriPubblici())) {
boolean isValid = false;
if (dettPratica.getNormArt3com3()) {
isValid = true;
} else if (signaturesPerSubject.isEmpty()) {
isValid = false;
} else {
isValid = true;
}
clazz += " icon-asseverazioni fa ";
if (isValid) {
clazz += "fa-check txt-green";
} else {
clazz += "fa-close txt-red";
}
}
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09)) {
boolean isValid = false;
if ((tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA)
|| tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI))) {
if (dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty()) {
isValid = true;
}
if (!isValid && dettPratica.isLavoriPubblici()
&& TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)) {
isValid = true;
}
clazz += " icon-asseverazioni fa ";
if (isValid) {
clazz += "fa-check txt-green";
} else {
clazz += "fa-close txt-red";
}
}
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) {
boolean isValid = true;
if (signatures.isEmpty()) {
List<Soggetto> ditte = SoggettoLocalServiceUtil
.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(),
TipoSoggettoUtil.DITTA);
List<Soggetto> committenti = SoggettoLocalServiceUtil
.findByDettPratica_TipologiaSoggetto(dettPratica.getDettPraticaId(),
TipoSoggettoUtil.COMMITTENTE);
boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil
.TIPOLOGIA_ALLEGATO_A17, ditte, committenti, dettPratica);
if (isRequired) {
isValid = false;
}
}
clazz += " icon-asseverazioni fa ";
if (isValid) {
clazz += "fa-check txt-green";
} else {
clazz += "fa-close txt-red";
}
} else {
boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(
codiceDoc, tipoSoggetto);
boolean isRecommended = AsseverazioniUtil
.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto);
boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici()
|| dettPratica.getNormLavoriNoDirettore();
if (tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI)
&& signaturesPerSubject.size() == 0) {
isRequired = false;
}
if (isRequired || isRecommended) {
clazz += " icon-asseverazioni fa ";
if (isRequired) {
if (signaturesPerSubject.size() > 0) {
clazz += "fa-check txt-green";
} else {
clazz += "fa-close txt-red";
}
} 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>
<%
}
}
@ -518,23 +479,17 @@ List<String> tipologiaSoggetti = Arrays.asList(TipoSoggettoUtil.TITOLARE_DIGITAL
%>
</div>
</div>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
<script>
YUI().use('aui-tooltip', function(Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1,
});
});
</script>
<aui:script use="aui-base">
window.parent.Liferay.fire('verifyPopup-ready');
</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">
<h2 class="title-fascicolo pull-left">Gestione Asseverazioni</h2>
<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">
<liferay-ui:icon iconCssClass="fa fa-arrow-left" message="back" url="<%= verifyURL %>"
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-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
iconCssClass="fa fa-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">
<h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<liferay-ui:icon
iconCssClass="fa fa-chevron-left"
@ -255,7 +255,7 @@
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
iconCssClass="fa fa-close"
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
title="<%=intPraticaTitle%>"
localizeTitle="<%= false %>"
localizeTitle="false"
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>
<c:if test="<%= backVisible %>">
<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
iconCssClass="fa fa-arrow-left"
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"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/>
</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:section>
<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 import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@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.model.DettPratica"%>
<%@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/fascicolofe/init.jsp" %>
<%@include file="/html/fascicolofe/init.jsp"%>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l);
if(intPraticaId==0l){
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l);
DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if(dettPratica==null){
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
intPraticaId = dettPratica.getIntPraticaId();
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
if (intPraticaId == 0) {
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
intPraticaId = dettPratica.getIntPraticaId();
}
%>
<liferay-util:include page="/html/cronologia/view.jsp" servletContext='<%= ServletContextPool.get("portos-bo-portlet") %>'>
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"></liferay-util:param>
<liferay-util:include page="/html/cronologia/view.jsp"
servletContext='<%= ServletContextPool.get("portos-bo-portlet") %>'>
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-util:include>

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

@ -24,5 +24,6 @@
</attributes>
</classpathentry>
<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"/>
</classpath>

388
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.
*
* This library is free software; you can redistribute it and/or modify it under
* 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)
* This library is free software; you can redistribute it and/or modify it under 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.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* This library is distributed in the hope that it will be useful, but WITHOUT 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.
*/
--%>
<%@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"%>
<%@ 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 redirect = ParamUtil.getString(request, "redirect");
WorkflowTask workflowTask = (WorkflowTask)request.getAttribute(WebKeys.WORKFLOW_TASK);
WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(company.getCompanyId(), workflowTask.getWorkflowInstanceId());
WorkflowTask workflowTask = (WorkflowTask) request.getAttribute(WebKeys.WORKFLOW_TASK);
WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(company.getCompanyId(),
workflowTask.getWorkflowInstanceId());
Map<String, Serializable> workflowContext = workflowInstance.getWorkflowContext();
long companyId = GetterUtil.getLong((String)workflowContext.get(WorkflowConstants.CONTEXT_COMPANY_ID));
long groupId = GetterUtil.getLong((String)workflowContext.get(WorkflowConstants.CONTEXT_GROUP_ID));
String className = (String)workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME);
long classPK = GetterUtil.getLong((String)workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK));
long companyId = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_COMPANY_ID));
long groupId = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_GROUP_ID));
String className = (String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME);
long classPK = GetterUtil.getLong((String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK));
WorkflowHandler workflowHandler = WorkflowHandlerRegistryUtil.getWorkflowHandler(className);
AssetRenderer assetRenderer = workflowHandler.getAssetRenderer(classPK);
AssetRendererFactory assetRendererFactory = workflowHandler.getAssetRendererFactory();
AssetEntry assetEntry = null;
if (assetRenderer != null) {
assetEntry = assetRendererFactory.getAssetEntry(assetRendererFactory.getClassName(), assetRenderer.getClassPK());
}
String headerTitle = LanguageUtil.get(pageContext, workflowTask.getName());
headerTitle = headerTitle.concat(StringPool.COLON + StringPool.SPACE + workflowHandler.getTitle(classPK, locale));
String headerTitle = LanguageUtil.get(pageContext, workflowTask.getName()) + StringPool.COLON + StringPool.SPACE
+ workflowHandler.getTitle(classPK, locale);
boolean showEditURL = false;
if ((workflowTask.getAssigneeUserId() == user.getUserId()) && !workflowTask.isCompleted()) {
showEditURL = true;
}
PortletURL editPortletURL = workflowHandler.getURLEdit(classPK, liferayPortletRequest, liferayPortletResponse);
String viewFullContentURLString = null;
if (assetRenderer.isPreviewInContext()) {
viewFullContentURLString = assetRenderer.getURLViewInContext((LiferayPortletRequest)renderRequest, (LiferayPortletResponse)renderResponse, null);
viewFullContentURLString = assetRenderer.getURLViewInContext((LiferayPortletRequest) renderRequest,
(LiferayPortletResponse) renderResponse, null);
}
else {
PortletURL viewFullContentURL = renderResponse.createRenderURL();
viewFullContentURL.setParameter("struts_action", "/workflow_tasks/view_content");
viewFullContentURL.setParameter("redirect", currentURL);
if (assetEntry != null) {
viewFullContentURL.setParameter("assetEntryId", String.valueOf(assetEntry.getEntryId()));
viewFullContentURL.setParameter("assetEntryVersionId", String.valueOf(classPK));
}
if (assetRendererFactory != null) {
viewFullContentURL.setParameter("type", assetRendererFactory.getType());
}
viewFullContentURL.setParameter("showEditURL", String.valueOf(showEditURL));
viewFullContentURL.setParameter("workflowAssetPreview", Boolean.TRUE.toString());
viewFullContentURLString = viewFullContentURL.toString();
}
request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE);
%>
<%-- <portlet:renderURL var="backURL">
<portlet:param name="struts_action" value="/workflow_tasks/view" />
</portlet:renderURL>
<liferay-ui:header
backURL="<%= backURL.toString() %>"
localizeTitle="<%= false %>"
title="<%= headerTitle %>"
/>--%>
<div class="container_gestione_attivita">
<div class="container_gestione_attivita_header">
<h2 class="container_gestione_attivita_header-title">Gestione Attività</h2>
</div>
<div class="container_gestione_attivita_body">
<div class="container_gestione_attivita_body-left">
<div class="container_gestione_attivita_body-left-dati">
<liferay-ui:error exception="<%= WorkflowTaskDueDateException.class %>" message="please-enter-a-valid-due-date" />
<div class="lfr-asset-assigned attivita_header-item">
<aui:field-wrapper label="assigned-to">
<i class="icon-user"></i>
<c:choose>
<c:when test="<%= workflowTask.isAssignedToSingleUser() %>">
<liferay-ui:input-resource url="<%= PortalUtil.getUserName(workflowTask.getAssigneeUserId(), StringPool.BLANK) %>" />
</c:when>
<c:otherwise>
<liferay-ui:input-resource url='<%= LanguageUtil.get(pageContext, "nobody") %>' />
</c:otherwise>
</c:choose>
</aui:field-wrapper>
<div class="container_gestione_attivita">
<div class="container_gestione_attivita_header">
<h2 class="container_gestione_attivita_header-title">Gestione Attività</h2>
</div>
<div class="container_gestione_attivita_body">
<div class="container_gestione_attivita_body-left">
<div class="container_gestione_attivita_body-left-dati">
<liferay-ui:error exception="<%= WorkflowTaskDueDateException.class %>"
message="please-enter-a-valid-due-date" />
<div class="lfr-asset-assigned attivita_header-item">
<aui:field-wrapper label="assigned-to">
<i class="icon-user"></i>
<c:choose>
<c:when test="<%= workflowTask.isAssignedToSingleUser() %>">
<liferay-ui:input-resource url="<%= PortalUtil.getUserName(workflowTask
.getAssigneeUserId(), StringPool.BLANK) %>" />
</c:when>
<c:otherwise>
<liferay-ui:input-resource url='<%= LanguageUtil.get(pageContext, "nobody") %>' />
</c:otherwise>
</c:choose>
</aui:field-wrapper>
</div>
<div class="lfr-asset-status attivita_header-item">
<aui:field-wrapper label="state">
<i class="icon-th-list"></i>
<liferay-ui:input-resource url="<%= LanguageUtil.get(pageContext,
WorkflowInstanceLinkLocalServiceUtil.getState(companyId, groupId, className,
classPK)) %>" />
</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>
<div class="lfr-asset-status attivita_header-item">
<aui:field-wrapper label="state">
<i class="icon-th-list"></i>
<liferay-ui:input-resource url="<%= LanguageUtil.get(pageContext, WorkflowInstanceLinkLocalServiceUtil.getState(companyId, groupId, className, classPK)) %>" />
</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 test="<%= Validator.isNotNull(workflowTask.getDescription()) %>">
<div class="lfr-asset-field">
<aui:field-wrapper label="description">
<%= workflowTask.getDescription() %>
</aui:field-wrapper>
</div>
</c:if>
<liferay-ui:panel-container cssClass="task-panel-container" extended="true">
<liferay-ui:panel defaultState="closed" title="Attività e Commenti">
<c:if test="<%= assetRenderer != null %>">
<%
List<Integer> logTypes = new ArrayList<Integer>();
logTypes.add(WorkflowLog.TASK_ASSIGN);
logTypes.add(WorkflowLog.TASK_COMPLETION);
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));
String path = workflowHandler.render(classPK, renderRequest, renderResponse, AssetRenderer
.TEMPLATE_ABSTRACT);
request.setAttribute(WebKeys.ASSET_RENDERER, assetRenderer);
request.setAttribute(WebKeys.ASSET_PUBLISHER_ABSTRACT_LENGTH, 200);
%>
<%@ include file="/html/portlet/workflow_instances/workflow_logs.jspf" %>
</liferay-ui:panel>
</liferay-ui:panel-container>
</div>
</div>
<div class="container_gestione_attivita_body-right">
<div class="lfr-asset-summary">
<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 %>"/>
<!-- ADT BUG BO ID= 27 -->
<liferay-portlet:param name="classPkForCarichiLavoro" value="<%= String.valueOf(classPK) %>"/>
</liferay-util:include>
</div>
<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>
<liferay-ui:panel-container cssClass="task-panel-container" extended="true">
<liferay-ui:panel defaultState="closed" title="Attività e Commenti">
<%
List<Integer> logTypes = new ArrayList<Integer>();
logTypes.add(WorkflowLog.TASK_ASSIGN);
logTypes.add(WorkflowLog.TASK_COMPLETION);
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));
%>
<%@include file="/html/portlet/workflow_instances/workflow_logs.jspf"%>
</liferay-ui:panel>
</liferay-ui:panel-container>
</div>
</div>
<div class="container_gestione_attivita_body-right">
<div class="lfr-asset-summary">
<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>
<style>
html {
padding: 0!important;
padding: 0!important;
}
.container_gestione_attivita_header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
border-bottom: 1px solid #ddd;
padding-left: 15px;
padding-right: 15px;
background-color: #812121;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
border-bottom: 1px solid #ddd;
padding-left: 15px;
padding-right: 15px;
background-color: #812121;
}
.container_gestione_attivita_header-title {
color: #fff!important;
color: #fff!important;
}
.attivita_header-item .control-label {
padding-left: 18px;
padding-left: 18px;
}
.attivita_header-item {
padding-right: 40px;
padding-right: 40px;
}
.container_gestione_attivita_body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.container_gestione_attivita_body-left {
-webkit-box-flex: 1;
@ -254,7 +217,7 @@ request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE);
flex: 1;
}
.container_gestione_attivita_body-right {
width: 200px;
width: 200px;
}
.container_gestione_attivita_body-left, .container_gestione_attivita_body-right {
padding: 15px;
@ -263,19 +226,20 @@ request.setAttribute(WebKeys.WORKFLOW_ASSET_PREVIEW, Boolean.TRUE);
border-radius: 4px;
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 {
color: #333!important;
.button_custom a, .button_custom a i, .button_custom a span, .button_custom a span:hover, .button_custom a i:hover,
.button_custom a:hover {
color: #333!important;
}
.task-panel-header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.task-panel-header .task-content-title {
color: rgb(85, 85, 85);
color: rgb(85, 85, 85);
}
.title-action {
margin: 0;
@ -283,10 +247,9 @@ color: #333!important;
.container_gestione_attivita_body-right {
border-left: 1px solid #ddd;
}
.container_gestione_attivita_body-right .lfr-menu-list {
margin-left: 0;
}
}
.opens-new-window-accessible {
display: none!important;
}
@ -300,20 +263,17 @@ color: #333!important;
font-weight: 600;
font-size: 16px;
}
.container_gestione_attivita_body-left-dati {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
border-bottom: 1px solid #ddd;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
border-bottom: 1px solid #ddd;
}
.accordion .accordion-heading {
background-color: #812121!important;
background-color: #812121!important;
}
.accordion .accordion-heading .title-text {
color: #fff;
}
@ -323,29 +283,21 @@ color: #333!important;
}
#updateComments .columns-max .control-group.field-wrapper > .control-group select,
#updateComments .control-group.field-wrapper textarea,
#updateComments .control-group.field-wrapper label,
#updateComments .columns-max .control-group.field-wrapper > .control-group label,
#updateComments .control-group.field-wrapper label,
#updateComments .columns-max .control-group.field-wrapper > .control-group label,
#updateComments .control-group.field-wrapper span.control-label,
#updateComments .control-group.input-text-wrapper textarea.field,
.aui label.control-label{
color: black
}
</style>
</style>
<aui:script use="liferay-workflow-tasks">
var onTaskClickFn = A.rbind('onTaskClick', Liferay.WorkflowTasks, '');
Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskAssignToMeLink', onTaskClickFn);
Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskAssignLink', onTaskClickFn);
Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskChangeUOLink', onTaskClickFn);
Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskRemoveAssignUOLink', onTaskClickFn);
<%-- Liferay.delegateClick('<portlet:namespace /><%= randomId %>taskDueDateLink', onTaskClickFn); --%>
</aui:script>
<%
PortalUtil.addPortletBreadcrumbEntry(request, headerTitle, currentURL);
%>

2
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java

@ -228,4 +228,4 @@ public class RenderFormTaskPortletAction extends BaseStrutsPortletAction {
}
return fieldNameOptions;
}
}
}

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

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

Caricamento…
Annulla
Salva