Salvatore La Manna 3 anni fa
parent
commit
fb29dcbfb8
  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.model.RichiestaAccessoAtti"%>
<%@page import="it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> <%@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="java.util.Date"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@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.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.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%> <%@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.TerritorioLocalServiceUtil"%>
@ -22,131 +15,121 @@
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%> <%@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.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.regex.Pattern"%> <%@page import="java.util.regex.Pattern"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> <%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@include file="init.jsp" %> <%@include file="init.jsp" %>
<% <%
long accessoAttiId = ParamUtil.getLong(request, "accessoAttiId" , 0L); 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="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-invalido" message="Access Token non valido" />
<liferay-ui:error key="accesso-token-scaduto" message="Access Token scaduto" /> <liferay-ui:error key="accesso-token-scaduto" message="Access Token scaduto" />
</div> </div>
<c:if test="<%= accessoAttiId == 0L %>">
<c:if test="<%=accessoAttiId == 0L %>">
<liferay-portlet:actionURL name="visualizzaAtto" var="visualizzaAttoURL" /> <liferay-portlet:actionURL name="visualizzaAtto" var="visualizzaAttoURL" />
<aui:form action="<%=visualizzaAttoURL %>"> <aui:form action="<%=visualizzaAttoURL %>">
<div class="row-fluid" style="margin-top: 10px;"> <div class="row-fluid" style="margin-top: 10px;">
<div class="span12"> <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:validator name="required" />
</aui:input> </aui:input>
</div> </div>
</div> </div>
<div class="row-fluid" style="margin-top: 10px;"> <div class="row-fluid" style="margin-top: 10px">
<div class="span12"> <div class="span12">
<aui:button type="submit" value="Visualizza Atto" /> <aui:button type="submit" value="Visualizza Atto" />
</div> </div>
</div> </div>
</aui:form> </aui:form>
</c:if> </c:if>
<c:if test="<%=accessoAttiId != 0L %>"> <c:if test="<%=accessoAttiId != 0L %>">
<% <%
RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichiestaAccessoAtti(accessoAttiId); RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichiestaAccessoAtti(accessoAttiId);
%> %>
<c:if test="<%=accettoAtti.getIntPraticaId() != 0L %>"> <c:if test="<%= accettoAtti.getIntPraticaId() != 0L %>">
<%
<% long intPraticaId = accettoAtti.getIntPraticaId();
long intPraticaId = accettoAtti.getIntPraticaId(); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l); DettPratica dettPratica = null;
IntPratica intPratica = null;
DettPratica dettPratica = null; if (intPraticaId != 0) {
IntPratica intPratica = null; intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if(intPraticaId !=0l ){ if (dettPraticaId != 0) {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
if(dettPraticaId != 0l){ } else {
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPraticaId);
} else { if (dettPratica == null) {
dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPraticaId); dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(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());
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); %>
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); <liferay-ui:error key="error-download-pdf-domanda" message="error-download-pdf-domanda" />
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); <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-ui:error key="error-download-pdf-domanda" message="error-download-pdf-domanda" /> </liferay-portlet:actionURL>
<h3><%= intPratica.getTitle(true) %></h3>
<liferay-portlet:actionURL name="salvaStampaPratica" var="salvaStampaPraticaURL"> <liferay-ui:panel-container extended="true" id="outerPanelContainer">
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/> <div class="row">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_dettagli.jsp"/> <div class="col-sm-12">
</liferay-portlet:actionURL> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false"
<%-- <aui:form name="fm_salvaStampa" action="<%=salvaStampaPraticaURL %>" method="post"> --%> title="fascicolo_title_decreto_min">
<%-- <aui:button cssClass="pull-right" type="submit" value="Stampa" icon="icon-print" iconAlign="left"/> --%> <div class="container-fluid">
<%-- </aui:form> --%> <div class="row">
<div class="col-sm-6 col-md-3">
<h3><%=intPratica.getTitle(true) %></h3> <%= LanguageUtil.get(pageContext, "dp-zona-sismica") %>
</div>
<liferay-ui:panel-container extended="true" id="outerPanelContainer"> <div class="col-sm-6 col-md-3">
<div class="row"> <%= BeanPropertiesUtil.getString(territorio, "zona") %>
<div class="col-sm-12 col-md-12"> </div>
<div class="module-group"> <div class="col-sm-6 col-md-3">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_decreto_min" > <%= LanguageUtil.get(pageContext, "dp-fascia-pericolosita") %>
<div class="container-fluid"> </div>
<div class="row"> <div class="col-sm-6 col-md-3">
<div class="col-sm-6 col-md-3"> <%= BeanPropertiesUtil.getString(territorio, "fascia") %>
<%= LanguageUtil.get(pageContext, "dp-zona-sismica") %> </div>
</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") %>
</div> </div>
<div class="col-sm-6 col-md-6"> <div class="row">
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "normDpr02Dep") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong> <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") %> <%= LanguageUtil.get(pageContext, "norm-dpr02-dep") %>
</div> </div>
</c:if> </c:if>
@ -162,7 +145,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</c:if> </c:if>
</div> </div>
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dp-rispetto") %></div>
</div> </div>
</div> </div>
@ -173,7 +156,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dp-normativa") %>:</div>
</div> </div>
</div> </div>
@ -184,7 +167,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="fascicolo_header_row"></div> <div class="fascicolo_header_row"></div>
</div> </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> <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") %> <%= LanguageUtil.get(pageContext, "collaudo-statico") %>
</div> </div>
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="container-regolamento"> <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> <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> <p style="display: inline;"><%= LanguageUtil.get(pageContext, "norm-art3com3") %>:</p>
@ -221,7 +204,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</ul> </ul>
</div> </div>
</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;"> <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> <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> <p style="display: inline;"><%= LanguageUtil.get(pageContext, "norm-art3com4") %></p>
@ -235,7 +218,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_descrizione" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_descrizione" >
<div class="prog-description"> <div class="prog-description">
@ -248,12 +231,12 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <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="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="fascicolo_header_row">Ubicazione</div> <div class="fascicolo_header_row">Ubicazione</div>
</div> </div>
</div> </div>
@ -356,20 +339,18 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<% <%
String[] geolocalization = BeanPropertiesUtil.getString(dettPratica, "localizzazioneGeografica","").split(Pattern.quote("|")); String[] geolocalization = BeanPropertiesUtil.getString(dettPratica, "localizzazioneGeografica","").split(Pattern.quote("|"));
%> %>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:input name="lat" label="" type="hidden" <aui:input name="lat" label="" type="hidden"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' /> value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:input name="long" label="" type="hidden" <aui:input name="long" label="" type="hidden"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/> value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/>
</div> </div>
<aui:input type="hidden" name="geoIsEditable" value='<%= false %>' label=""/> <aui:input type="hidden" name="geoIsEditable" value='<%= false %>' label=""/>
<liferay-portlet:runtime portletName="5_WAR_trefmapitmapportlet" />
<liferay-portlet:runtime portletName="5_WAR_trefmapitmapportlet" />
</div> </div>
</div> </div>
</div> </div>
@ -380,15 +361,14 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="destinazione" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="destinazione" >
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<% <%
String label = BeanPropertiesUtil.getString(dettPratica, "destinazione"); String label = BeanPropertiesUtil.getString(dettPratica, "destinazione");
String uso = ""; String uso = "";
String title = ""; String title = "";
if(label.length() > 1){ if(label.length() > 1){
@ -409,7 +389,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_intervento" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_intervento" >
<div class="container-fluid"> <div class="container-fluid">
@ -419,11 +399,11 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<%=LanguageUtil.get(pageContext, "tc-nuova-costruzione") %> <%=LanguageUtil.get(pageContext, "tc-nuova-costruzione") %>
</div> </div>
<% <%
boolean checked = boolean checked =
BeanPropertiesUtil.getBoolean(dettPratica, "tcAdeguamentoSismico") || BeanPropertiesUtil.getBoolean(dettPratica, "tcAdeguamentoSismico") ||
BeanPropertiesUtil.getBoolean(dettPratica, "tcMiglioramentoSismico") || BeanPropertiesUtil.getBoolean(dettPratica, "tcMiglioramentoSismico") ||
BeanPropertiesUtil.getBoolean(dettPratica, "tcRiparazioneInterventoLocale"); BeanPropertiesUtil.getBoolean(dettPratica, "tcRiparazioneInterventoLocale");
%> %>
<div class="col-sm-6 col-md-6"> <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> <strong><span class='<%=checked ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong>
<%=LanguageUtil.get(pageContext, "tc-interventi-esistenti") %> <%=LanguageUtil.get(pageContext, "tc-interventi-esistenti") %>
@ -431,7 +411,6 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<li> <li>
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcAdeguamentoSismico") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong> <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") %> <%=LanguageUtil.get(pageContext, "tc-adeguamento-sismico") %>
</li> </li>
<li> <li>
<strong><span class='<%=BeanPropertiesUtil.getBoolean(dettPratica, "tcMiglioramentoSismico") ? "fa fa-check-circle-o txt-green" : "fa fa-circle-o" %>'></span></strong> <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>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_tipologia_costruttiva" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="fascicolo_title_tipologia_costruttiva" >
<div class="container-fluid"> <div class="container-fluid">
@ -504,7 +482,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <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> <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> <%=LanguageUtil.get(pageContext, "tc-altro") %></br>
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "tcAltroDescrizione") %></strong></span> <span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "tcAltroDescrizione") %></strong></span>
@ -523,17 +501,16 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12 anagrafica-soggetti"> <div class="col-sm-12 anagrafica-soggetti">
<div class="module-group"> <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="row container-soggetti__bo "> <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 emptyResultsMessage="no-soggetti-presenti">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results="<%=SoggettoLocalServiceUtil.findByIntPratica(dettPratica.getIntPraticaId())%>" results="<%=SoggettoLocalServiceUtil.findByIntPratica(dettPratica.getIntPraticaId())%>"
total="<%=SoggettoLocalServiceUtil.countByIntPratica(dettPratica.getIntPraticaId())%>" total="<%=SoggettoLocalServiceUtil.countByIntPratica(dettPratica.getIntPraticaId())%>"
/> />
<liferay-ui:search-container-row <liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.Soggetto" className="it.tref.liferay.portos.bo.model.Soggetto"
modelVar="soggetto" modelVar="soggetto"
@ -541,22 +518,18 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<% <%
boolean isSoggettoPrincipale = dettPratica.isSoggettoPrincipale(soggetto.getSoggettoId()); boolean isSoggettoPrincipale = dettPratica.isSoggettoPrincipale(soggetto.getSoggettoId());
%> %>
<liferay-portlet:renderURL portletName="<%=PortletKeys.SOGGETTI %>" var="detailsURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <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="mvcPath" value="/html/soggettipratica/edit_soggetto.jsp"/>
<liferay-portlet:param name="soggettoId" value="<%=String.valueOf(soggetto.getSoggettoId()) %>"/> <liferay-portlet:param name="soggettoId" value="<%=String.valueOf(soggetto.getSoggettoId()) %>"/>
<liferay-portlet:param name="inBO" value="true"/> <liferay-portlet:param name="inBO" value="true"/>
<liferay-portlet:param name="isEditable" value="false"/> <liferay-portlet:param name="isEditable" value="false"/>
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:search-container-column-text name="Stato" cssClass="text-center"> <liferay-ui:search-container-column-text name="Stato" cssClass="text-center">
<span class='fa fa-circle <%= soggetto.getRimosso() ? "txt-red" : "txt-green" %>'></span> <span class='fa fa-circle <%= soggetto.getRimosso() ? "txt-red" : "txt-green" %>'></span>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="principale" cssClass="text-center"> <liferay-ui:search-container-column-text name="principale" cssClass="text-center">
<span class='<%= isSoggettoPrincipale ? "fa fa-star txt-orange" : "fa fa-star-o" %>'></span> <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>
<liferay-ui:search-container-column-text name="ruolo"> <liferay-ui:search-container-column-text name="ruolo">
<%= soggetto.getFullTipologiaSoggetto() %> <%= soggetto.getFullTipologiaSoggetto() %>
</liferay-ui:search-container-column-text> </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"> <liferay-ui:search-container-column-text name="albo" cssClass="text-uppercase">
<% <%
if("albo-altro".equalsIgnoreCase(soggetto.getAlbo())){ if("albo-altro".equalsIgnoreCase(soggetto.getAlbo())){
out.print(soggetto.getAlboDescr()); out.print(soggetto.getAlboDescr());
} else { } else {
out.print(soggetto.getAlbo()); out.print(soggetto.getAlbo());
} }
%> %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Aggiunto da" > <liferay-ui:search-container-column-text name="Aggiunto da" >
<% <%
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaId()); DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaId());
if(adding != null){ if(adding != null){
%> %>
<%= adding.getFullDescription() %> <%= adding.getFullDescription() %>
<% <%
} }
%> %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Invalidato da"> <liferay-ui:search-container-column-text name="Invalidato da">
<% <%
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaIdRimozione()); DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaIdRimozione());
if(removing != null){ if(removing != null){
%> %>
<%= removing.getFullDescription() %> <%= removing.getFullDescription() %>
<% <%
} }
%> %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" /> <liferay-ui:search-iterator paginate="<%= false %>" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Dati Metrici Descrittivi" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Dati Metrici Descrittivi" >
<div class="container-fluid"> <div class="container-fluid">
@ -646,7 +612,6 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<strong><%=LanguageUtil.get(pageContext, <strong><%=LanguageUtil.get(pageContext,
"de-interrati-"+deInterrati)%></strong> "de-interrati-"+deInterrati)%></strong>
</c:if> </c:if>
</div> </div>
<div class="col-sm-6 col-md-4"> <div class="col-sm-6 col-md-4">
<%= LanguageUtil.get(pageContext, "de-superficie") %>: <%= LanguageUtil.get(pageContext, "de-superficie") %>:
@ -740,7 +705,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title='<%= LanguageUtil.get(pageContext, "dcc")%>' > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title='<%= LanguageUtil.get(pageContext, "dcc")%>' >
<div class="container-fluid"> <div class="container-fluid">
@ -750,7 +715,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
%> %>
<c:if test="<%= Validator.isNotNull(fondazioni) %>"> <c:if test="<%= Validator.isNotNull(fondazioni) %>">
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-fondazioni") %></div>
</div> </div>
</div> </div>
@ -765,12 +730,12 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</c:if> </c:if>
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-strutture-ele") %></div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12" > <div class="col-sm-12" >
<%= LanguageUtil.get(pageContext, "dcc-strutture-ele-murature") %>: <%= LanguageUtil.get(pageContext, "dcc-strutture-ele-murature") %>:
</div> </div>
</div> </div>
@ -828,7 +793,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
<div class="separator"></div> <div class="separator"></div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<%= LanguageUtil.get(pageContext, "dcc-strutture-ele-misto") %>: <%= LanguageUtil.get(pageContext, "dcc-strutture-ele-misto") %>:
</div> </div>
</div> </div>
@ -859,9 +824,8 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccStruttureEleAltroDescrizione") %></strong></span> <span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccStruttureEleAltroDescrizione") %></strong></span>
</div> </div>
</div> </div>
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-orizzontamenti") %></div>
</div> </div>
</div> </div>
@ -892,9 +856,8 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccOrizzontamentiAltroDescrizione") %></strong></span> <span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccOrizzontamentiAltroDescrizione") %></strong></span>
</div> </div>
</div> </div>
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-copertura") %></div>
</div> </div>
</div> </div>
@ -903,7 +866,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
String copertura = BeanPropertiesUtil.getString(dettPratica, "dccCopertura"); String copertura = BeanPropertiesUtil.getString(dettPratica, "dccCopertura");
%> %>
<c:if test="<%= Validator.isNotNull(copertura) %>"> <c:if test="<%= Validator.isNotNull(copertura) %>">
<div class="col-sm-12 col-md-12" > <div class="col-sm-12" >
<strong><%=LanguageUtil.get(pageContext, <strong><%=LanguageUtil.get(pageContext,
"dcc-copertura-"+BeanPropertiesUtil.getString(dettPratica, "dccCopertura"))%></strong> "dcc-copertura-"+BeanPropertiesUtil.getString(dettPratica, "dccCopertura"))%></strong>
</div> </div>
@ -942,9 +905,8 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccCoperturaAltroDesrizione") %></strong></span> <span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccCoperturaAltroDesrizione") %></strong></span>
</div> </div>
</div> </div>
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-elem-non-strut") %></div>
</div> </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> <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") %> <%= LanguageUtil.get(pageContext, "dcc-elem-non-strut-legno") %>
</div> </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> <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") %> <%= LanguageUtil.get(pageContext, "dcc-elem-non-strut-altro") %>
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccElemNonStrutAltroDescrizione") %></strong></span> <span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccElemNonStrutAltroDescrizione") %></strong></span>
</div> </div>
</div> </div>
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "dcc-opere-di-rinforzo") %></div>
</div> </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> <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") %> <%= LanguageUtil.get(pageContext, "dcc-opere-di-rinforzo-ins-rompitratta") %>
</div> </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> <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") %> <%= LanguageUtil.get(pageContext, "dcc-opere-di-rinforzo-altro") %>
<span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccOpereDiRinforzoAltroDescrizione") %></strong></span> <span style="margin-left:20px"><strong><%=BeanPropertiesUtil.getString(dettPratica, "dccOpereDiRinforzoAltroDescrizione") %></strong></span>
@ -1022,12 +983,12 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title='<%= LanguageUtil.get(pageContext, "di") %>' > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title='<%= LanguageUtil.get(pageContext, "di") %>' >
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <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 class="fascicolo_header_row"><%= LanguageUtil.get(pageContext, "de-inf") %></div>
</div> </div>
</div> </div>
@ -1110,7 +1071,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title='<%= LanguageUtil.get(pageContext, "geo") %>' > <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) %>"> <c:if test="<%=Validator.isNotNull(geoDate) %>">
<strong><%= dateFormatDate.format(geoDate) %></strong> <strong><%= dateFormatDate.format(geoDate) %></strong>
</c:if> </c:if>
</div> </div>
</div> </div>
<div class="row"> <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 class="fascicolo_header_row"><%=LanguageUtil.get(pageContext, "geo-scheda-title") %></div>
</div> </div>
</div> </div>
@ -1335,7 +1295,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group allegati-dettagli"> <div class="module-group allegati-dettagli">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Allegati Geologici" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Allegati Geologici" >
<div class="row" id="<portlet:namespace/>allegati-geologica-table"> <div class="row" id="<portlet:namespace/>allegati-geologica-table">
@ -1354,7 +1314,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group allegati-dettagli"> <div class="module-group allegati-dettagli">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Allegati Domanda" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Allegati Domanda" >
<div class="row" id="<portlet:namespace/>allegati-table"> <div class="row" id="<portlet:namespace/>allegati-table">
@ -1377,7 +1337,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
<c:if test="<%=accettoAtti.getIntPraticaId() == 0L %>"> <c:if test="<%=accettoAtti.getIntPraticaId() == 0L %>">
<h3> <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> </h3>
</c:if> </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"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@include file="/html/fascicolofe/init.jsp"%> <%@include file="/html/fascicolofe/init.jsp"%>
<liferay-ui:panel title="filters" defaultState="closed" <liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false" id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true"
persistState="true"> extended="false" persistState="true">
<div class="container-fluid" style="padding: 15px;"> <div class="container-fluid" style="padding: 15px">
<div class="row"> <div class="row">
<div class="col-xs-12 col-md-3"> <div class="col-xs-12 col-md-3">
<aui:input type="text" name="numeroProgetto" label="Numero Progetto" /> <aui:input type="text" name="numeroProgetto" label="Numero Progetto" />
@ -14,14 +14,16 @@
<div class="col-xs-12 col-md-3"> <div class="col-xs-12 col-md-3">
<aui:select name="tipoProcedura" label="Tipo Pratica"> <aui:select name="tipoProcedura" label="Tipo Pratica">
<aui:option value="-1">Seleziona il tipo di pratica</aui:option> <aui:option value="-1">Seleziona il tipo di pratica</aui:option>
<% <%
for (Entry<String, String> procedura : IntPraticaLocalServiceUtil.getTipiProcedure() for (Entry<String, String> procedura : IntPraticaLocalServiceUtil.getTipiProcedure()
.entrySet()) { .entrySet()) {
String tipo = procedura.getKey(); String tipo = procedura.getKey();
String label = procedura.getValue(); String label = procedura.getValue();
String nomeProcedura = LanguageUtil.get(pageContext, "label_procedura_"+tipo) + ") " + label; String nomeProcedura = LanguageUtil.get(pageContext, "label_procedura_"+tipo) + ") "
if(nomeProcedura.length() > 90) + label;
if (nomeProcedura.length() > 90) {
nomeProcedura = nomeProcedura.substring(0, 90) + "..."; nomeProcedura = nomeProcedura.substring(0, 90) + "...";
}
%> %>
<aui:option value="<%= tipo %>"><%= nomeProcedura %></aui:option> <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 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="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%> <%@page import="it.mwg.sismica.bo.shared.util.AzioniPraticheUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%> <%@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="it.tref.liferay.portos.bo.model.FineLavori"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%> <%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@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.service.CollaudoLocalServiceUtil"%> <%@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.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.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.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" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
String backURL = ParamUtil.getString(request, "backURL"); String backURL = ParamUtil.getString(request, "backURL");
long collaudoId = ParamUtil.getLong(request, "collaudoId",0l); long collaudoId = ParamUtil.getLong(request, "collaudoId", 0);
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId); Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId);
if (Validator.isNull(collaudo)) {
if( Validator.isNull(collaudo) ){ long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId");
long intPraticaIdParam = ParamUtil.getLong(request, "intPraticaId"); collaudo = CollaudoLocalServiceUtil.getLastEditable(intPraticaIdParam);
collaudo = CollaudoLocalServiceUtil.getLastEditable(intPraticaIdParam); collaudoId = collaudo.getCollaudoId();
collaudoId = collaudo.getCollaudoId(); }
} boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl");
boolean showHistory = ParamUtil.getBoolean(request, "showHistory", true);
boolean openVerifyUrl = ParamUtil.getBoolean(request, "openVerifyUrl"); long intPraticaId = collaudo.getIntPraticaId();
boolean showHistory = ParamUtil.getBoolean(request, "showHistory", true); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
long intPraticaId = collaudo.getIntPraticaId(); if (dettPratica == null) {
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); }
if(dettPratica == null){ Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
} Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto collaudatore = null;
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); List<Soggetto> collaudatori = SoggettoLocalServiceUtil
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); .findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCollaudo());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); if (!collaudatori.isEmpty()) {
collaudatore = collaudatori.get(0);
Soggetto collaudatore = null; }
List<Soggetto> collaudatori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, dettPratica.getCodiceFiscaleDelegatoCollaudo()); String formName = "fmCollaudo";
if(!collaudatori.isEmpty()){ boolean disabledEditing = collaudo.getCompletata();
collaudatore = collaudatori.get(0); request.setAttribute("bean.collaudo", collaudo);
}
String formName = "fmCollaudo";
boolean disabledEditing = collaudo.getCompletata();
request.setAttribute("bean.collaudo", collaudo);
%> %>
<liferay-portlet:actionURL name="saveCollaudo" var="saveCollaudoURL" > <liferay-portlet:actionURL name="saveCollaudo" var="saveCollaudoURL" >
<liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudo.getCollaudoId()) %>"/> <liferay-portlet:param name="collaudoId" value="<%= String.valueOf(collaudo.getCollaudoId()) %>" />
<liferay-portlet:param name="backURL" value="<%=backURL %>"/> <liferay-portlet:param name="backURL" value="<%= backURL %>" />
<liferay-portlet:param name="successURL" value="<%=currentURL %>"/> <liferay-portlet:param name="successURL" value="<%= currentURL %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<aui:form name="<%= formName %>" onSubmit="preventDefault();" action="<%= saveCollaudoURL %>"> <aui:form name="<%= formName %>" onSubmit="preventDefault();" action="<%= saveCollaudoURL %>">
<aui:model-context bean="<%= collaudo %>" model="<%= Collaudo.class %>" />
<aui:model-context bean="<%= collaudo %>" model="<%=Collaudo.class %>"></aui:model-context>
<aui:input type="hidden" name="bozza" /> <aui:input type="hidden" name="bozza" />
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <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; String label = StringPool.BLANK;
if(disabledEditing){ if (disabledEditing) {
label = "view-collaudo"; label = "view-collaudo";
}else if(Validator.isNull(collaudo.getCollaudoId())){ } else if (Validator.isNull(collaudo.getCollaudoId())) {
label = "new-collaudo"; label = "new-collaudo";
} else { } else {
label = "edit-collaudo"; label = "edit-collaudo";
} }
%> %>
<liferay-ui:header <liferay-ui:header title='<%= LanguageUtil.get(pageContext, label) + " #" + dettPratica.getTitle() %>'
title='<%= LanguageUtil.get(pageContext, label)+" #"+dettPratica.getTitle() %>' localizeTitle="false" backURL="<%= backURL %>" />
localizeTitle="false"
backURL="<%= backURL %>"
/>
</div> </div>
<c:if test="<%= !disabledEditing %>"> <c:if test="<%= !disabledEditing %>">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3">
<div class="pull-right" > <div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar">
<liferay-ui:icon <liferay-ui:icon iconCssClass="fa fa-save" message="salva-bozza"
iconCssClass="fa fa-save" url="javascript:saveCollaudo(true);" linkCssClass="btn" />
message="salva-bozza" <liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-conferma"
url="javascript:saveCollaudo(true);" url="javascript:saveCollaudo(false);" linkCssClass="btn btn-primary" />
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> </liferay-ui:icon-menu>
</div> </div>
</div> </div>
</c:if> </c:if>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="module-group"> <div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="col"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="col">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3"><%= LanguageUtil.get(pageContext, "col-prov") %></div>
<%= LanguageUtil.get(pageContext, "col-prov") %> <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>
<div class="col-sm-6 col-md-3"> <div class="row">
<strong><%=BeanPropertiesUtil.getString(provincia, "provincia")%></strong> <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>
<div class="col-sm-6 col-md-3"> <div class="row">
<%= LanguageUtil.get(pageContext, "col-comune") %> <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>
<div class="col-sm-6 col-md-3"> <hr>
<strong><%=BeanPropertiesUtil.getString(comune, "denominazione")%></strong> <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> <hr>
<div class="row"> <div class="row">
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3"><%= LanguageUtil.get(pageContext, "col-commit") %></div>
<%= LanguageUtil.get(pageContext, "col-sismica") %> <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>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(territorio, "zona") %></strong> <%= LanguageUtil.get(pageContext, "col-collaudatore") %>
</div> </div>
<div class="col-sm-6 col-md-3"> <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>
<div class="row">
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<strong><%= BeanPropertiesUtil.getString(territorio, "fascia") %></strong> <%= LanguageUtil.get(pageContext, "col-tipo-dom") %>
</div> </div>
</div> <div class="col-sm-6 col-md-3">
<div class="row"> <strong><%= LanguageUtil.get(pageContext, "tipo-pratica-"+intPratica.getTipoPratica()) %></strong>
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-range") %>
</div> </div>
<div class="col-sm-6 col-md-3"> <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>
</div> <div class="col-sm-6 col-md-3">
<hr> <%
<div class="row"> FineLavori lastFineLavori = FineLavoriServiceUtil.getLastCompleted(intPraticaId);
<div class="col-sm-6 col-md-3"> %>
<%= LanguageUtil.get(pageContext, "col-desc-interv") %> <c:if test="<%= Validator.isNotNull(lastFineLavori) %>">
<strong><%= dateFormatDate.format(lastFineLavori.getDataFineLavori()) %></strong>
</c:if>
</div> </div>
<div class="col-sm-6 col-md-9"> </div>
<strong><%=BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %></strong> <hr>
<div class="row">
<div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-tipo") %>
</div> </div>
</div> <div class="col-sm-6 col-md-3">
<hr> <aui:select label="" name="tipoCollaudo" disabled="<%= disabledEditing %>">
<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 %>" >
<c:if test="<%=intPratica.isAllowedAction(AzioniPraticheUtil.ACTION_CO_PARZIALE)%>"> <c:if test="<%=intPratica.isAllowedAction(AzioniPraticheUtil.ACTION_CO_PARZIALE)%>">
<aui:option label='Parziale' value="true" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/> <aui:option label='Parziale' value="true" selected="<%= Validator.isNotNull(collaudo) && collaudo.getParziale() %>"/>
</c:if> </c:if>
@ -241,56 +200,56 @@
<aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/> <aui:option label='Totale' value="false" selected="<%= Validator.isNotNull(collaudo) && !collaudo.getParziale() %>"/>
</c:if> </c:if>
</aui:select> </aui:select>
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<%= LanguageUtil.get(pageContext, "col-data-fine") %> <%= LanguageUtil.get(pageContext, "col-data-fine") %>
</div> </div>
<div class="col-sm-6 col-md-3"> <div class="col-sm-6 col-md-3">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataCollaudo" /> <liferay-util:param name="field" value="dataCollaudo" />
<liferay-util:param name="formName" value="<%= formName %>" /> <liferay-util:param name="formName" value="<%= formName %>" />
<liferay-util:param name="bean" value="bean.collaudo" /> <liferay-util:param name="bean" value="bean.collaudo" />
<liferay-util:param name="disabled" value="<%= String.valueOf(disabledEditing) %>" /> <liferay-util:param name="disabled" value="<%= String.valueOf(disabledEditing) %>" />
</liferay-util:include> </liferay-util:include>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<aui:input name="normEsenteBollo" label="col-esente-bollo" disabled="<%= disabledEditing %>"/> <aui:input name="normEsenteBollo" label="col-esente-bollo" disabled="<%= disabledEditing %>"/>
</div> </div>
</div> </div>
<hr> <hr>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<c:if test="<%= Validator.isNotNull(collaudatore) %>"> <c:if test="<%= Validator.isNotNull(collaudatore) %>">
<p> <p>
<%= MessageFormat.format(LanguageUtil.get(pageContext, "col-dichiaraz-collaudatore"), collaudatore.getNome(), collaudatore.getCognome()) %> <%= MessageFormat.format(LanguageUtil.get(pageContext, "col-dichiaraz-collaudatore"), collaudatore.getNome(), collaudatore.getCognome()) %>
</p> </p>
</c:if> </c:if>
</div> </div>
</div> </div>
<hr> <hr>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-varianti") %>: <%= LanguageUtil.get(pageContext, "col-varianti") %>:
</div> </div>
</div> </div>
<div class="row container-varianti-integrazioni"> <div class="row container-varianti-integrazioni">
<div class="col-sm-12 col-md-12 container-varianti-integrazioni__dettagli"> <div class="col-sm-12 col-md-12 container-varianti-integrazioni__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni"> <liferay-ui:search-container emptyResultsMessage="no-varianti-integrazioni">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results="<%= DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE}))%>" 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})) %>" 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"> modelVar="dettPraticaExtra">
<% <%
String tipoIntegrazione = Validator.isNotNull(dettPraticaExtra.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+dettPraticaExtra.getTipoIntegrazione()) : ""; 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) %> <%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
@ -298,98 +257,98 @@
<%= tipoIntegrazione %> <%= tipoIntegrazione %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
<div class="row container-varianti-fine-lavori"> <div class="row container-varianti-fine-lavori">
<div class="col-sm-12 col-md-12 container-fine-lavori__dettagli"> <div class="col-sm-12 col-md-12 container-fine-lavori__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-fine-lavori"> <liferay-ui:search-container emptyResultsMessage="no-fine-lavori">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results='<%= FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>' results='<%= FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>'
total='<%= FineLavoriLocalServiceUtil.countByIntPraticaId(intPraticaId) %>' 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"> 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) %> <%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text> </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-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-container-row>
<liferay-ui:search-iterator paginate="false" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
<div class="row container-varianti-collaudi"> <div class="row container-varianti-collaudi">
<div class="col-sm-12 col-md-12 container-collaudi__dettagli"> <div class="col-sm-12 col-md-12 container-collaudi__dettagli">
<liferay-ui:search-container emptyResultsMessage="no-collaudi-parziali"> <liferay-ui:search-container emptyResultsMessage="no-collaudi-parziali">
<liferay-ui:search-container-results <liferay-ui:search-container-results
results='<%= CollaudoLocalServiceUtil.findByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>' results='<%= CollaudoLocalServiceUtil.findByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>'
total='<%= CollaudoLocalServiceUtil.countByIntPraticaId_Parziale_leCollaudoId(collaudoId, intPraticaId, true) %>' 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"> 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) %> <%= intPratica.getTitle(locale,true) %>
</liferay-ui:search-container-column-text> </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-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-container-row>
<liferay-ui:search-iterator paginate="false" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
<hr> <hr>
<div class="row altro_check"> <div class="row altro_check">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-note") %>: <%= LanguageUtil.get(pageContext, "col-note") %>:
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<aui:input name="noteCollaudo" label="" type="textarea" disabled="<%= disabledEditing %>"/> <aui:input name="noteCollaudo" label="" type="textarea" disabled="<%= disabledEditing %>"/>
</div> </div>
</div> </div>
</div> </div>
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
</div> </div>
</div> </div>
<hr> <hr>
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
<%= LanguageUtil.get(pageContext, "col-allegati") %>: <%= LanguageUtil.get(pageContext, "col-allegati") %>:
</div> </div>
<div class="col-sm-12 col-md-12 container-allegati-collaudo"> <div class="col-sm-12 col-md-12 container-allegati-collaudo">
<% <%
String comingFrom = "page_collaudo"; String comingFrom = "page_collaudo";
%> %>
<aui:script use="aui-base"> <aui:script use="aui-base">
var allegatiEdit = false; var allegatiEdit = false;
Liferay.on('popupReady',function(event) { Liferay.on('popupReady',function(event) {
var modalName = event._event.details[0].windowName; var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName); var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) { modalWin.after('visibleChange', function(event) {
if(event.prevVal){ if(event.prevVal){
if(allegatiEdit){ if(allegatiEdit){
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_"); Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_<%=comingFrom%>_");
} }
} }
}); });
modalWin.after('hide', function(event) { modalWin.after('hide', function(event) {
if(allegatiEdit){ 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) { modalWin.after('destroy', function(event) {
@ -410,14 +369,14 @@
</aui:script> </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> <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> </div>
</div> </div>
</aui:form> </aui:form>
<c:if test="<%=openVerifyUrl %>"> <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="mvcPath" value="/html/fascicolofe/verify_collaudo.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" />
<liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudoId)%>" /> <liferay-portlet:param name="collaudoId" value="<%=String.valueOf(collaudoId)%>" />
@ -445,13 +404,13 @@
var modalWin = Liferay.Util.Window.getById(modalName); var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) { modalWin.after('visibleChange', function(event) {
if(event.prevVal && verifyPopupReady){ if(event.prevVal && verifyPopupReady){
window.location.href = "<%= refreshURL %>" window.location.href = "<%= refreshURL %>"
} }
}); });
modalWin.after('hide', function(event) { modalWin.after('hide', function(event) {
if(verifyPopupReady){ if(verifyPopupReady){
window.location.href = "<%= refreshURL %>" window.location.href = "<%= refreshURL %>"
} }
}); });
modalWin.after('destroy', function(event) { modalWin.after('destroy', function(event) {

Caricamento…
Annulla
Salva