Sfoglia il codice sorgente

Corretta provenienza documenti

master
Salvatore La Manna 2 anni fa
parent
commit
c5de7624c8
  1. 4
      jasper/Attestazione Vincoli.jrxml
  2. 6
      jasper/Autorizzazione.jrxml
  3. 2
      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. 55
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/dett_pratica.jsp
  19. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/view.jsp
  20. 4
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_instances/workflow_logs.jspf
  21. 1
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language.properties
  22. 1
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/content/Language_it.properties
  23. 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.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression> <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/> <font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement> </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, <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.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression> <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" size="11" isBold="false"/> <font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement> </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. <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/> <font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement> </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, <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/Avviso di Non Competenza.jrxml

@ -404,7 +404,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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/> <font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement> </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, <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified" markup="html"> <textElement textAlignment="Left" markup="html">
<font fontName="DejaVu Sans" isBold="false" isItalic="false"/> <font fontName="DejaVu Sans" isBold="false" isItalic="false"/>
</textElement> </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> <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.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="true" isItalic="false" isUnderline="true"/> <font fontName="DejaVu Sans" isBold="true" isItalic="false" isUnderline="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Si ricorda che i lavori NON potranno essere iniziati prima del rilascio dell'autorizzazione."]]></textFieldExpression> <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/> <font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement> </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, <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </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. <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"> <reportElement x="4" y="96" width="544" height="40" uuid="0f4933b3-ce8f-47db-9bd2-2e229d7071f0">
<property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </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> <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/> <font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement> </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, <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/> <font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement> </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, <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.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression> <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" size="11" isBold="false"/> <font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement> </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. <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/> <font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement> </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, <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.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans"/> <font fontName="DejaVu Sans"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{testo_del_documento}]]></textFieldExpression> <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" size="11" isBold="false"/> <font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement> </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. <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.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement> </reportElement>
<textElement textAlignment="Justified"> <textElement textAlignment="Left">
<font fontName="DejaVu Sans" isBold="false" isItalic="true"/> <font fontName="DejaVu Sans" isBold="false" isItalic="true"/>
</textElement> </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, <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> </staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="3" y="201" width="548" height="44" uuid="a3fb9ec1-7464-4363-bd12-5934db7f26ed"/> <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"/> <font fontName="DejaVu Sans"/>
</textElement> </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> <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.WorkflowInstanceManagerUtil;
import com.liferay.portal.kernel.workflow.WorkflowTask; import com.liferay.portal.kernel.workflow.WorkflowTask;
import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; 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.User;
import com.liferay.portal.model.WorkflowInstanceLink; import com.liferay.portal.model.WorkflowInstanceLink;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
@ -65,7 +66,8 @@ public class WorkflowUtil {
} catch (NoSuchWorkflowInstanceLinkException e) {} } catch (NoSuchWorkflowInstanceLinkException e) {}
if (workflowInstance != null) { if (workflowInstance != null) {
List<WorkflowTask> listaTmp = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(companyId, userId, 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()) { if (!listaTmp.isEmpty()) {
return listaTmp.get(0); return listaTmp.get(0);
} }
@ -73,8 +75,9 @@ public class WorkflowUtil {
return null; return null;
} }
public static WorkflowTask getLastApprovazioneTask(long companyId, long groupId, Long userId, ControlloPratica bean) public static WorkflowTask
throws PortalException, SystemException { getLastApprovazioneTask(long companyId, long groupId, Long userId, ControlloPratica bean)
throws PortalException, SystemException {
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink(
companyId, groupId, ControlloPratica.class.getName(), bean.getPrimaryKey()); 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.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; 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.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.Constants; import it.tref.liferay.portos.bo.util.Constants;
import java.io.Serializable; import java.io.Serializable;
@ -29,6 +30,7 @@ import java.sql.Statement;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
@ -205,6 +207,13 @@ public class SismicaUtil {
long taskId, String taskName, long nodeId, String nodeName) throws SystemException, PortalException { long taskId, String taskName, long nodeId, String nodeName) throws SystemException, PortalException {
List<String> esito = new ArrayList<>(); 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( List<ControlloPratica> controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(
pratica.getIntPraticaId(), WorkflowConstants.STATUS_PENDING); pratica.getIntPraticaId(), WorkflowConstants.STATUS_PENDING);
if (1 == controlli.size()) { 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.MimeTypesUtil;
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.WorkflowHandlerRegistryUtil; import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil;
import com.liferay.portal.kernel.workflow.WorkflowTask; import com.liferay.portal.kernel.workflow.WorkflowTask;
import com.liferay.portal.model.Group; import com.liferay.portal.model.Group;
@ -965,7 +964,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
FormLogLocalServiceUtil.addFormLog(lastTask.getWorkflowInstanceId(), 0L, "cambio-istruttore", FormLogLocalServiceUtil.addFormLog(lastTask.getWorkflowInstanceId(), 0L, "cambio-istruttore",
jsonFormParameters, serviceContext); jsonFormParameters, serviceContext);
} catch (Exception e) { } 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.model.WorkflowInstanceLink"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%> <%@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.Comune"%>
<%@page import="it.tref.liferay.portos.bo.model.ControlloPratica"%> <%@page import="it.tref.liferay.portos.bo.model.ControlloPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@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.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@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.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.WorkflowUtil"%>
<%@page import="it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants"%> <%@page import="it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants"%>
<%@page import="java.util.List"%> <%@page import="java.util.List"%>
<% <%
@ -64,31 +65,33 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP
%> %>
<liferay-ui:search-container-column-text name="taskName"> <liferay-ui:search-container-column-text name="taskName">
<% <%
StringBuilder taskName = new StringBuilder();
if (task != null) { if (task != null) {
out.print(LanguageUtil.get(pageContext,task.getName()));
User userTask = UserLocalServiceUtil.fetchUser(task.getAssigneeUserId()); User userTask = UserLocalServiceUtil.fetchUser(task.getAssigneeUserId());
taskName.append(LanguageUtil.get(pageContext,task.getName()));
if (userTask != null) { 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) { } else if (workflowInstance != null) {
taskName.append(LanguageUtil.get(pageContext, workflowInstance.getState())); out.print(LanguageUtil.get(pageContext, workflowInstance.getState()));
} }
if (lastDettPratica != null) { if (lastDettPratica != null) {
if (lastDettPratica.getTipoIntegrazione() != null) { if (lastDettPratica.getTipoIntegrazione() != null) {
//BUG BO ID=14: NOME TASK SEZIONE ATTIVITÀ //BUG BO ID=14: NOME TASK SEZIONE ATTIVITÀ
if (lastDettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) { 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)) { } else if (lastDettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) {
taskName.append(" - Variante #").append(lastDettPratica.getVarianteNumero()); out.print(" - Variante #");
out.print(lastDettPratica.getVarianteNumero());
} }
} }
} }
if (intPratica.hasRichiestaIntegrazioneAttiva()) { 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>
<liferay-ui:search-container-column-text name="Esito"> <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>
<liferay-ui:search-container-column-text name="provenienza"> <liferay-ui:search-container-column-text name="provenienza">
<% <%
WorkflowTask workflowTask = WorkflowUtil.getLastCompletedTask(controlloPratica.getCompanyId(), out.print(WorkflowUtil.provenienza(controlloPratica));
controlloPratica.getGroupId(), null, 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>
<liferay-ui:search-container-column-text name="data-inizio-procedimento" <liferay-ui:search-container-column-text name="data-inizio-procedimento"
value="<%= dateFormatDate.format(controlloPratica.getCreateDate()) %>" /> 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) { if (!isIntegrazione) {
throw new SystemException("Impossibile creare integrazione"); throw new SystemException("Impossibile creare integrazione");
} }
DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(
DettPratica dettPratica = DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(intPraticaId, intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
lastDettPratica.getDettPraticaId(), TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, serviceContext); 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", successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "dettPraticaId",
String.valueOf(dettPratica.getDettPraticaId())); String.valueOf(dettPratica.getDettPraticaId()));
response.sendRedirect(successURL); response.sendRedirect(successURL);
@ -566,7 +571,7 @@ public class FascicoloFePortlet extends MVCPortlet {
try { try {
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId,
Arrays.asList(new String[] { TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE })); Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE));
if (Validator.isNull(dettPratica)) { if (Validator.isNull(dettPratica)) {
throw new SystemException("no integrazione in progress int fascicolo #" + intPraticaId); 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.servlet.SessionErrors;
import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.ParamUtil; 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.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
@ -92,13 +91,13 @@ public class RicercaPratichePortlet extends MVCPortlet {
long fileEntryId = ParamUtil.getLong(resourceRequest, "fileEntryId"); long fileEntryId = ParamUtil.getLong(resourceRequest, "fileEntryId");
String version = ParamUtil.getString(resourceRequest, "version"); String version = ParamUtil.getString(resourceRequest, "version");
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId); 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, byte[] data = FileUtil.getBytes(DLFileEntryLocalServiceUtil.getFileAsStream(fileEntryId, version,
false)); false));
resourceResponse.setContentType(fileEntry.getMimeType()); resourceResponse.setContentType(fileEntry.getMimeType());
resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate");
resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName
+ StringPool.QUOTE); + '"');
resourceResponse.setContentLength(data.length); resourceResponse.setContentLength(data.length);
resourceResponse.getPortletOutputStream().write(data); resourceResponse.getPortletOutputStream().write(data);
resourceResponse.getPortletOutputStream().flush(); resourceResponse.getPortletOutputStream().flush();

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="java.util.List"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%> <%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@include file="/html/ricercapratiche/init.jsp" %> <%@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); String uuid = ParamUtil.getString(renderRequest, "uuid");
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdInvio()); String numeroProgetto = ParamUtil.getString(renderRequest, "numeroProgetto");
ResourceURL resourceURL = renderResponse.createResourceURL(); long avvisoId = ParamUtil.getLong(renderRequest, "avvisoId");
resourceURL.setResourceID("downloadFile");
resourceURL.setParameter("fileEntryId", String.valueOf(fileEntry.getFileEntryId())); String tabNames = "Tab_Dettagli_Pratica,Tab_Allegati_Pratica";
resourceURL.setParameter("version", String.valueOf(fileEntry.getVersion())); String redirect = ParamUtil.getString(renderRequest, "redirect");
resourceURL.setParameter("uuid", uuid);
resourceURL.setParameter("numeroProgetto", numeroProgetto); 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;"> <div style="font-weight: bold;">
<liferay-ui:message key="label.admingeniocivile.ricercaavvisi.link.avviso" /> <liferay-ui:message key="label.admingeniocivile.ricercaavvisi.link.avviso" />
&nbsp; &nbsp;
<liferay-ui:icon <liferay-ui:icon image="links" target="_blank" url="<%= resourceURL.toString() %>" />
image="links"
target="_blank"
url="<%= resourceURL.toString()%>"
/>
</div> </div>
<c:if test="<%= DettPratica.class.getName().equals(avviso.getClassName()) %>"> <c:if test="<%= DettPratica.class.getName().equals(avviso.getClassName()) %>">
<liferay-util:include page="/html/fascicolofe/view_fascicolo_dettagli.jsp" servletContext="<%= application %>"> <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="intPraticaId" value="<%= String.valueOf(avviso.getIntPraticaId()) %>"/>
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(avviso.getClassPk()) %>"/> <liferay-util:param name="dettPraticaId" value="<%= String.valueOf(avviso.getClassPk()) %>"/>
<liferay-util:param name="backUrl" value="<%= currentURL %>"/> <liferay-util:param name="backUrl" value="<%= currentURL %>"/>
</liferay-util:include> </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" %> <%@include file="/html/ricercapratiche/init.jsp" %>
<portlet:actionURL name="processAvvisi" var="searchURL" > <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:param name="mvcPath" value="/html/ricercapratiche/dett_pratica.jsp"/>
</portlet:actionURL> </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) { if (workflowLog.getRoleId() != 0) {
curRole = RoleLocalServiceUtil.getRole(workflowLog.getRoleId()); curRole = RoleLocalServiceUtil.getRole(workflowLog.getRoleId());
actorName = HtmlUtil.escape(curRole.getDescriptiveName()); actorName = HtmlUtil.escape(curRole.getDescriptiveName());
} } else if (workflowLog.getUserId() != 0) {
else if (workflowLog.getUserId() != 0) {
curUser = UserLocalServiceUtil.getUser(workflowLog.getUserId()); curUser = UserLocalServiceUtil.getUser(workflowLog.getUserId());
actorName = HtmlUtil.escape(curUser.getFullName()); actorName = HtmlUtil.escape(curUser.getFullName());
} }
@ -140,6 +139,7 @@ details.
<liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(assignerName), <liferay-ui:message arguments="<%= new Object[] {HtmlUtil.escape(assignerName),
actorName} %>" key="x-assigned-the-task-to-x" /> actorName} %>" key="x-assigned-the-task-to-x" />
<c:if test="<%= workflowLog.getPreviousUserId() != 0 %>"> <c:if test="<%= workflowLog.getPreviousUserId() != 0 %>">
<br/>
<liferay-ui:message key="previous-assignee-was-x" <liferay-ui:message key="previous-assignee-was-x"
arguments="<%= PortalUtil.getUserName(workflowLog arguments="<%= PortalUtil.getUserName(workflowLog
.getPreviousUserId(), StringPool.BLANK) %>" /> .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 ## HOOK
x-assigned-the-task-to-x = Task assigned to {1}
x-completed-the-task-x-y={0} completed the task {1} ({2}). x-completed-the-task-x-y={0} completed the task {1} ({2}).
x-sent-signal-x=System sent a signal {1}. 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 ## 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-completed-the-task-x-y={0} ha completato l'attività {1} ({2}).
x-sent-signal-x=Il sistema ha inviato un segnale {1}. 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); renderRequest.setAttribute("canRegistraEsito", canRegistraEsito);
_log.info("canPortosAssegnatore = " + canPortosAssegnatore + ", canRemoveUO = " + canRemoveUO
+ ", canRegistraEsito = " + canRegistraEsito);
return originalStrutsPortletAction.render(originalStrutsPortletAction, portletConfig, renderRequest, return originalStrutsPortletAction.render(originalStrutsPortletAction, portletConfig, renderRequest,
renderResponse); renderResponse);
} }

Caricamento…
Annulla
Salva