Sfoglia il codice sorgente

fix generazione documenti pratica ospedaliera

feature/fix_soggetti
Marco Alderighi 1 anno fa
parent
commit
f1e05fe10f
  1. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java
  2. 522
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java
  3. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java
  4. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java
  5. 85
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataExportActionableDynamicQuery.java
  6. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java
  7. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties
  8. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  9. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java
  10. 517
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java
  11. 23
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  12. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  13. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  14. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar
  15. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar
  16. 1543
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  17. 15
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp
  18. 3
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java

@ -341,6 +341,14 @@ public interface IntPraticaLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,
boolean isOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,

522
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java

File diff soppresso perché troppo grande Load Diff

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java

@ -371,6 +371,17 @@ public class IntPraticaLocalServiceUtil {
return getService().findSorteggiabili(companyId, dtSorteggio);
}
public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,
boolean isOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.addIntPratica(territorioId, tipoProcedura, isOspedaliera,
serviceContext);
}
public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,
com.liferay.portal.service.ServiceContext serviceContext)

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java

@ -395,6 +395,17 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService,
return _intPraticaLocalService.findSorteggiabili(companyId, dtSorteggio);
}
@Override
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,
boolean isOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPraticaLocalService.addIntPratica(territorioId,
tipoProcedura, isOspedaliera, serviceContext);
}
@Override
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,

85
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataExportActionableDynamicQuery.java

@ -0,0 +1,85 @@
/**
* Copyright (c) 2000-present 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)
* 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
* details.
*/
package it.tref.liferay.portos.bo.service.persistence;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.lar.ExportImportHelperUtil;
import com.liferay.portal.kernel.lar.ManifestSummary;
import com.liferay.portal.kernel.lar.PortletDataContext;
import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil;
import com.liferay.portal.kernel.lar.StagedModelType;
import com.liferay.portal.util.PortalUtil;
import it.tref.liferay.portos.bo.model.PraticaAttenzionata;
/**
* @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l.
* @generated
*/
public class PraticaAttenzionataExportActionableDynamicQuery
extends PraticaAttenzionataActionableDynamicQuery {
public PraticaAttenzionataExportActionableDynamicQuery(
PortletDataContext portletDataContext) throws SystemException {
_portletDataContext = portletDataContext;
setCompanyId(_portletDataContext.getCompanyId());
setGroupId(_portletDataContext.getScopeGroupId());
}
@Override
public long performCount() throws PortalException, SystemException {
ManifestSummary manifestSummary = _portletDataContext.getManifestSummary();
StagedModelType stagedModelType = getStagedModelType();
long modelAdditionCount = super.performCount();
manifestSummary.addModelAdditionCount(stagedModelType.toString(),
modelAdditionCount);
long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(_portletDataContext,
stagedModelType);
manifestSummary.addModelDeletionCount(stagedModelType.toString(),
modelDeletionCount);
return modelAdditionCount;
}
@Override
protected void addCriteria(DynamicQuery dynamicQuery) {
_portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate");
}
protected StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId(
PraticaAttenzionata.class.getName()));
}
@Override
@SuppressWarnings("unused")
protected void performAction(Object object)
throws PortalException, SystemException {
PraticaAttenzionata stagedModel = (PraticaAttenzionata)object;
StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext,
stagedModel);
}
private PortletDataContext _portletDataContext;
}

12
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java

@ -32,7 +32,8 @@ public class AvvisoUtil {
public final static String FINE_LAVORI_AVVISO_FINE_LAVORI = "FL2";
/* Pratiche Ospedaliere */
public static final String PRATICA_OSPEDALIERA = "PO";
public static final String PRATICA_OSPEDALIERA_DEPOSITO = "PO_DEPO";
public static final String PRATICA_OSPEDALIERA_CONFORMITA = "PO_CONF";
@SuppressWarnings("serial")
private final static Map<String, String> allTipoAvviso = new LinkedHashMap<String, String>(2) {
@ -63,7 +64,8 @@ public class AvvisoUtil {
put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, "label.admingeniocivile.avviso.tipoDocumento.cambioistruttore");
put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "label.admingeniocivile.avviso.tipoDocumento.avvisoInizioLavori");
put(FINE_LAVORI_AVVISO_FINE_LAVORI, "label.admingeniocivile.avviso.tipoDocumento.avvisoFineLavori");
put(PRATICA_OSPEDALIERA, "label.admingeniocivile.avviso.tipoDocumento.praticaOspedaliera");
put(PRATICA_OSPEDALIERA_DEPOSITO, "label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.deposito");
put(PRATICA_OSPEDALIERA_CONFORMITA, "label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.conformita");
}
};
@ -89,7 +91,8 @@ public class AvvisoUtil {
put("DOM", "conf.geniocivile.avviso.folder.id.domanda_pdf");
put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "conf.geniocivile.avviso.folder.id.finelavori.FL1");
put(FINE_LAVORI_AVVISO_FINE_LAVORI, "conf.geniocivile.avviso.folder.id.finelavori.FL2");
put(PRATICA_OSPEDALIERA, "conf.geniocivile.avviso.folder.id.praticaospedaliera");
put(PRATICA_OSPEDALIERA_DEPOSITO, "conf.geniocivile.avviso.folder.id.praticaospedaliera.deposito");
put(PRATICA_OSPEDALIERA_CONFORMITA, "conf.geniocivile.avviso.folder.id.praticaospedaliera.conformita");
}
};
@ -129,7 +132,8 @@ public class AvvisoUtil {
put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "conf.geniocivile.avviso.template.id.finelavori.FL1");
put(FINE_LAVORI_AVVISO_FINE_LAVORI, "conf.geniocivile.avviso.template.id.finelavori.FL2");
put(PRATICA_OSPEDALIERA, "conf.geniocivile.avviso.template.id.praticaospedaliera");
put(PRATICA_OSPEDALIERA_DEPOSITO, "conf.geniocivile.avviso.template.id.praticaospedaliera.deposito");
put(PRATICA_OSPEDALIERA_CONFORMITA, "conf.geniocivile.avviso.template.id.praticaospedaliera.conformita");
}
};

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties

@ -152,6 +152,8 @@ conf.geniocivile.avviso.folder.id.manuale = Cartella Avvisi Manuali
conf.geniocivile.avviso.folder.id.doc_annullamento = Cartella File Annullamento Fascicolo
conf.geniocivile.avviso.folder.id.doc_pagamento = Cartella File Allegati MDB
conf.geniocivile.avviso.folder.id.domanda_pdf = Cartella Template Domanda
conf.geniocivile.avviso.folder.id.praticaospedaliera.deposito = Cartella Deposito Pratica Ospedaliera
conf.geniocivile.avviso.folder.id.praticaospedaliera.conformita = Cartella Conformità Pratica Ospedaliera
#Configurazione Templates
conf.geniocivile.template.folder.id = Cartella Template
@ -186,7 +188,8 @@ conf.geniocivile.avviso.template.id.deposito.PS = Template Avvisio avvio di proc
conf.geniocivile.avviso.template.id.deposito.S = Template Avviso di sorteggio
conf.geniocivile.avviso.template.id.finelavori.FL1 = Template Avviso di Inizio Lavori
conf.geniocivile.avviso.template.id.finelavori.FL2 = Template Avviso di Fine Lavori
conf.geniocivile.avviso.template.id.praticaospedaliera = Template Avviso Pratica Ospedaliera
conf.geniocivile.avviso.template.id.praticaospedaliera.deposito = Template Deposito Pratica Ospedaliera
conf.geniocivile.avviso.template.id.praticaospedaliera.conformita = Template Conformità  Pratica Ospedaliera
#Configurazione Allegati
conf.geniocivile.attachment.folder.id = Folder Allegati

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties

@ -1060,6 +1060,9 @@ label.admingeniocivile.statopratica.approvazione = Approvazione
label.admingeniocivile.statopratica.finelavorianomalia = Anomalia Fine Lavori
label.admingeniocivile.statopratica.variante = Variante
label.admingeniocivile.statopratica.sospesa = Sospesa
label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.deposito = Avviso di deposito Pratica Ospedaliera
label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.conformita = Avviso di conformità Pratica Ospedaliera
label.firma-doc = Dichiaro di aver preso visione del documento, e di sottoscriverne il contenuto ai sensi del D.Lgs. 82/2005
label.cambio-soggetti-ok = Cambio Soggetti #{0} completato con successo

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

@ -265,19 +265,23 @@ public class SchedulerPratiche implements MessageListener {
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType);
long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate);
long controlloPraticaId = 0L;
_log.debug("creaAvvisoVidimazione: Pratica.isPraticaOspedaliera() ? " + IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera());
// if(IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()){
// _log.debug("creaAvvisoVidimazione: Pratica is Ospedaliera - Creating PRATICA_OSPEDALIERA_DEPOSITO");
// tipoDocumento = AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO;
// propertiesTemplateType = AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO;
// propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType);
// fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate);
// if(Validator.isNull(AvvisoLocalServiceUtil.getAvvisoPraticaOspedaliera(intPraticaId))){
// AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong,
// dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk,
// className, controlloPraticaId, serviceContext);
// }
// return;
// }
_log.debug("creaAvvisoVidimazione: tipoDocumento -> "+tipoDocumento);
AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento,
fileEntryIdTemplate, classPk, className, controlloPraticaId, serviceContext);
if(IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()){
tipoDocumento = AvvisoUtil.PRATICA_OSPEDALIERA;
propertiesTemplateType = AvvisoUtil.PRATICA_OSPEDALIERA;
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType);
fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate);
if(Validator.isNull(AvvisoLocalServiceUtil.getAvvisoPraticaOspedaliera(intPraticaId))){
AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong,
dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk,
className, controlloPraticaId, serviceContext);
}
}
}
private IntPratica assegnaNumeroProgetto(IntPratica intPratica) throws PortalException, SystemException {
@ -307,6 +311,7 @@ public class SchedulerPratiche implements MessageListener {
if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(tipoIntegrazione)) {
// avviso pilotato per integrazioni
String stato = StatoPraticaConstants.INTEGRAZIONE_ACCETTATA;
_log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | stato -> "+stato);
AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), stato,
dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext,
AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0L);
@ -318,6 +323,7 @@ public class SchedulerPratiche implements MessageListener {
} else {
stato = intPratica.getStatoPratica();
}
_log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | stato -> "+stato);
AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), stato,
dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext,
AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0L);
@ -327,6 +333,7 @@ public class SchedulerPratiche implements MessageListener {
propertiesTemplateType);
long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(
serviceContext.getCompanyId(), propertiesTemplate);
_log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | propertiesTemplate -> "+propertiesTemplate);
AvvisoLocalServiceUtil.addAvviso(dettPratica.getIntPraticaId(), StringPool.BLANK, new Date(),
AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.VIDIMATA, fileEntryIdTemplate,
dettPratica.getDettPraticaId(), DettPratica.class.getName(), 0L, serviceContext);

517
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java

File diff soppresso perché troppo grande Load Diff

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

@ -115,6 +115,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
if (Validator.isNull(tipoProcedura) || tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_A)
|| Validator.isNull(sorteggio)) {
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica);
} else if (intPratica.isPraticaOspedaliera()){
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO);
} else {
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DPPS");
}
@ -122,13 +124,23 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
case StatoPraticaConstants.VIDIMATA:
if (null == tipoProcedura)
tipoProcedura = Constants.PROCEDURA_A;
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DP" + tipoProcedura);
if(intPratica.isPraticaOspedaliera()){
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO);
} else {
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DP" + tipoProcedura);
}
break;
default:
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica);
// if(StatoPraticaConstants.AUTORIZZATA.equals(statoPratica) && intPratica.isPraticaOspedaliera()){
// propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA);
// } else {
propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica);
// }
}
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate);
_log.debug("Creating avviso: propertiesTemplate -> "+propertiesTemplate
+" | statoPratica -> "+statoPratica+" | className -> "+className);
return addAvviso(intPratica.getIntPraticaId(), StringPool.BLANK, new Date(), tipoAvviso, statoPratica,
fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, jsonParameters,
controlloPraticaId, serviceContext);
@ -149,9 +161,14 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
&& !dettPratica.getVarianteSostanziale() && !stato.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE);
}
String statoPraticaCode = varianteNonSostanziale ? "DPVNS" : PraticaUtil.getStatoPraticaCode(stato, intPratica);
if(intPratica.isPraticaOspedaliera()){
statoPraticaCode = AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA;
}
String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode);
long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(),
propertiesTemplate);
_log.debug("Creating avviso: propertiesTemplate -> "+propertiesTemplate
+" | statoPraticaCode -> "+statoPraticaCode+" | className -> "+className);
return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, fileEntryIdTemplate, classPk,
className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, serviceContext);
}
@ -1291,7 +1308,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery();
dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento").in(
new String[] { AvvisoUtil.PRATICA_OSPEDALIERA }));
new String[] { AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA, AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO }));
dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdProtocollo").ne(0L));
dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false));
dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false));

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

@ -231,7 +231,19 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
return ret;
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long territorioId, String tipoProcedura, boolean isOspedaliera,
ServiceContext serviceContext) throws SystemException, PortalException {
if(isOspedaliera){
tipoProcedura = Constants.PROCEDURA_H;
}
return addIntPratica(territorioId, tipoProcedura, serviceContext);
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext)
@ -398,7 +410,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
IntPratica intPraticaToClone = intPraticaLocalService.getIntPratica(intPraticaId);
IntPratica intPraticaCloned = addIntPratica(intPraticaToClone.getTerritorioId(),
intPraticaToClone.getTipoProcedura(), serviceContext);
intPraticaToClone.getTipoProcedura(), intPraticaCloned.isPraticaOspedaliera(), serviceContext);
intPraticaCloned = cloneData(intPraticaCloned, intPraticaToClone);
DettPratica dettPraticaToClone = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId);
DettPratica dettPraticaCloned = dettPraticaLocalService.addDettPraticaClonedToIntPratica(

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar

File binario non mostrato.

1543
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java

File diff soppresso perché troppo grande Load Diff

15
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp

@ -727,11 +727,16 @@ function duplicati(input) {
<li><aui:input
disabled="<%=(disabledInput && !enabledByIntegrazione) || !checked || proceduraC%>"
name="tcMiglioramentoSismico" label="tc-miglioramento-sismico" /></li>
<c:if test="<%= !isPraticaOspedaliera %>">
<li><aui:input
disabled="<%=(disabledInput && !enabledByIntegrazione) || !checked || proceduraC || isPraticaOspedaliera %>"
name="tcRiparazioneInterventoLocale" label="tc-riparazione-intervento-locale" /></li>
</c:if>
<%
String tcRiparazioneInterventoLocalClass = "";
if(!isPraticaOspedaliera){
tcRiparazioneInterventoLocalClass = "hide";
}
%>
<li><aui:input
disabled="<%=(disabledInput && !enabledByIntegrazione) || !checked || proceduraC || isPraticaOspedaliera %>"
name="tcRiparazioneInterventoLocale" label="tc-riparazione-intervento-locale"
cssClass="<%= tcRiparazioneInterventoLocalClass %>" /></li>
</ul>
</li>
</ul>

3
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component

@ -2,6 +2,9 @@
<wb-module deploy-name="portos-firma-portlet">
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/>
<dependent-module archiveName="portos-bo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="portos-firma-portlet"/>
<property name="java-output-path" value="/portos-firma-portlet/docroot/WEB-INF/classes"/>
</wb-module>

Caricamento…
Annulla
Salva