Sfoglia il codice sorgente

Merge branch 'mappe-2marzo' of 149.202.172.180:/home/ubuntu/sicilia/sismica into mappe-2marzo

master
Mattia Gosetto 3 anni fa
parent
commit
61cb339849
  1. 340
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp
  2. 14
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/advanced_search.jsp
  3. 543
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_collaudo.jsp

340
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp

@ -4,16 +4,9 @@
<%@page import="it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti"%>
<%@page import="it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="java.util.Date"%>
<%@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.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"%>
@ -22,131 +15,121 @@
<%@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="java.util.regex.Pattern"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@include file="init.jsp" %>
<%
long accessoAttiId = ParamUtil.getLong(request, "accessoAttiId" , 0L);
%>
<div style="width:30%;">
<div style="width:30%">
<liferay-ui:error key="no-atto-trovato" message="Nessun atto trovato per questa richiesta" />
<liferay-ui:error key="accesso-token-invalido" message="Access Token non valido" />
<liferay-ui:error key="accesso-token-scaduto" message="Access Token scaduto" />
</div>
<c:if test="<%=accessoAttiId == 0L %>">
<c:if test="<%= accessoAttiId == 0L %>">
<liferay-portlet:actionURL name="visualizzaAtto" var="visualizzaAttoURL" />
<aui:form action="<%=visualizzaAttoURL %>">
<div class="row-fluid" style="margin-top: 10px;">
<div class="span12">
<aui:input name="accessToken" label="Codice di Accesso " style="width:20%;">
<aui:input name="accessToken" label="Codice di Accesso " style="width:20%">
<aui:validator name="required" />
</aui:input>
</div>
</div>
<div class="row-fluid" style="margin-top: 10px;">
<div class="row-fluid" style="margin-top: 10px">
<div class="span12">
<aui:button type="submit" value="Visualizza Atto" />
</div>
</div>
</aui:form>
</c:if>
<c:if test="<%=accessoAttiId != 0L %>">
<%
RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichiestaAccessoAtti(accessoAttiId);
%>
<c:if test="<%=accettoAtti.getIntPraticaId() != 0L %>">
<%
long intPraticaId = accettoAtti.getIntPraticaId();
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l);
DettPratica dettPratica = null;
IntPratica intPratica = null;
if(intPraticaId !=0l ){
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if(dettPraticaId != 0l){
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
} else {
dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPraticaId);
if(dettPratica==null){
dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
<c:if test="<%= accettoAtti.getIntPraticaId() != 0L %>">
<%
long intPraticaId = accettoAtti.getIntPraticaId();
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
DettPratica dettPratica = null;
IntPratica intPratica = null;
if (intPraticaId != 0) {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (dettPraticaId != 0) {
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
} else {
dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
}
dettPraticaId = dettPratica.getDettPraticaId();
}
}
dettPraticaId = dettPratica.getDettPraticaId();
}
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
%>
<liferay-ui:error key="error-download-pdf-domanda" message="error-download-pdf-domanda" />
<liferay-portlet:actionURL name="salvaStampaPratica" var="salvaStampaPraticaURL">
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_dettagli.jsp"/>
</liferay-portlet:actionURL>
<%-- <aui:form name="fm_salvaStampa" action="<%=salvaStampaPraticaURL %>" method="post"> --%>
<%-- <aui:button cssClass="pull-right" type="submit" value="Stampa" icon="icon-print" iconAlign="left"/> --%>
<%-- </aui:form> --%>
<h3><%=intPratica.getTitle(true) %></h3>
<liferay-ui:panel-container extended="true" id="outerPanelContainer">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_decreto_min" >
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dp-zona-sismica") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(territorio, "zona") %>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dp-fascia-pericolosita") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(territorio, "fascia") %>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dp-range-ag") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(territorio, "agMin") %> - <%= BeanPropertiesUtil.getString(territorio, "agMax") %>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "ag") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(dettPratica, "ag") %>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dp-sensi") %></div>
</div>
</div>
<div class="row">
<c:if test="<%= intPratica.isDeposito() %>">
<div class="col-sm-6 col-md-6">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "normDpr01Dep") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "norm-dpr01-dep") %>
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
%>
<liferay-ui:error key="error-download-pdf-domanda" message="error-download-pdf-domanda" />
<liferay-portlet:actionURL name="salvaStampaPratica" var="salvaStampaPraticaURL">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_dettagli.jsp"/>
</liferay-portlet:actionURL>
<h3><%= intPratica.getTitle(true) %></h3>
<liferay-ui:panel-container extended="true" id="outerPanelContainer">
<div class="row">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
title="fascicolo_title_decreto_min">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dp-zona-sismica") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(territorio, "zona") %>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dp-fascia-pericolosita") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(territorio, "fascia") %>
</div>
</div>
<div class="col-sm-6 col-md-6">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "normDpr02Dep") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "dp-range-ag") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(territorio, "agMin") %>
-
<%= BeanPropertiesUtil.getString(territorio, "agMax") %>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "ag") %>
</div>
<div class="col-sm-6 col-md-3">
<%= BeanPropertiesUtil.getString(dettPratica, "ag") %>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dp-sensi") %></div>
</div>
</div>
<div class="row">
<c:if test="<%= intPratica.isDeposito() %>">
<div class="col-sm-6 col-md-6">
<strong><span class='<%= BeanPropertiesUtil
.getBoolean(dettPratica, "normDpr01Dep")
? "fa fa-check-circle-o txt-green"
: "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "norm-dpr01-dep") %>
</div>
<div class="col-sm-6 col-md-6">
<strong><span class='<%= BeanPropertiesUtil
.getBoolean(dettPratica, "normDpr02Dep") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "norm-dpr02-dep") %>
</div>
</c:if>
@ -162,7 +145,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</c:if>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dp-rispetto") %></div>
</div>
</div>
@ -173,7 +156,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dp-normativa") %>:</div>
</div>
</div>
@ -184,7 +167,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"></div>
</div>
</div>
@ -209,7 +192,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "collaudoStatico") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "collaudo-statico") %>
</div>
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="container-regolamento">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "normArt3com3") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>' style="margin-right: 10px;"></span></strong>
<p style="display: inline;"><%= LanguageUtil.get(pageContext, "norm-art3com3") %>:</p>
@ -221,7 +204,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</ul>
</div>
</div>
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="container-regolamento" style="display: inline-block;vertical-align: top;">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "normArt3com4") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>' style="margin-right: 10px;"></span></strong>
<p style="display: inline;"><%= LanguageUtil.get(pageContext, "norm-art3com4") %></p>
@ -235,7 +218,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_descrizione" >
<div class="prog-description">
@ -248,12 +231,12 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_dettagli" >
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row">Ubicazione</div>
</div>
</div>
@ -356,20 +339,18 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<div class="container-fluid">
<div class="row">
<%
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" />
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" />
</div>
</div>
</div>
@ -380,15 +361,14 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="destinazione" >
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<%
String label = BeanPropertiesUtil.getString(dettPratica, "destinazione");
String uso = "";
String title = "";
if(label.length() > 1){
@ -409,7 +389,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_intervento" >
<div class="container-fluid">
@ -419,11 +399,11 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<%=LanguageUtil.get(pageContext, "tc-nuova-costruzione") %>
</div>
<%
boolean checked =
boolean checked =
BeanPropertiesUtil.getBoolean(dettPratica, "tcAdeguamentoSismico") ||
BeanPropertiesUtil.getBoolean(dettPratica, "tcMiglioramentoSismico") ||
BeanPropertiesUtil.getBoolean(dettPratica, "tcRiparazioneInterventoLocale");
%>
%>
<div class="col-sm-6 col-md-6">
<strong><span class='<%=checked ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-interventi-esistenti") %>
@ -431,7 +411,6 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<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") %>
</li>
<li>
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcMiglioramentoSismico") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
@ -449,9 +428,8 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_tipologia_costruttiva" >
<div class="container-fluid">
@ -504,7 +482,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcAltro") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-altro") %></br>
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "tcAltroDescrizione") %></strong></span>
@ -523,17 +501,16 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
<div class="row">
<div class="col-sm-12 col-md-12 anagrafica-soggetti">
<div class="col-sm-12 anagrafica-soggetti">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_soggetti" >
<div class="row container-soggetti__bo ">
<div class="col-sm-12 col-md-12 container-soggetti__bo-dettagli">
<div class="col-sm-12 container-soggetti__bo-dettagli">
<liferay-ui:search-container emptyResultsMessage="no-soggetti-presenti">
<liferay-ui:search-container-results
results="<%=SoggettoLocalServiceUtil.findByIntPratica(dettPratica.getIntPraticaId())%>"
total="<%=SoggettoLocalServiceUtil.countByIntPratica(dettPratica.getIntPraticaId())%>"
/>
<liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.Soggetto"
modelVar="soggetto"
@ -541,22 +518,18 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<%
boolean isSoggettoPrincipale = dettPratica.isSoggettoPrincipale(soggetto.getSoggettoId());
%>
<liferay-portlet:renderURL portletName="<%=PortletKeys.SOGGETTI %>" var="detailsURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/soggettipratica/edit_soggetto.jsp"/>
<liferay-portlet:param name="soggettoId" value="<%=String.valueOf(soggetto.getSoggettoId()) %>"/>
<liferay-portlet:param name="inBO" value="true"/>
<liferay-portlet:param name="isEditable" value="false"/>
</liferay-portlet:renderURL>
<liferay-ui:search-container-column-text name="Stato" cssClass="text-center">
<span class='fa fa-circle <%= soggetto.getRimosso() ? "txt-red" : "txt-green" %>'></span>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="principale" cssClass="text-center">
<span class='<%= isSoggettoPrincipale ? "fa fa-star txt-orange" : "fa fa-star-o" %>'></span>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="ruolo">
<%= soggetto.getFullTipologiaSoggetto() %>
</liferay-ui:search-container-column-text>
@ -566,51 +539,44 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<liferay-ui:search-container-column-text name="albo" cssClass="text-uppercase">
<%
if("albo-altro".equalsIgnoreCase(soggetto.getAlbo())){
out.print(soggetto.getAlboDescr());
out.print(soggetto.getAlboDescr());
} else {
out.print(soggetto.getAlbo());
out.print(soggetto.getAlbo());
}
%>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Aggiunto da" >
<%
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaId());
if(adding != null){
%>
<%= adding.getFullDescription() %>
<%
}
%>
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaId());
if(adding != null){
%>
<%= adding.getFullDescription() %>
<%
}
%>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Invalidato da">
<%
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaIdRimozione());
if(removing != null){
%>
<%= removing.getFullDescription() %>
<%
}
%>
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaIdRimozione());
if(removing != null){
%>
<%= removing.getFullDescription() %>
<%
}
%>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
</liferay-ui:search-container>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Dati Metrici Descrittivi" >
<div class="container-fluid">
@ -646,7 +612,6 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<strong><%=LanguageUtil.get(pageContext,
"de-interrati-"+deInterrati)%></strong>
</c:if>
</div>
<div class="col-sm-6 col-md-4">
<%= LanguageUtil.get(pageContext, "de-superficie") %>:
@ -740,7 +705,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title='<%= LanguageUtil.get(pageContext, "dcc")%>' >
<div class="container-fluid">
@ -750,7 +715,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
%>
<c:if test="<%= Validator.isNotNull(fondazioni) %>">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-fondazioni") %></div>
</div>
</div>
@ -765,12 +730,12 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</c:if>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-strutture-ele") %></div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12" >
<div class="col-sm-12" >
<%= LanguageUtil.get(pageContext, "dcc-strutture-ele-murature") %>:
</div>
</div>
@ -828,7 +793,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
<div class="separator"></div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<%= LanguageUtil.get(pageContext, "dcc-strutture-ele-misto") %>:
</div>
</div>
@ -859,9 +824,8 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccStruttureEleAltroDescrizione") %></strong></span>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-orizzontamenti") %></div>
</div>
</div>
@ -892,9 +856,8 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccOrizzontamentiAltroDescrizione") %></strong></span>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-copertura") %></div>
</div>
</div>
@ -903,7 +866,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
String copertura = BeanPropertiesUtil.getString(dettPratica, "dccCopertura");
%>
<c:if test="<%= Validator.isNotNull(copertura) %>">
<div class="col-sm-12 col-md-12" >
<div class="col-sm-12" >
<strong><%=LanguageUtil.get(pageContext,
"dcc-copertura-"+BeanPropertiesUtil.getString(dettPratica, "dccCopertura"))%></strong>
</div>
@ -942,9 +905,8 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccCoperturaAltroDesrizione") %></strong></span>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-elem-non-strut") %></div>
</div>
</div>
@ -965,15 +927,14 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "dccElemNonStrutLegno") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "dcc-elem-non-strut-legno") %>
</div>
<div class="col-sm-12 col-md-12" >
<div class="col-sm-12" >
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "dccElemNonStrutAltro") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "dcc-elem-non-strut-altro") %>
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccElemNonStrutAltroDescrizione") %></strong></span>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-opere-di-rinforzo") %></div>
</div>
</div>
@ -1010,7 +971,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "dccOpereDiRinforzoInsRompitratta") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "dcc-opere-di-rinforzo-ins-rompitratta") %>
</div>
<div class="col-sm-12 col-md-12" >
<div class="col-sm-12" >
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "dccOpereDiRinforzoAltro") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%= LanguageUtil.get(pageContext, "dcc-opere-di-rinforzo-altro") %>
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccOpereDiRinforzoAltroDescrizione") %></strong></span>
@ -1022,12 +983,12 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title='<%= LanguageUtil.get(pageContext, "di") %>' >
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "de-inf") %></div>
</div>
</div>
@ -1110,7 +1071,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title='<%= LanguageUtil.get(pageContext, "geo") %>' >
@ -1126,11 +1087,10 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<c:if test="<%=Validator.isNotNull(geoDate) %>">
<strong><%= dateFormatDate.format(geoDate) %></strong>
</c:if>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="fascicolo_header_row"><%=LanguageUtil.get(pageContext, "geo-scheda-title") %></div>
</div>
</div>
@ -1335,7 +1295,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group allegati-dettagli">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Allegati Geologici" >
<div class="row" id="<portlet:namespace/>allegati-geologica-table">
@ -1354,7 +1314,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="col-sm-12">
<div class="module-group allegati-dettagli">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Allegati Domanda" >
<div class="row" id="<portlet:namespace/>allegati-table">
@ -1377,7 +1337,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<c:if test="<%=accettoAtti.getIntPraticaId() == 0L %>">
<h3>
Questo fascicolo non <EFBFBD> disponibile sotto forma digitale. Potr<EFBFBD> ritirare una copia cartacea presso uno degli Uffici del Settore Sismica.
Questo fascicolo non è disponibile sotto forma digitale. Potrà ritirare una copia cartacea presso uno degli Uffici del Settore Sismica.
</h3>
</c:if>

14
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/advanced_search.jsp

@ -4,9 +4,9 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@include file="/html/fascicolofe/init.jsp"%>
<liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false"
persistState="true">
<div class="container-fluid" style="padding: 15px;">
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true"
extended="false" persistState="true">
<div class="container-fluid" style="padding: 15px">
<div class="row">
<div class="col-xs-12 col-md-3">
<aui:input type="text" name="numeroProgetto" label="Numero Progetto" />
@ -14,14 +14,16 @@
<div class="col-xs-12 col-md-3">
<aui:select name="tipoProcedura" label="Tipo Pratica">
<aui:option value="-1">Seleziona il tipo di pratica</aui:option>
<%
<%
for (Entry<String, String> procedura : IntPraticaLocalServiceUtil.getTipiProcedure()
.entrySet()) {
String tipo = procedura.getKey();
String label = procedura.getValue();
String nomeProcedura = LanguageUtil.get(pageContext, "label_procedura_"+tipo) + ") " + label;
if(nomeProcedura.length() > 90)
String nomeProcedura = LanguageUtil.get(pageContext, "label_procedura_"+tipo) + ") "
+ label;
if (nomeProcedura.length() > 90) {
nomeProcedura = nomeProcedura.substring(0, 90) + "...";
}
%>
<aui:option value="<%= tipo %>"><%= nomeProcedura %></aui:option>
<%

543
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_collaudo.jsp

@ -1,239 +1,198 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.mwg.sismica.bo.shared.util.AzioniPraticheUtil"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.AzioniPraticheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Collaudo"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Collaudo"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@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.SoggettoServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Comune"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@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.service.TerritorioServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<%
String backURL = ParamUtil.getString(request, "backURL");
long collaudoId = ParamUtil.getLong(request, "collaudoId",0l);
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId);
if( Validator.isNull(collaudo) ){
long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId");
collaudo = CollaudoLocalServiceUtil.getLastEditable(intPraticaIdParam);
collaudoId = collaudo.getCollaudoId();
}
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
boolean showHistory = ParamUtil.getBoolean(request, "showHistory", true);
long intPraticaId = collaudo.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if(dettPratica == null){
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto collaudatore = null;
List<Soggetto> collaudatori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCollaudo());
if(!collaudatori.isEmpty()){
collaudatore = collaudatori.get(0);
}
String formName = "fmCollaudo";
boolean disabledEditing = collaudo.getCompletata();
request.setAttribute("bean.collaudo", collaudo);
String backURL = ParamUtil.getString(request, "backURL");
long collaudoId = ParamUtil.getLong(request, "collaudoId", 0);
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId);
if (Validator.isNull(collaudo)) {
long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId");
collaudo = CollaudoLocalServiceUtil.getLastEditable(intPraticaIdParam);
collaudoId = collaudo.getCollaudoId();
}
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
boolean showHistory = ParamUtil.getBoolean(request, "showHistory", true);
long intPraticaId = collaudo.getIntPraticaId();
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto collaudatore = null;
List<Soggetto> collaudatori = SoggettoLocalServiceUtil
.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCollaudo());
if (!collaudatori.isEmpty()) {
collaudatore = collaudatori.get(0);
}
String formName = "fmCollaudo";
boolean disabledEditing = collaudo.getCompletata();
request.setAttribute("bean.collaudo", collaudo);
%>
<liferay-portlet:actionURL name="saveCollaudo" var="saveCollaudoURL" >
<liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudo.getCollaudoId()) %>"/>
<liferay-portlet:param name="backURL" value="<%=backURL %>"/>
<liferay-portlet:param name="successURL" value="<%=currentURL %>"/>
<liferay-portlet:param name="collaudoId" value="<%= String.valueOf(collaudo.getCollaudoId()) %>" />
<liferay-portlet:param name="backURL" value="<%= backURL %>" />
<liferay-portlet:param name="successURL" value="<%= currentURL %>"/>
</liferay-portlet:actionURL>
<aui:form name="<%= formName %>" onSubmit="preventDefault();" action="<%= saveCollaudoURL %>">
<aui:model-context bean="<%= collaudo %>" model="<%=Collaudo.class %>"></aui:model-context>
<aui:model-context bean="<%= collaudo %>" model="<%= Collaudo.class %>" />
<aui:input type="hidden" name="bozza" />
<div class="container-fluid">
<div class="row">
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9">
<div class="col-xs-9">
<%
String label = StringPool.BLANK;
if(disabledEditing){
label = "view-collaudo";
}else if(Validator.isNull(collaudo.getCollaudoId())){
label = "new-collaudo";
} else {
label = "edit-collaudo";
}
String label = StringPool.BLANK;
if (disabledEditing) {
label = "view-collaudo";
} else if (Validator.isNull(collaudo.getCollaudoId())) {
label = "new-collaudo";
} else {
label = "edit-collaudo";
}
%>
<liferay-ui:header
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>'
localizeTitle="false"
backURL="<%= backURL %>"
/>
<liferay-ui:header title='<%= LanguageUtil.get(pageContext, label) + " #" + dettPratica.getTitle() %>'
localizeTitle="false" backURL="<%= backURL %>" />
</div>
<c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<liferay-ui:icon
iconCssClass="fa fa-save"
message="salva-bozza"
url="javascript:saveCollaudo(true);"
linkCssClass="btn"
/>
<liferay-ui:icon
iconCssClass="fa fa-check-square"
message="salva-conferma"
url="javascript:saveCollaudo(false);"
linkCssClass="btn btn-primary"
/>
<div class="col-xs-3">
<div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar">
<liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza"
url="javascript:saveCollaudo(true);" linkCssClass="btn" />
<liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-conferma"
url="javascript:saveCollaudo(false);" linkCssClass="btn btn-primary" />
</liferay-ui:icon-menu>
</div>
</div>
</c:if>
</div>
<div class="row">
<div class="col-md-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="col">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-prov") %>
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="col">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 col-md-3"><%= LanguageUtil.get(pageContext, "col-prov") %></div>
<div class="col-sm-6 col-md-3">
<strong><%=BeanPropertiesUtil.getString(provincia, "provincia")%></strong>
</div>
<div class="col-sm-6 col-md-3"><%= LanguageUtil.get(pageContext, "col-comune") %></div>
<div class="col-sm-6 col-md-3">
<strong><%=BeanPropertiesUtil.getString(comune, "denominazione")%></strong>
</div>
</div>
<div class="col-sm-6 col-md-3">
<strong><%=BeanPropertiesUtil.getString(provincia, "provincia")%></strong>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-sismica") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(territorio, "zona") %></strong>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-pericolosita") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(territorio, "fascia") %></strong>
</div>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-comune") %>
<div class="row">
<div class="col-sm-6 col-md-3"><%= LanguageUtil.get(pageContext, "col-range") %></div>
<div class="col-sm-6 col-md-3">
<strong>
<%= BeanPropertiesUtil.getString(territorio, "agMin") %>
-
<%= BeanPropertiesUtil.getString(territorio, "agMax") %>
</strong>
</div>
</div>
<div class="col-sm-6 col-md-3">
<strong><%=BeanPropertiesUtil.getString(comune, "denominazione")%></strong>
<hr>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-desc-interv") %>
</div>
<div class="col-sm-6 col-md-9">
<strong>
<%=BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %>
</strong>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-sismica") %>
<hr>
<div class="row">
<div class="col-sm-6 col-md-3"><%= LanguageUtil.get(pageContext, "col-commit") %></div>
<div class="col-sm-6 col-md-3">
<%
List<Soggetto> committenti = SoggettoLocalServiceUtil
.findByIntPratica_TipologiaSoggetto(intPraticaId,
TipoSoggettoUtil.COMMITTENTE);
if (!committenti.isEmpty()) {
%>
<ul>
<%
for (Soggetto committente : committenti) {
%>
<li><strong><%= committente.getDescrizioneCompleta() %></strong></li>
<%
}
%>
</ul>
<%
}
%>
</div>
<div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(territorio, "zona") %></strong>
<%= LanguageUtil.get(pageContext, "col-collaudatore") %>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-pericolosita") %>
<c:if test="<%= Validator.isNotNull(collaudatore) %>">
<aui:input name="collaudatore" value="<%= collaudatore.getCodiceFiscale() %>"
type="hidden" />
<strong><%= collaudatore.getDescrizioneCompleta() %></strong>
</c:if>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(territorio, "fascia") %></strong>
<%= LanguageUtil.get(pageContext, "col-tipo-dom") %>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-range") %>
<div class="col-sm-6 col-md-3">
<strong><%= LanguageUtil.get(pageContext, "tipo-pratica-"+intPratica.getTipoPratica()) %></strong>
</div>
<div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(territorio, "agMin") %> - <%= BeanPropertiesUtil.getString(territorio, "agMax") %></strong>
<%= LanguageUtil.get(pageContext, "col-data-invio-fl") %>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-desc-interv") %>
<div class="col-sm-6 col-md-3">
<%
FineLavori lastFineLavori = FineLavoriServiceUtil.getLastCompleted(intPraticaId);
%>
<c:if test="<%= Validator.isNotNull(lastFineLavori) %>">
<strong><%= dateFormatDate.format(lastFineLavori.getDataFineLavori()) %></strong>
</c:if>
</div>
<div class="col-sm-6 col-md-9">
<strong><%=BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %></strong>
</div>
<hr>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-tipo") %>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-commit") %>
</div>
<div class="col-sm-6 col-md-3">
<%
List<Soggetto> committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, TipoSoggettoUtil.COMMITTENTE);
if(!committenti.isEmpty()){
%>
<ul>
<%
for(Soggetto committente : committenti){
%>
<li><strong>
<%= committente.getDescrizioneCompleta() %>
</strong></li>
<%
}
%>
</ul>
<%
}
%>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-collaudatore") %>
</div>
<div class="col-sm-6 col-md-3">
<c:if test="<%= Validator.isNotNull(collaudatore) %>">
<aui:input name="collaudatore" value="<%= collaudatore.getCodiceFiscale() %>" type="hidden" />
<strong>
<%= collaudatore.getDescrizioneCompleta() %>
</strong>
</c:if>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-tipo-dom") %>
</div>
<div class="col-sm-6 col-md-3">
<strong><%= LanguageUtil.get(pageContext, "tipo-pratica-"+intPratica.getTipoPratica()) %></strong>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-data-invio-fl") %>
</div>
<div class="col-sm-6 col-md-3">
<%
FineLavori lastFineLavori = FineLavoriServiceUtil.getLastCompleted(intPraticaId);
%>
<c:if test="<%= Validator.isNotNull(lastFineLavori) %>">
<strong><%= dateFormatDate.format(lastFineLavori.getDataFineLavori()) %></strong>
</c:if>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-tipo") %>
</div>
<div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>" >
<div class="col-sm-6 col-md-3">
<aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>">
<c:if test="<%=intPratica.isAllowedAction(AzioniPraticheUtil.ACTION_CO_PARZIALE)%>">
<aui:option label='Parziale' value="true" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/>
</c:if>
@ -241,56 +200,56 @@
<aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/>
</c:if>
</aui:select>
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-data-fine") %>
</div>
<div class="col-sm-6 col-md-3">
</div>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-data-fine") %>
</div>
<div class="col-sm-6 col-md-3">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataCollaudo" />
<liferay-util:param name="formName" value="<%= formName %>" />
<liferay-util:param name="bean" value="bean.collaudo" />
<liferay-util:param name="disabled" value="<%= String.valueOf(disabledEditing) %>" />
</liferay-util:include>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<aui:input name="normEsenteBollo" label="col-esente-bollo" disabled="<%= disabledEditing %>"/>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(collaudatore) %>">
<p>
<%= MessageFormat.format(LanguageUtil.get(pageContext, "col-dichiaraz-collaudatore"), collaudatore.getNome(), collaudatore.getCognome()) %>
</p>
</c:if>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-varianti") %>:
</div>
</div>
<div class="row container-varianti-integrazioni">
<div class="col-sm-12 col-md-12 container-varianti-integrazioni__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni">
<liferay-ui:search-container-results
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<aui:input name="normEsenteBollo" label="col-esente-bollo" disabled="<%= disabledEditing %>"/>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(collaudatore) %>">
<p>
<%= MessageFormat.format(LanguageUtil.get(pageContext, "col-dichiaraz-collaudatore"), collaudatore.getNome(), collaudatore.getCognome()) %>
</p>
</c:if>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-varianti") %>:
</div>
</div>
<div class="row container-varianti-integrazioni">
<div class="col-sm-12 col-md-12 container-varianti-integrazioni__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni">
<liferay-ui:search-container-results
results="<%= DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE}))%>"
total="<%= DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE})) %>"
/>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.DettPratica"
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.DettPratica"
modelVar="dettPraticaExtra">
<%
String tipoIntegrazione = Validator.isNotNull(dettPraticaExtra.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+dettPraticaExtra.getTipoIntegrazione()) : "";
%>
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(dettPraticaExtra.getDataEffettuazione()) ? dateFormatDate.format(dettPraticaExtra.getDataEffettuazione()) : ""%>' />
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(dettPraticaExtra.getDataEffettuazione()) ? dateFormatDate.format(dettPraticaExtra.getDataEffettuazione()) : ""%>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text>
@ -298,98 +257,98 @@
<%= tipoIntegrazione %>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
<div class="row container-varianti-fine-lavori">
<div class="col-sm-12 col-md-12 container-fine-lavori__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-fine-lavori">
<liferay-ui:search-container-results
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
<div class="row container-varianti-fine-lavori">
<div class="col-sm-12 col-md-12 container-fine-lavori__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-fine-lavori">
<liferay-ui:search-container-results
results='<%= FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>'
total='<%= FineLavoriLocalServiceUtil.countByIntPraticaId(intPraticaId) %>'
/>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.FineLavori"
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.FineLavori"
modelVar="fineLavori">
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(fineLavori.getDataFineLavori()) ? dateFormatDate.format(fineLavori.getDataFineLavori()) : ""%>' />
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(fineLavori.getDataFineLavori()) ? dateFormatDate.format(fineLavori.getDataFineLavori()) : ""%>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Fine Lavori "+(fineLavori.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
<div class="row container-varianti-collaudi">
<div class="col-sm-12 col-md-12 container-collaudi__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-collaudi-parziali">
<liferay-ui:search-container-results
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
<div class="row container-varianti-collaudi">
<div class="col-sm-12 col-md-12 container-collaudi__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-collaudi-parziali">
<liferay-ui:search-container-results
results='<%= CollaudoLocalServiceUtil.findByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>'
total='<%= CollaudoLocalServiceUtil.countByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true) %>'
/>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Collaudo"
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Collaudo"
modelVar="collaudoParziale">
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(collaudoParziale.getDataCollaudo()) ? dateFormatDate.format(collaudoParziale.getDataCollaudo()) : ""%>' />
<liferay-ui:search-container-column-text name="Data" cssClass="text-nowrap" value='<%= Validator.isNotNull(collaudoParziale.getDataCollaudo()) ? dateFormatDate.format(collaudoParziale.getDataCollaudo()) : ""%>' />
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<liferay-ui:search-container-column-text name="n-progetto" cssClass="text-nowrap">
<%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Tipo Pratica" cssClass="text-nowrap" value='<%= "Collaudo "+(collaudoParziale.getParziale() ? "Parziale" : "Totale") %>'></liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
<hr>
<div class="row altro_check">
<div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-note") %>:
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<aui:input name="noteCollaudo" label="" type="textarea" disabled="<%= disabledEditing %>"/>
</div>
</div>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
<hr>
<div class="row altro_check">
<div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-note") %>:
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<aui:input name="noteCollaudo" label="" type="textarea" disabled="<%= disabledEditing %>"/>
</div>
</div>
</div>
</liferay-ui:panel>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-allegati") %>:
</div>
<div class="col-sm-12 col-md-12 container-allegati-collaudo">
<%
String comingFrom = "page_collaudo";
%>
<aui:script use="aui-base">
<div class="row">
<div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-allegati") %>:
</div>
<div class="col-sm-12 col-md-12 container-allegati-collaudo">
<%
String comingFrom = "page_collaudo";
%>
<aui:script use="aui-base">
var allegatiEdit = false;
Liferay.on('popupReady',function(event) {
var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) {
if(event.prevVal){
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
}
}
if(event.prevVal){
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
}
}
});
modalWin.after('hide', function(event) {
if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
}
});
modalWin.after('destroy', function(event) {
@ -410,14 +369,14 @@
</aui:script>
<liferay-portlet:runtime portletName='<%=PortletKeys.ALLEGATI+"_INSTANCE_"+comingFrom %>' queryString='<%="&classPk="+collaudo.getCollaudoId()+"&className="+Collaudo.class.getName()+"&comingFrom="+comingFrom+"&disabled="+disabledEditing+"&inBO="+disabledEditing%>' ></liferay-portlet:runtime>
</div>
</div>
<liferay-portlet:runtime portletName='<%=PortletKeys.ALLEGATI+"_INSTANCE_"+comingFrom %>' queryString='<%="&classPk="+collaudo.getCollaudoId()+"&className="+Collaudo.class.getName()+"&comingFrom="+comingFrom+"&disabled="+disabledEditing+"&inBO="+disabledEditing%>' ></liferay-portlet:runtime>
</div>
</div>
</div>
</aui:form>
<c:if test="<%=openVerifyUrl %>">
<liferay-portlet:renderURL var="verifyRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:renderURL var="verifyRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_collaudo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudoId)%>" />
@ -445,13 +404,13 @@
var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) {
if(event.prevVal && verifyPopupReady){
window.location.href = "<%= refreshURL %>"
}
if(event.prevVal && verifyPopupReady){
window.location.href = "<%= refreshURL %>"
}
});
modalWin.after('hide', function(event) {
if(verifyPopupReady){
window.location.href = "<%= refreshURL %>"
window.location.href = "<%= refreshURL %>"
}
});
modalWin.after('destroy', function(event) {

Caricamento…
Annulla
Salva