Sfoglia il codice sorgente

fix annullamento

master
Mattia Gosetto 3 anni fa
parent
commit
0d73a16d8e
  1. 10700
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java
  2. 2540
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java
  3. 9120
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java
  4. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  5. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

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

File diff soppresso perché troppo grande Load Diff

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

File diff soppresso perché troppo grande Load Diff

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

File diff suppressed because one or more lines are too long

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

@ -820,6 +820,16 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
throw new SystemException("error.annullamento.file.not.exist"); throw new SystemException("error.annullamento.file.not.exist");
} }
Date now = new Date(); Date now = new Date();
try {
for (Avviso avviso : avvisoLocalService.findByIntPratica_Inviato(intPraticaId, AvvisoUtil.DOCUMENTO_NON_INVIATO, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
if(!avviso.isRifiutato() && avviso.getTipoAvviso().equalsIgnoreCase(AvvisoUtil.TIPO_AVVISO_FIRMA)){
avviso.setAnnullato(true);
avviso.persist();
}
}
} catch (Exception e) {
_log.error("Errore in annullamento pratica - Impossibile annulare gli avvisi (intpraticaid="+intPraticaId+")");
}
intPratica.setModifiedDate(now); intPratica.setModifiedDate(now);
intPratica.setStatoPratica(StatoPraticaConstants.ANNULLATA); intPratica.setStatoPratica(StatoPraticaConstants.ANNULLATA);
intPratica.setDtAnnullamento(now); intPratica.setDtAnnullamento(now);

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=3467 build.number=3468
build.date=1634721959622 build.date=1634740817864
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva