From c212ec3c419eca4d5e7eace59d6077b551de1421 Mon Sep 17 00:00:00 2001 From: Salvatore La Manna Date: Tue, 14 Sep 2021 16:02:12 +0200 Subject: [PATCH] =?UTF-8?q?Pareri=20endoprocedimentali=20in=20attesa=20in?= =?UTF-8?q?=20"Le=20mie=20attivit=C3=A0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../html/gestioneattivita/view_columns.jspf | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf index cc2f0693..c7ac1454 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf @@ -1,3 +1,5 @@ +<%@page import="it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.model.ParereGeologo"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%> <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> @@ -182,6 +184,30 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP <%= provincia.getProvincia() %> - <%= comune.getDenominazione() %> + + + <% + if (ParereGeologoLocalServiceUtil.countByIntPraticaId(intPratica.getIntPraticaId()) > 0) { + List inCorso = ParereGeologoLocalServiceUtil.findByIntPraticaIdInCorso( + intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); + if (inCorso.size() > 0) { + out.print("In attesa di:
    "); + for (ParereGeologo parere : inCorso) { + %> +
  • + <%= dateFormatDate.format(parere.getCreateDate()) %>: + <%= UserLocalServiceUtil.fetchUser(parere.getGeologoUserId()).getFullName() %> +
  • + <% + } + out.print("
"); + } else { + out.print(" Pareri giĆ  espressi"); + } + } + %> +
+
<%= ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(controlloPratica .getControlloPraticaId()) %>