@ -1,118 +1,108 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.Generics"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalService"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="java.util.Date"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@page import="it.tref.liferay.portos.bo.model.Comune"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="java.util.ArrayList"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="java.util.regex.Pattern"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%@include file="/html/fascicolofe/init.jsp"%>
<%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l);
DettPratica dettPratica = null;
IntPratica intPratica = null;
if(intPraticaId!=0l){
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
DettPratica dettPratica = null;
IntPratica intPratica = null;
if (intPraticaId != 0) {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if(dettPratica==null){
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
dettPraticaId = dettPratica.getDettPraticaId();
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
String name = StringPool.MINUS;
if(intPratica.getStatusByUserId() != 0) {
name = UserLocalServiceUtil.getUser(intPratica.getStatusByUserId()).getFullName();
}
int nVarianti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE}));
int nCambioSoggetti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO}));
int nFineLavori = FineLavoriLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, true);
int nCollaudo = CollaudoLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, true);
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
String name = StringPool.MINUS;
if (intPratica.getStatusByUserId() != 0) {
name = Generics.capitalizeFull(UserLocalServiceUtil.getUser(intPratica.getStatusByUserId()).getFullName());
}
int nVarianti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE));
int nCambioSoggetti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO));
int nFineLavori = FineLavoriLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, true);
int nCollaudo = CollaudoLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, true);
String urlIframeMappe = dettPratica.getUrlMappeBo(request, comune, true);
%>
<div class="container-fluid fascicolo-header">
<div class="row">
<div class="col-sm-2 col-md-2">
<span class="bg-success img-thumbnail" style="width: 80px;height: 80px; font-size: 70px; line-height: 70px; vertical-align: middle; text-align: center;">
<c:if test="<%=Constants.TIPO_PRATICA_AUTORIZZAZIONE.equalsIgnoreCase(intPratica.getTipoPratica()) %>">
<div class="col-sm-2">
<span class="bg-success img-thumbnail"
style="width:80px;height:80px;font-size:70px;line-height:70px;vertical-align:middle;text-align: center">
<c:if test="<%= Constants.TIPO_PRATICA_AUTORIZZAZIONE.equals(intPratica.getTipoPratica()) %>">
A
</c:if>
<c:if test="<%=Constants.TIPO_PRATICA_DEPOSITO .equalsIgnoreCase (intPratica.getTipoPratica()) %>">
<c:if test="<%= Constants.TIPO_PRATICA_DEPOSITO .equals(intPratica.getTipoPratica()) %>">
D
</c:if>
</span>
</div>
<div class="col-sm-10 col-md-10 ">
<div class="col-sm-10">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_dettagli" >
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="fascicolo_title_dettagli">
<div class="container-fluid">
<div class="row">
<div class="col-sm-2 col-md-2 ">
<div class="col-sm-2">
Validità
</div>
<div class="col-sm-4 col-md-4 ">
<div class="col-sm-4">
<strong>
<% if(intPratica.getValidata()) { %>
<%
if (intPratica.getValidata()) {
%>
<span class="fa fa-check" style="color:green"></span>
<% }else { %>
<%
} else {
%>
<span class="fa fa-times" style="color:red"></span>
<% } %>
<%
}
%>
</strong>
</div>
<div class="col-sm-2 col-md-2 ">
<div class="col-sm-2">
Istruttore:
</div>
<div class="col-sm-4 col-md-4 ">
<div class="col-sm-4">
<strong><%=name %></strong>
</div>
</div>
<div class="row">
<div class="col-sm-2 col-md-2 ">
<div class="col-sm-2">
Tipologia:
</div>
<div class="col-sm-4 col-md-4">
<strong><%= LanguageUtil.get(pageContext, "tipo-pratica-"+intPratica.getTipoPratica()) %></strong>
<div class="col-sm-4">
<strong>
<%= LanguageUtil.get(pageContext, "tipo-pratica-" + intPratica.getTipoPratica()) %>
</strong>
</div>
<div class="col-sm-2 col-md-2">
<div class="col-sm-2">
Stato:
</div>
<div class="col-sm-4 col-md-4">
<strong><%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica)) %></strong>
<div class="col-sm-4">
<strong>
<%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(
intPratica.getStatoPratica(), intPratica)) %>
</strong>
</div>
</div>
</div>
@ -121,64 +111,93 @@
</div>
</div>
<div class="row">
<div class="col-sm-8 col-md-8 ">
<div class="col-sm-8">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_progetti" >
<div class="col-sm-6 col-md-3">
<% if(nVarianti == 0 ) { %>
Varianti <strong><span class="fa fa-circle-o" style="color:orange"></span> Non presentate</strong>
<% } else if(nVarianti == 1 ) { %>
Variante <strong><span class="fa fa-check" style="color:green"></span> Presentata <%=nVarianti %> volta</strong>
<% } else { %>
Varianti <strong><span class="fa fa-check" style="color:green"></span> Presentate <%=nVarianti %> volte</strong>
<% } %>
</div>
<div class="col-sm-6 col-md-3">
<% if(nCambioSoggetti == 0 ) { %>
Cambio soggetti <strong><span class="fa fa-circle-o" style="color:orange"></span> Non presentata</strong>
<% } else if(nCambioSoggetti == 1 ) { %>
Cambio soggetti <strong><span class="fa fa-check" style="color:green"></span> Presentata <%=nCambioSoggetti %> volta</strong>
<% } else { %>
Cambio soggetti <strong><span class="fa fa-check" style="color:green"></span> Presentata <%=nCambioSoggetti %> volte</strong>
<% } %>
</div>
<div class="col-sm-6 col-md-3">
<% if(nFineLavori == 0 ) { %>
Fine Lavori <strong><span class="fa fa-close txt-red"></span> Non presentata</strong>
<% } else if(nVarianti == 1 ) { %>
Fine Lavori <strong><span class="fa fa-check txt-green"></span> Presentata <%=nFineLavori %> volta</strong>
<% } else { %>
Fine Lavori <strong><span class="fa fa-check txt-green"></span> Presentata <%=nFineLavori %> volte</strong>
<% } %>
</div>
<div class="col-sm-6 col-md-3">
<% if(nCollaudo == 0 ) { %>
Collaudo <strong><span class="fa fa-close" style="color:red"></span> Non presentato</strong>
<% } else if(nCollaudo == 1 ) { %>
Collaudo <strong><span class="fa fa-check" style="color:green"></span> Presentato <%=nFineLavori %> volta</strong>
<% } else { %>
Collaudo <strong><span class="fa fa-check" style="color:green"></span> Presentato <%=nFineLavori %> volte</strong>
<% } %>
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="fascicolo_title_progetti" >
<div class="col-sm-6 col-md-3">
<c:choose>
<c:when test="<%= nVarianti == 0 %>">
Varianti <strong><span class="fa fa-circle-o" style="color:orange"></span>
Non presentate</strong>
</c:when>
<c:when test="<%= nVarianti == 1 %>">
Variante <strong><span class="fa fa-check" style="color:green"></span>
Presentata 1 volta</strong>
</c:when>
<c:otherwise>
Varianti <strong><span class="fa fa-check" style="color:green"></span>
Presentate <%=nVarianti %> volte</strong>
</c:otherwise>
</c:choose>
</div>
<div class="col-sm-6 col-md-3">
Cambio soggetti <strong>
<c:choose>
<c:when test="<%= nCambioSoggetti == 0 %>">
<span class="fa fa-circle-o" style="color:orange"></span> Non presentato
</c:when>
<c:when test="<%= nCambioSoggetti == 1 %>">
<span class="fa fa-check" style="color:green"></span> Presentato 1 volta
</c:when>
<c:otherwise>
<span class="fa fa-check" style="color:green"></span>
Presentato <%=nCambioSoggetti %> volte
</c:otherwise>
</c:choose>
</strong>
</div>
<div class="col-sm-6 col-md-3">
Fine Lavori <strong>
<c:choose>
<c:when test="<%= nFineLavori == 0 %>">
<span class="fa fa-close txt-red"></span> Non presentata
</c:when>
<c:when test="<%= nFineLavori == 1 %>">
Fine Lavori <strong><span class="fa fa-check txt-green"></span> Presentata 1 volta
</c:when>
<c:otherwise>
Fine Lavori <strong><span class="fa fa-check txt-green"></span>
Presentata <%=nFineLavori %> volte
</c:otherwise>
</c:choose>
</strong>
</div>
<div class="col-sm-6 col-md-3">
Collaudo <strong>
<c:choose>
<c:when test="<%= nCollaudo == 0 %>">
<span class="fa fa-close" style="color:red"></span> Non presentato
</c:when>
<c:when test="<%= nCollaudo == 1 %>">
<span class="fa fa-check" style="color:green"></span> Presentato 1 volta
</c:when>
<c:otherwise>
<span class="fa fa-check" style="color:green"></span>
Presentato <%= nCollaudo %> volte
</c:otherwise>
</c:choose>
</strong>
</div>
</liferay-ui:panel>
</div>
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_descrizione" >
<div class="prog-description">
<%=BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %>
<%= BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %>
</div>
</liferay-ui:panel>
</div>
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_intervento" >
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-6">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcNuovaCostruzione") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-nuova-costruzione") %>
<div class="col-sm-6">
<strong><span
class='<%= BeanPropertiesUtil.getBoolean(dettPratica, "tcNuovaCostruzione")
? "fa fa-check-circle-o txt-green"
: "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-nuova-costruzione") %>
</div>
<%
boolean checked =
@ -186,22 +205,30 @@
BeanPropertiesUtil.getBoolean(dettPratica, "tcMiglioramentoSismico") ||
BeanPropertiesUtil.getBoolean(dettPratica, "tcRiparazioneInterventoLocale");
%>
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<strong><span class='<%=checked ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-interventi-esistenti") %>
<ul style="padding-left: 15px; ">
<ul style="padding-left:15px">
<li>
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcAdeguamentoSismico") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-adeguamento-sismico") %>
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica,
"tcAdeguamentoSismico")
? "fa fa-check-circle-o txt-green"
: "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-adeguamento-sismico") %>
</li>
<li>
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcMiglioramentoSismico") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-miglioramento-sismico") %>
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica,
"tcMiglioramentoSismico")
? "fa fa-check-circle-o txt-green"
: "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-miglioramento-sismico") %>
</li>
<li>
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcRiparazioneInterventoLocale") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-riparazione-intervento-locale") %>
<strong><span class='<%= BeanPropertiesUtil.getBoolean(dettPratica,
"tcRiparazioneInterventoLocale")
? "fa fa-check-circle-o txt-green"
: "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "tc-riparazione-intervento-locale") %>
</li>
</ul>
</div>
@ -209,17 +236,20 @@
</div>
</liferay-ui:panel>
</div>
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_soggetti" >
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="fascicolo_title_soggetti">
<div class="container-fluid">
<%
List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE);
List<Soggetto> committenti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(
intPraticaId, TipoSoggettoUtil.COMMITTENTE);
%>
<c:if test="<%= !committenti.isEmpty() %>">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"><%=LanguageUtil.get(pageContext, "gc-soggetto-02") %>:</div>
<div class="col-sm-12">
<div class="fascicolo_header_row">
<%=LanguageUtil.get(pageContext, "gc-soggetto-02") %>:
</div>
</div>
</div>
<%
@ -239,13 +269,13 @@
Nome:
</div>
<div class="col-sm-6 col-md-3">
<strong><%= committente.getNome() %></strong>
<strong><%= Generics.capitalizeFull( committente.getNome() ) %></strong>
</div>
<div class="col-sm-6 col-md-3">
Cognome:
</div>
<div class="col-sm-6 col-md-3">
<strong><%= committente.getCognome() %></strong>
<strong><%= Generics.capitalizeFull( committente.getCognome() ) %></strong>
</div>
<div class="col-sm-6 col-md-3">
Codice Fiscale:
@ -257,12 +287,15 @@
</div>
</c:if>
<%
List<Soggetto> progettisti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.PROGETTISTA);
List<Soggetto> progettisti = SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(
intPraticaId, TipoSoggettoUtil.PROGETTISTA);
%>
<c:if test="<%= !progettisti.isEmpty() %>">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"><%=LanguageUtil.get(pageContext, "gc-soggetto-06") %>:</div>
<div class="col-sm-12">
<div class="fascicolo_header_row">
<%=LanguageUtil.get(pageContext, "gc-soggetto-06") %>:
</div>
</div>
</div>
<div class="row">
@ -270,13 +303,13 @@
Nome:
</div>
<div class="col-sm-6 col-md-3">
<strong><%= progettisti.get(0).getNome() %></strong>
<strong><%= Generics.capitalizeFull( progettisti.get(0).getNome() ) %></strong>
</div>
<div class="col-sm-6 col-md-3">
Cognome:
</div>
<div class="col-sm-6 col-md-3">
<strong><%= progettisti.get(0).getCognome() %></strong>
<strong><%= Generics.capitalizeFull( progettisti.get(0).getCognome() ) %></strong>
</div>
<div class="col-sm-6 col-md-3">
Codice Fiscale:
@ -287,11 +320,14 @@
</div>
</c:if>
<%
List<Soggetto> direttori = SoggettoServiceUtil.getValidByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.DIRETTORE_LAVORI);
List<Soggetto> direttori = SoggettoServiceUtil.getValidByIntPratica_TipologiaSoggetto(
intPraticaId, TipoSoggettoUtil.DIRETTORE_LAVORI);
%>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"><%=LanguageUtil.get(pageContext, "gc-soggetto-03") %>:</div>
<div class="col-sm-12">
<div class="fascicolo_header_row">
<%= LanguageUtil.get(pageContext, "gc-soggetto-03") %>:
</div>
</div>
</div>
<c:if test="<%= !direttori.isEmpty() %>">
@ -300,13 +336,13 @@
Nome:
</div>
<div class="col-sm-6 col-md-3">
<strong><%= direttori.get(0).getNome() %></strong>
<strong><%= Generics.capitalizeFull( direttori.get(0).getNome() ) %></strong>
</div>
<div class="col-sm-6 col-md-3">
Cognome:
</div>
<div class="col-sm-6 col-md-3">
<strong><%= direttori.get(0).getCognome() %></strong>
<strong><%= Generics.capitalizeFull( direttori.get(0).getCognome() ) %></strong>
</div>
<div class="col-sm-6 col-md-3">
Codice Fiscale:
@ -320,68 +356,71 @@
</liferay-ui:panel>
</div>
<div class="module-group sezione-pagamenti">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_pagamenti" >
<liferay-util:include page="/html/pagamenti/view_panel_pagamenti.jsp" servletContext='<%= ServletContextPool.get("portos-bo-portlet") %>'>
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>"></liferay-util:param>
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="fascicolo_title_pagamenti">
<liferay-util:include page="/html/pagamenti/view_panel_pagamenti.jsp"
servletContext='<%= ServletContextPool.get("portos-bo-portlet") %>'>
<liferay-util:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</liferay-util:include>
</liferay-ui:panel>
</div>
</div>
<div class="col-sm-4 col-md-4 ">
<div class="col-sm-4">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_ubicazione" >
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="fascicolo_title_ubicazione">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<%= LanguageUtil.get(pageContext, "dp-zona-sismica") %>
</div>
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<strong><%= BeanPropertiesUtil.getString(territorio, "zona") %>
</div>
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<%= LanguageUtil.get(pageContext, "dp-fascia-pericolosita") %>
</div>
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<strong><%= BeanPropertiesUtil.getString(territorio, "fascia") %></strong>
</div>
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<%= LanguageUtil.get(pageContext, "ag") %>
</div>
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<strong><%= BeanPropertiesUtil.getString(dettPratica, "ag") %></strong>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<%= LanguageUtil.get(pageContext, "dp-dc-prov") %>
</div>
<div class="col-sm-6 col-md-6 ">
<strong><%=BeanPropertiesUtil.getString(provincia, "provincia")%></strong>
<div class="col-sm-6">
<strong><%= BeanPropertiesUtil.getString(provincia, "provincia") %></strong>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<%= LanguageUtil.get(pageContext, "dp-dc-comune") %>
</div>
<div class="col-sm-6 col-md-6 ">
<strong><%=BeanPropertiesUtil.getString(comune, "denominazione")%></strong>
<div class="col-sm-6">
<strong><%= BeanPropertiesUtil.getString(comune, "denominazione") %></strong>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<%= LanguageUtil.get(pageContext, "dp-dc-loc") %>
</div>
<div class="col-sm-6 col-md-6 ">
<strong><%=BeanPropertiesUtil.getString(dettPratica, "localita") %></strong>
<div class="col-sm-6">
<strong><%= BeanPropertiesUtil.getString(dettPratica, "localita") %></strong>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-6 ">
<div class="col-sm-6">
<%= LanguageUtil.get(pageContext, "dp-dc-via") %>
</div>
<div class="col-sm-6 col-md-6 ">
<strong><%=BeanPropertiesUtil.getString(dettPratica, "via") %></strong>
<div class="col-sm-6">
<strong><%= BeanPropertiesUtil.getString(dettPratica, "via") %></strong>
</div>
</div>
<hr>
@ -390,14 +429,13 @@
<%= LanguageUtil.get(pageContext, "dc-foglio") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><strong>< %=BeanPropertiesUtil.getString(dettPratica, "dcFoglio") %></strong ></strong>
<strong><%= BeanPropertiesUtil.getString(dettPratica, "dcFoglio") %></strong>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dc-allegato") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%=BeanPropertiesUtil.getString(dettPratica, "dcAllegato") %></strong>
<strong><%= BeanPropertiesUtil.getString(dettPratica, "dcAllegato") %></strong>
</div>
</div>
<div class="row">
@ -406,26 +444,27 @@
</div>
<div class="col-sm-6 col-md-3">
<%
String[] particelle= BeanPropertiesUtil.getString(dettPratica, "dcParticelle").split(Pattern.quote("|"));
String[] particelle= BeanPropertiesUtil.getString(dettPratica, "dcParticelle").split(
Pattern.quote(StringPool.PIPE));
%>
<div class="col-md-3 col-sm-3 col- xs-6 no-padding-left">
<span><strong><%=particelle.length>0?particelle[0]:StringPool.BLANK %></strong></span>
<div class="col-md-3 col-xs-6 no-padding-left">
<span><strong><%= particelle.length > 0 ? particelle[0] : StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col- xs-6">
<span><strong><%=particelle.length>1?particelle[1]:StringPool.BLANK %></strong></span>
<div class="col-md-3 col-xs-6">
<span><strong><%= particelle.length > 1 ? particelle[1] : StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col- xs-6">
<span><strong><%=particelle.length>2?particelle[2]:StringPool.BLANK %></strong></span>
<div class="col-md-3 col-xs-6">
<span><strong><%= particelle.length > 2 ? particelle[2] : StringPool.BLANK %></strong></span>
</div>
<div class="col-md-3 col-sm-3 col- xs-6 no-padding-right">
<span><strong><%=particelle.length>3?particelle[3]:StringPool.BLANK %></strong></span>
<div class="col-md-3 col-xs-6 no-padding-right">
<span><strong><%= particelle.length > 3 ? particelle[3] : StringPool.BLANK %></strong></span>
</div>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "estremi-prat-com") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%=BeanPropertiesUtil.getString(dettPratica, "estremiPratCom") %></strong>
<strong><%= BeanPropertiesUtil.getString(dettPratica, "estremiPratCom") %></strong>
</div>
</div>
<div class="row">
@ -438,56 +477,40 @@
</div>
</c:if>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "contesto-paesaggistico") %>
</div>
<div class="col-sm-6 col-md-9">
<strong><%= BeanPropertiesUtil.getString(dettPratica, "contestoPaesaggistico") %></strong>
<strong><%= Generics.nl2br( BeanPropertiesUtil.getString(dettPratica, "contestoPaesaggistico") ) %></strong>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "livello-di-tutela") %>
</div>
<div class="col-sm-6 col-md-9">
<strong><%= BeanPropertiesUtil.getString(dettPratica, "livelloDiTutela") %></strong>
<strong><%= Generics.nl2br( BeanPropertiesUtil.getString(dettPratica, "livelloDiTutela") ) %></strong>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "vincoli") %>
</div>
<div class="col-sm-6 col-md-9">
<strong><%= BeanPropertiesUtil.getString(dettPratica, "vincoli") %></strong>
<strong><%= Generics.nl2br( BeanPropertiesUtil.getString(dettPratica, "vincoli") ) %></strong>
</div>
</div>
<div class="row">
<div class="col-md-12">
<%
String[] geolocalization = BeanPropertiesUtil.getString(dettPratica, "localizzazioneGeografica","").split(Pattern.quote("|"));
%>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:input name="lat" label="" type="hidden"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' />
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:input name="long" label="" type="hidden"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/>
</div>
<aui:input type="hidden" name="geoIsEditable" value='<%= false %>' label=""/>
<liferay-portlet:runtime portletName="5_WAR_trefmapitmapportlet" />
<%-- Integrazione geoportal --%>
<div class="col-xs-12">
<iframe src="<%= urlIframeMappe %>" style="border:none;width:100%;height:700px"></iframe>
</div>
<%-- /Integrazione geoportal --%>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
</div>