Confronta commit

..

3 Commit

Autore SHA1 Messaggio Data
Salvatore La Manna 492f39f363 Fix classpath 2 anni fa
Salvatore La Manna 7b664902da Modifica path build 2 anni fa
Salvatore La Manna c5de7624c8 Corretta provenienza documenti 2 anni fa
  1. 4
      jasper/Attestazione Vincoli.jrxml
  2. 6
      jasper/Autorizzazione.jrxml
  3. 19
      jasper/Avviso di Non Competenza.jrxml
  4. 6
      jasper/Cambio Istruttore.jrxml
  5. 4
      jasper/Mod. A - Presa in carico.jrxml
  6. 2
      jasper/Preavviso di Parere Contrario.jrxml
  7. 2
      jasper/Richiesta Integrazione.jrxml
  8. 6
      jasper/VIArch attivazione.jrxml
  9. 6
      jasper/VIArch conclusione.jrxml
  10. 2
      jasper/annullamento.jrxml
  11. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java
  12. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  13. 68
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/WorkflowUtil.java
  14. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  15. 44
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf
  16. 13
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  17. 5
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/RicercaPratichePortlet.java
  18. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf
  19. 55
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/dett_pratica.jsp
  20. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/view.jsp
  21. 4
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_instances/workflow_logs.jspf
  22. 1
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language.properties
  23. 1
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language_it.properties
  24. 2
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java

4
jasper/Attestazione Vincoli.jrxml

@ -276,7 +276,7 @@ e dell'identità siciliana]]></text>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression>
@ -372,7 +372,7 @@ e dell'identità siciliana]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,

6
jasper/Autorizzazione.jrxml

@ -298,7 +298,7 @@ esaminata la documentazione allegata all’istanza;]]></text>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression>
@ -384,7 +384,7 @@ esaminata la documentazione allegata all’istanza;]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Contro il presente provvedimento è ammesso ricorso gerarchico all’Assessorato Regionale dei Beni Culturali ed Ambientali e dell’Identità Siciliana entro trenta giorni dall’acquisita conoscenza, o al Tribunale Amministrativo Regionale entro sessanta giorni.
@ -465,7 +465,7 @@ L’eventuale ricorso gerarchico, debitamente sottoscritto e regolarizzato in bo
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,

19
jasper/Avviso di Non Competenza.jrxml

@ -90,7 +90,9 @@ e dell'identità siciliana]]></text>
<text><![CDATA[Oggetto:]]></text>
</staticText>
<textField>
<reportElement x="59" y="4" width="100" height="12" uuid="db3d08ab-28c7-4bb7-9758-f17e9a87c303"/>
<reportElement x="60" y="4" width="100" height="12" uuid="db3d08ab-28c7-4bb7-9758-f17e9a87c303">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textElement>
<font fontName="DejaVu Sans" size="8"/>
</textElement>
@ -363,15 +365,16 @@ esaminata la documentazione allegata all’istanza;]]></text>
</band>
<band height="80">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<textField>
<reportElement x="4" y="4" width="547" height="76" uuid="deebe280-0183-4f34-bca6-0af88682e70c">
<staticText>
<reportElement x="4" y="4" width="547" height="76" uuid="336aa324-de6a-4921-b34e-aff331747619">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[Contro il presente provvedimento è ammesso ricorso gerarchico all’Assessorato Regionale dei Beni Culturali ed Ambientali e dell’Identità Siciliana entro trenta giorni dall’acquisita conoscenza, o al Tribunale Amministrativo Regionale entro sessanta giorni.
L'eventuale ricorso gerarchico, debitamente sottoscritto e regolarizzato in bollo, dovrà riportare le generalità del ricorrente, comprensive di indirizzo di posta elettronica certificata, cui effettuare comunicazioni e notifiche relative al procedimento.]]></textFieldExpression>
</textField>
<text><![CDATA[Contro il presente provvedimento è ammesso ricorso gerarchico all’Assessorato Regionale dei Beni Culturali ed Ambientali e dell’Identità Siciliana entro trenta giorni dall’acquisita conoscenza, o al Tribunale Amministrativo Regionale entro sessanta giorni.
L'eventuale ricorso gerarchico, debitamente sottoscritto e regolarizzato in bollo, dovrà riportare le generalità del ricorrente, comprensive di indirizzo di posta elettronica certificata, cui effettuare comunicazioni e notifiche relative al procedimento.]]></text>
</staticText>
</band>
<band height="51">
<staticText>
@ -404,7 +407,7 @@ L'eventuale ricorso gerarchico, debitamente sottoscritto e regolarizzato in boll
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,

6
jasper/Cambio Istruttore.jrxml

@ -312,7 +312,7 @@ e dell'identità siciliana]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Justified" markup="html">
<textElement textAlignment="Left" markup="html">
<font fontName="DejaVu Sans" isBold="false" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA["Si comunica che è variato il tecnico istruttore incaricato del controllo della pratica. Il nuovo tecnico istruttore è: "+$F{tecnico}+" che può essere contattato con email: "+$F{tecnicoEmail}+". <br>Si comunica inoltre che i termini del procedimento non subiscono variazioni."]]></textFieldExpression>
@ -324,7 +324,7 @@ e dell'identità siciliana]]></text>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="true" isItalic="false" isUnderline="true"/>
</textElement>
<textFieldExpression><![CDATA["Si ricorda che i lavori NON potranno essere iniziati prima del rilascio dell'autorizzazione."]]></textFieldExpression>
@ -337,7 +337,7 @@ e dell'identità siciliana]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,

4
jasper/Mod. A - Presa in carico.jrxml

@ -313,7 +313,7 @@ e dell'identità siciliana]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans"/>
</textElement>
<text><![CDATA[L'inizio dei lavori rimane subordinato al successivo rilascio del provvedimento di autorizzazione, che sarà emesso dall'Ufficio in relazione alla tipologia dell'intervento.
@ -325,7 +325,7 @@ Viene di seguito riportato l’elenco dei documenti allegati all’istanza:]]></
<reportElement x="4" y="96" width="544" height="40" uuid="0f4933b3-ce8f-47db-9bd2-2e229d7071f0">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA["In relazione all’istanza in oggetto, si comunica che in data "+new SimpleDateFormat("dd/MM/yyyy").format($F{dataPratica})+" la stessa è stata accolta ed il progetto è stato acquisito dal sistema informatico Paesaggistica della Regione Siciliana."]]></textFieldExpression>

2
jasper/Preavviso di Parere Contrario.jrxml

@ -346,7 +346,7 @@ Trascorso infruttuosamente tale termine si procederà all’emissione di provved
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,

2
jasper/Richiesta Integrazione.jrxml

@ -303,7 +303,7 @@ quest’Ufficio richiede quanto segue.]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,

6
jasper/VIArch attivazione.jrxml

@ -300,7 +300,7 @@ esaminata la documentazione allegata all’istanza;]]></text>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression>
@ -372,7 +372,7 @@ esaminata la documentazione allegata all’istanza;]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Contro il presente provvedimento è ammesso ricorso gerarchico all’Assessorato Regionale dei Beni Culturali ed Ambientali e dell’Identità Siciliana entro trenta giorni dall’acquisita conoscenza, o al Tribunale Amministrativo Regionale entro sessanta giorni.
@ -408,7 +408,7 @@ L’eventuale ricorso gerarchico, debitamente sottoscritto e regolarizzato in bo
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,

6
jasper/VIArch conclusione.jrxml

@ -300,7 +300,7 @@ esaminata la documentazione allegata all’istanza;]]></text>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression>
@ -372,7 +372,7 @@ esaminata la documentazione allegata all’istanza;]]></text>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Contro il presente provvedimento è ammesso ricorso gerarchico all’Assessorato Regionale dei Beni Culturali ed Ambientali e dell’Identità Siciliana entro trenta giorni dall’acquisita conoscenza, o al Tribunale Amministrativo Regionale entro sessanta giorni.
@ -408,7 +408,7 @@ L’eventuale ricorso gerarchico, debitamente sottoscritto e regolarizzato in bo
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement>
<text><![CDATA[Nel rispetto di quanto prescritto dalla L. 241/1990 e ss. mm. ii. e della L.R. 7/2019, si comunica che, per il presente procedimento amministrativo,

2
jasper/annullamento.jrxml

@ -88,7 +88,7 @@ e dell'identità siciliana]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="3" y="201" width="548" height="44" uuid="a3fb9ec1-7464-4363-bd12-5934db7f26ed"/>
<textElement textAlignment="Justified">
<textElement textAlignment="Left">
<font fontName="DejaVu Sans"/>
</textElement>
<textFieldExpression><![CDATA["Vista la richiesta di annullamento del progetto n. "+$F{numeroProgetto}+" trasmessa e pervenuta nel nostro sistema in data "+new SimpleDateFormat("dd/MM/yyyy").format($F{dataAvviso})+" con la presente si comunica che è stata accolta e registrata nei nostri archivi."]]></textFieldExpression>

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

@ -33,6 +33,7 @@ import com.liferay.portal.kernel.workflow.WorkflowInstance;
import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil;
import com.liferay.portal.kernel.workflow.WorkflowTask;
import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil;
import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil;
import com.liferay.portal.model.User;
import com.liferay.portal.model.WorkflowInstanceLink;
import com.liferay.portal.service.ServiceContext;
@ -65,7 +66,8 @@ public class WorkflowUtil {
} catch (NoSuchWorkflowInstanceLinkException e) {}
if (workflowInstance != null) {
List<WorkflowTask> listaTmp = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(companyId, userId,
workflowInstance.getWorkflowInstanceId(), completed, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
workflowInstance.getWorkflowInstanceId(), completed, 0, 1,
WorkflowComparatorFactoryUtil.getTaskCompletionDateComparator(false));
if (!listaTmp.isEmpty()) {
return listaTmp.get(0);
}
@ -73,8 +75,9 @@ public class WorkflowUtil {
return null;
}
public static WorkflowTask getLastApprovazioneTask(long companyId, long groupId, Long userId, ControlloPratica bean)
throws PortalException, SystemException {
public static WorkflowTask
getLastApprovazioneTask(long companyId, long groupId, Long userId, ControlloPratica bean)
throws PortalException, SystemException {
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink(
companyId, groupId, ControlloPratica.class.getName(), bean.getPrimaryKey());

9
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java

@ -20,6 +20,7 @@ import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.Constants;
import java.io.Serializable;
@ -29,6 +30,7 @@ import java.sql.Statement;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
@ -205,6 +207,13 @@ public class SismicaUtil {
long taskId, String taskName, long nodeId, String nodeName) throws SystemException, PortalException {
List<String> esito = new ArrayList<>();
// Annulla l'eventuale integrazione presente e non conclusa
DettPratica integrazione = DettPraticaLocalServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(
pratica.getIntPraticaId(), Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
if (Validator.isNotNull(integrazione)) {
DettPraticaLocalServiceUtil.deleteDettPratica(integrazione);
}
// Riassegna il workflow al tecnico
List<ControlloPratica> controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(
pratica.getIntPraticaId(), WorkflowConstants.STATUS_PENDING);
if (1 == controlli.size()) {

68
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/WorkflowUtil.java

@ -0,0 +1,68 @@
package it.mwg.sismica.bo.util;
import it.mwg.sismica.bo.shared.util.Generics;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import java.util.Arrays;
import java.util.List;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.workflow.WorkflowInstance;
import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil;
import com.liferay.portal.kernel.workflow.WorkflowLog;
import com.liferay.portal.kernel.workflow.WorkflowLogManagerUtil;
import com.liferay.portal.kernel.workflow.WorkflowTask;
import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil;
import com.liferay.portal.kernel.workflow.comparator.WorkflowComparatorFactoryUtil;
import com.liferay.portal.model.User;
import com.liferay.portal.model.WorkflowInstanceLink;
import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil;
public class WorkflowUtil {
private static final Log _log = LogFactoryUtil.getLog(WorkflowUtil.class);
public static String provenienza(ControlloPratica cp) {
String provenienza = StringPool.DASH;
long companyId = cp.getCompanyId();
try {
WorkflowInstanceLink link = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink(companyId,
cp.getGroupId(), ControlloPratica.class.getName(), cp.getPrimaryKey());
WorkflowInstance instance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId,
link.getWorkflowInstanceId());
List<WorkflowLog> logs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(companyId,
instance.getWorkflowInstanceId(), Arrays.asList(WorkflowLog.TASK_ASSIGN), QueryUtil.ALL_POS,
QueryUtil.ALL_POS, WorkflowComparatorFactoryUtil.getLogCreateDateComparator(true));
String taskName = null;
long userId = 0;
for (WorkflowLog log : logs) {
if (log.getAuditUserId() != 0 && log.getRoleId() == 0 && log.getWorkflowTaskId() != 0) {
WorkflowTask task = WorkflowTaskManagerUtil.getWorkflowTask(companyId, log.getWorkflowTaskId());
if (task.isCompleted()) {
taskName = task.getName();
}
if (log.getUserId() != log.getAuditUserId() || task.isCompleted()) {
userId = log.getAuditUserId();
}
}
}
if (userId != 0) {
User audit = UserLocalServiceUtil.fetchUser(userId);
provenienza = Generics.capitalizeFull(audit.getFullName());
if (null != taskName) {
provenienza += " (" + taskName + ')';
}
}
} catch (PortalException | SystemException e) {
_log.error(e, e);
}
return provenienza;
}
}

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

@ -93,7 +93,6 @@ import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.MimeTypesUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.WorkflowException;
import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil;
import com.liferay.portal.kernel.workflow.WorkflowTask;
import com.liferay.portal.model.Group;
@ -965,7 +964,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
FormLogLocalServiceUtil.addFormLog(lastTask.getWorkflowInstanceId(), 0L, "cambio-istruttore",
jsonFormParameters, serviceContext);
} catch (Exception e) {
throw new WorkflowException(e);
_log.error(e, e);
}
}

44
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf

@ -11,6 +11,8 @@
<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page import="it.mwg.sismica.bo.util.WorkflowUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Comune"%>
<%@page import="it.tref.liferay.portos.bo.model.ControlloPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
@ -27,7 +29,6 @@
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@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.util.WorkflowUtil"%>
<%@page import="it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants"%>
<%@page import="java.util.List"%>
<%
@ -64,31 +65,33 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP
%>
<liferay-ui:search-container-column-text name="taskName">
<%
StringBuilder taskName = new StringBuilder();
if (task != null) {
out.print(LanguageUtil.get(pageContext,task.getName()));
User userTask = UserLocalServiceUtil.fetchUser(task.getAssigneeUserId());
taskName.append(LanguageUtil.get(pageContext,task.getName()));
if (userTask != null) {
taskName.append(" (").append(userTask.getFullName()).append(StringPool.CLOSE_PARENTHESIS);
out.print(" (");
out.print(Generics.capitalizeFull(userTask.getFullName()));
out.print(StringPool.CLOSE_PARENTHESIS);
}
} else if (workflowInstance != null) {
taskName.append(LanguageUtil.get(pageContext, workflowInstance.getState()));
out.print(LanguageUtil.get(pageContext, workflowInstance.getState()));
}
if (lastDettPratica != null) {
if (lastDettPratica.getTipoIntegrazione() != null) {
//BUG BO ID=14: NOME TASK SEZIONE ATTIVITÀ
if (lastDettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) {
taskName.append(" - Integrazione #").append(lastDettPratica.getIntegrazione());
out.print(" - Integrazione #");
out.print(lastDettPratica.getIntegrazione());
} else if (lastDettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) {
taskName.append(" - Variante #").append(lastDettPratica.getVarianteNumero());
out.print(" - Variante #");
out.print(lastDettPratica.getVarianteNumero());
}
}
}
if (intPratica.hasRichiestaIntegrazioneAttiva()) {
taskName.append(StringPool.SPACE).append(LanguageUtil.get(pageContext, "in-corso"));
out.print(StringPool.SPACE);
out.print(LanguageUtil.get(pageContext, "in-corso"));
}
out.print(taskName);
%>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Esito">
@ -156,27 +159,8 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="provenienza">
<%
WorkflowTask workflowTask = WorkflowUtil.getLastCompletedTask(controlloPratica.getCompanyId(),
controlloPratica.getGroupId(), null, controlloPratica);
out.print(WorkflowUtil.provenienza(controlloPratica));
%>
<c:if test="<%= workflowTask != null %>">
<%
User approvatore = UserLocalServiceUtil.fetchUser(workflowTask.getAssigneeUserId());
if (approvatore!=null) {
out.print(approvatore.getFullName());
} else {
out.print( " [");
out.print(workflowTask.getAssigneeUserId());
out.print(StringPool.CLOSE_BRACKET);
}
out.print(" (");
out.print(workflowTask.getName());
out.print(StringPool.CLOSE_PARENTHESIS);
%>
</c:if>
<c:if test="<%= workflowTask == null %>">
-
</c:if>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="data-inizio-procedimento"
value="<%= dateFormatDate.format(controlloPratica.getCreateDate()) %>" />

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

@ -546,9 +546,14 @@ public class FascicoloFePortlet extends MVCPortlet {
if (!isIntegrazione) {
throw new SystemException("Impossibile creare integrazione");
}
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(intPraticaId,
lastDettPratica.getDettPraticaId(), TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, serviceContext);
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(
intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
if (Validator.isNull(dettPratica)) {
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
dettPratica = DettPraticaServiceUtil
.addDettPraticaClonedToIntPratica(intPraticaId, lastDettPratica.getDettPraticaId(),
TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, serviceContext);
}
successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "dettPraticaId",
String.valueOf(dettPratica.getDettPraticaId()));
response.sendRedirect(successURL);
@ -566,7 +571,7 @@ public class FascicoloFePortlet extends MVCPortlet {
try {
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId,
Arrays.asList(new String[] { TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE }));
Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
if (Validator.isNull(dettPratica)) {
throw new SystemException("no integrazione in progress int fascicolo #" + intPraticaId);
}

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

@ -24,7 +24,6 @@ import com.liferay.portal.kernel.servlet.HttpHeaders;
import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil;
import com.liferay.util.bridges.mvc.MVCPortlet;
@ -92,13 +91,13 @@ public class RicercaPratichePortlet extends MVCPortlet {
long fileEntryId = ParamUtil.getLong(resourceRequest, "fileEntryId");
String version = ParamUtil.getString(resourceRequest, "version");
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId);
String fileName = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension();
String fileName = fileEntry.getTitle() + '.' + fileEntry.getExtension();
byte[] data = FileUtil.getBytes(DLFileEntryLocalServiceUtil.getFileAsStream(fileEntryId, version,
false));
resourceResponse.setContentType(fileEntry.getMimeType());
resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate");
resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName
+ StringPool.QUOTE);
+ '"');
resourceResponse.setContentLength(data.length);
resourceResponse.getPortletOutputStream().write(data);
resourceResponse.getPortletOutputStream().flush();

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

@ -312,7 +312,7 @@ String script =
value="0" /> che, trattandosi di intervento da realizzare in regime di agevolazione fiscale
ai sensi degli artt 119 e 121 del D.L. n.34/2020, convertito con modificazioni dalla Legge
n.77/2020, la dichiarazione sull’avvenuto pagamento del compenso professionale pattuito in sede
di conferimento dell’incarico è sostituita daun’apposita dichiarazione resa dal committente e
di conferimento dell’incarico è sostituita da un’apposita dichiarazione resa dal committente e
controfirmata dal sottoscritto ai sensi del comma 5 dell’art. 31 della L.R. n. 23/2021,
allegata nella sezione “altri” allegati;</label>
<hr />

55
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/dett_pratica.jsp

@ -17,51 +17,36 @@
<%@page import="java.util.List"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@include file="/html/ricercapratiche/init.jsp" %>
<%
String uuid = ParamUtil.getString(renderRequest, "uuid");
String numeroProgetto = ParamUtil.getString(renderRequest, "numeroProgetto");
long avvisoId = ParamUtil.getLong(renderRequest, "avvisoId");
String tabNames = "Tab_Dettagli_Pratica,Tab_Allegati_Pratica";
String redirect = ParamUtil.getString(renderRequest, "redirect");
String title = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId).getTitle(locale);
%>
<liferay-ui:header
backURL="<%= redirect %>"
title='<%=title%>'
/>
<%
Avviso avviso = AvvisoLocalServiceUtil.getAvviso(avvisoId);
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdInvio());
ResourceURL resourceURL = renderResponse.createResourceURL();
resourceURL.setResourceID("downloadFile");
resourceURL.setParameter("fileEntryId", String.valueOf(fileEntry.getFileEntryId()));
resourceURL.setParameter("version", String.valueOf(fileEntry.getVersion()));
resourceURL.setParameter("uuid", uuid);
resourceURL.setParameter("numeroProgetto", numeroProgetto);
String uuid = ParamUtil.getString(renderRequest, "uuid");
String numeroProgetto = ParamUtil.getString(renderRequest, "numeroProgetto");
long avvisoId = ParamUtil.getLong(renderRequest, "avvisoId");
String tabNames = "Tab_Dettagli_Pratica,Tab_Allegati_Pratica";
String redirect = ParamUtil.getString(renderRequest, "redirect");
String title = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId).getTitle(locale);
Avviso avviso = AvvisoLocalServiceUtil.getAvviso(avvisoId);
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdInvio());
ResourceURL resourceURL = renderResponse.createResourceURL();
resourceURL.setResourceID("downloadFile");
resourceURL.setParameter("fileEntryId", String.valueOf(fileEntry.getFileEntryId()));
resourceURL.setParameter("version", String.valueOf(fileEntry.getVersion()));
resourceURL.setParameter("uuid", uuid);
resourceURL.setParameter("numeroProgetto", numeroProgetto);
%>
<liferay-ui:header backURL="<%= redirect %>" title='<%=title%>' />
<div style="font-weight: bold;">
<liferay-ui:message key="label.admingeniocivile.ricercaavvisi.link.avviso" />
&nbsp;
<liferay-ui:icon
image="links"
target="_blank"
url="<%= resourceURL.toString()%>"
/>
<liferay-ui:icon image="links" target="_blank" url="<%= resourceURL.toString() %>" />
</div>
<c:if test="<%= DettPratica.class.getName().equals(avviso.getClassName()) %>">
<liferay-util:include page="/html/fascicolofe/view_fascicolo_dettagli.jsp" servletContext="<%= application %>">
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(avviso.getIntPraticaId()) %>"/>
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(avviso.getClassPk()) %>"/>
<liferay-util:param name="backUrl" value="<%= currentURL %>"/>
</liferay-util:include>
</c:if>
</c:if>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/view.jsp

@ -6,7 +6,7 @@
<%@include file="/html/ricercapratiche/init.jsp" %>
<portlet:actionURL name="processAvvisi" var="searchURL" >
<portlet:param name="backURL" value="<%=currentURL %>"/>
<portlet:param name="backURL" value="<%= currentURL %>"/>
<portlet:param name="mvcPath" value="/html/ricercapratiche/dett_pratica.jsp"/>
</portlet:actionURL>

4
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_instances/workflow_logs.jspf

@ -44,8 +44,7 @@ details.
if (workflowLog.getRoleId() != 0) {
curRole = RoleLocalServiceUtil.getRole(workflowLog.getRoleId());
actorName = HtmlUtil.escape(curRole.getDescriptiveName());
}
else if (workflowLog.getUserId() != 0) {
} else if (workflowLog.getUserId() != 0) {
curUser = UserLocalServiceUtil.getUser(workflowLog.getUserId());
actorName = HtmlUtil.escape(curUser.getFullName());
}
@ -140,6 +139,7 @@ details.
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(assignerName),
actorName} %>" key="x-assigned-the-task-to-x" />
<c:if test="<%= workflowLog.getPreviousUserId() != 0 %>">
<br/>
<liferay-ui:message key="previous-assignee-was-x"
arguments="<%= PortalUtil.getUserName(workflowLog
.getPreviousUserId(), StringPool.BLANK) %>" />

1
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language.properties

@ -10,6 +10,5 @@ error-portos-kaleo-required = {0} is required
## HOOK
x-assigned-the-task-to-x = Task assigned to {1}
x-completed-the-task-x-y={0} completed the task {1} ({2}).
x-sent-signal-x=System sent a signal {1}.

1
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language_it.properties

@ -10,6 +10,5 @@ error-portos-kaleo-required = {0} campo obbligatorio
## HOOK
x-assigned-the-task-to-x = L'attività è stata assegnata a {1}
x-completed-the-task-x-y={0} ha completato l'attività {1} ({2}).
x-sent-signal-x=Il sistema ha inviato un segnale {1}.

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

@ -417,8 +417,6 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
}
}
renderRequest.setAttribute("canRegistraEsito", canRegistraEsito);
_log.info("canPortosAssegnatore = " + canPortosAssegnatore + ", canRemoveUO = " + canRemoveUO
+ ", canRegistraEsito = " + canRegistraEsito);
return originalStrutsPortletAction.render(originalStrutsPortletAction, portletConfig, renderRequest,
renderResponse);
}

Caricamento…
Annulla
Salva