|
|
@ -30,6 +30,9 @@ import it.tref.liferay.portos.bo.model.Provincia; |
|
|
|
import it.tref.liferay.portos.bo.model.Soggetto; |
|
|
|
import it.tref.liferay.portos.bo.model.Soggetto; |
|
|
|
import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica; |
|
|
|
import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica; |
|
|
|
import it.tref.liferay.portos.bo.model.Territorio; |
|
|
|
import it.tref.liferay.portos.bo.model.Territorio; |
|
|
|
|
|
|
|
import it.tref.liferay.portos.bo.service.ParereGeologoLocalService; |
|
|
|
|
|
|
|
import it.tref.liferay.portos.bo.service.ParereGeologoService; |
|
|
|
|
|
|
|
import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.base.IntPraticaLocalServiceBaseImpl; |
|
|
|
import it.tref.liferay.portos.bo.service.base.IntPraticaLocalServiceBaseImpl; |
|
|
|
import it.tref.liferay.portos.bo.shared.bean.FirmeBean; |
|
|
|
import it.tref.liferay.portos.bo.shared.bean.FirmeBean; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; |
|
|
@ -87,6 +90,7 @@ import com.liferay.portal.kernel.search.Indexer; |
|
|
|
import com.liferay.portal.kernel.search.IndexerRegistryUtil; |
|
|
|
import com.liferay.portal.kernel.search.IndexerRegistryUtil; |
|
|
|
import com.liferay.portal.kernel.util.LocaleUtil; |
|
|
|
import com.liferay.portal.kernel.util.LocaleUtil; |
|
|
|
import com.liferay.portal.kernel.util.MimeTypesUtil; |
|
|
|
import com.liferay.portal.kernel.util.MimeTypesUtil; |
|
|
|
|
|
|
|
import com.liferay.portal.kernel.util.ParamUtil; |
|
|
|
import com.liferay.portal.kernel.util.StringPool; |
|
|
|
import com.liferay.portal.kernel.util.StringPool; |
|
|
|
import com.liferay.portal.kernel.util.Validator; |
|
|
|
import com.liferay.portal.kernel.util.Validator; |
|
|
|
import com.liferay.portal.kernel.workflow.WorkflowException; |
|
|
|
import com.liferay.portal.kernel.workflow.WorkflowException; |
|
|
@ -828,8 +832,21 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
_log.error("Errore in annullamento pratica - Impossibile annulare gli avvisi (intpraticaid="+intPraticaId+")"); |
|
|
|
_log.error("Errore in annullamento pratica (intpraticaid="+intPraticaId+")"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
for (ParereGeologo parere : parereGeologoService.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS)) { |
|
|
|
|
|
|
|
if (Validator.isNull(parere.getDtCompilazione())) { |
|
|
|
|
|
|
|
parere.setDtAnnullamento(now); |
|
|
|
|
|
|
|
parere.setNoteAnnullamento("Parere annullato da sistema per annullamento della pratica da parte dell'utente"); |
|
|
|
|
|
|
|
parere.persist(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
_log.error("Errore in annullamento parere endoprocedimentale (intpraticaid="+intPraticaId+")"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
intPratica.setModifiedDate(now); |
|
|
|
intPratica.setModifiedDate(now); |
|
|
|
intPratica.setStatoPratica(StatoPraticaConstants.ANNULLATA); |
|
|
|
intPratica.setStatoPratica(StatoPraticaConstants.ANNULLATA); |
|
|
|
intPratica.setDtAnnullamento(now); |
|
|
|
intPratica.setDtAnnullamento(now); |
|
|
|