|
|
@ -1,4 +1,7 @@ |
|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
|
|
|
|
|
|
<%@page import="it.tref.liferay.portos.bo.shared.util.SessionUtil"%> |
|
|
|
|
|
|
|
<%@page import="java.util.HashMap"%> |
|
|
|
|
|
|
|
<%@page import="java.util.Map"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil"%> |
|
|
@ -30,102 +33,110 @@ |
|
|
|
<%@page import="it.tref.liferay.portos.bo.service.persistence.SoggettoUtil"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.service.persistence.SoggettoUtil"%> |
|
|
|
|
|
|
|
|
|
|
|
<%@page import="java.util.ArrayList"%> |
|
|
|
<%@page import="java.util.ArrayList"%> |
|
|
|
<%@ include file="/html/soggettipratica/init.jsp" %> |
|
|
|
<%@ include file="/html/soggettipratica/init.jsp"%> |
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
String comingFrom = ParamUtil.getString(request,"comingFrom", |
|
|
|
String comingFrom = ParamUtil.getString( |
|
|
|
GetterUtil.getString( |
|
|
|
request, |
|
|
|
PortalUtil.getOriginalServletRequest(request).getParameter("comingFrom"), |
|
|
|
"comingFrom", |
|
|
|
"page_allegati") |
|
|
|
GetterUtil.getString(PortalUtil.getOriginalServletRequest(request).getParameter("comingFrom"), "page_allegati") |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
long classPk = ParamUtil.getLong(request, "classPk"); |
|
|
|
|
|
|
|
String className = ParamUtil.getString(request, "className"); |
|
|
|
|
|
|
|
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
long classPk = ParamUtil.getLong(request, "classPk"); |
|
|
|
|
|
|
|
String className = ParamUtil.getString(request, "className"); |
|
|
|
|
|
|
|
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); |
|
|
|
|
|
|
|
|
|
|
|
if(FineLavori.class.getName().equalsIgnoreCase(className)){ |
|
|
|
if (FineLavori.class.getName().equalsIgnoreCase(className)) { |
|
|
|
FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(classPk); |
|
|
|
FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(classPk); |
|
|
|
intPraticaId = fineLavori.getIntPraticaId(); |
|
|
|
intPraticaId = fineLavori.getIntPraticaId(); |
|
|
|
} else if(Collaudo.class.getName().equalsIgnoreCase(className)){ |
|
|
|
} else if (Collaudo.class.getName().equalsIgnoreCase(className)) { |
|
|
|
Collaudo collaudo = CollaudoServiceUtil.getCollaudo(classPk); |
|
|
|
Collaudo collaudo = CollaudoServiceUtil.getCollaudo(classPk); |
|
|
|
intPraticaId = collaudo.getIntPraticaId(); |
|
|
|
intPraticaId = collaudo.getIntPraticaId(); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica"); |
|
|
|
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica"); |
|
|
|
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); |
|
|
|
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); |
|
|
|
if(dettPratica==null){ |
|
|
|
if (dettPratica == null) { |
|
|
|
long dettPraticaIdParam = ParamUtil.getLong(request, "classPk"); |
|
|
|
long dettPraticaIdParam = ParamUtil.getLong(request, "classPk"); |
|
|
|
if(dettPraticaIdParam==0){ |
|
|
|
if (dettPraticaIdParam == 0) { |
|
|
|
dettPraticaIdParam = GetterUtil.getLong( httpServletRequest.getParameter("classPk")); |
|
|
|
dettPraticaIdParam = GetterUtil.getLong(httpServletRequest.getParameter("classPk")); |
|
|
|
} |
|
|
|
} |
|
|
|
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaIdParam); |
|
|
|
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaIdParam); |
|
|
|
} |
|
|
|
} |
|
|
|
if(dettPratica == null){ |
|
|
|
if (dettPratica == null) { |
|
|
|
dettPratica = DettPraticaServiceUtil.getDettPratica(classPk); |
|
|
|
dettPratica = DettPraticaServiceUtil.getDettPratica(classPk); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
request.setAttribute("bean.dettPratica",dettPratica); |
|
|
|
request.setAttribute("bean.dettPratica", dettPratica); |
|
|
|
classPk = dettPratica.getDettPraticaId(); |
|
|
|
classPk = dettPratica.getDettPraticaId(); |
|
|
|
intPraticaId = dettPratica.getIntPraticaId(); |
|
|
|
intPraticaId = dettPratica.getIntPraticaId(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, String> cfNome = new HashMap<String, String>(); |
|
|
|
|
|
|
|
for (Soggetto soggetto : SoggettoLocalServiceUtil.findByIntPratica(intPraticaId)) { |
|
|
|
boolean inBO = ParamUtil.getBoolean(request,"inBO",false); |
|
|
|
cfNome.put(soggetto.getCodiceFiscale(), soggetto.getNome() + StringPool.SPACE + soggetto.getCognome()); |
|
|
|
boolean disabled = ParamUtil.getBoolean(request,"disabled"); |
|
|
|
} |
|
|
|
|
|
|
|
Map<Long, DettPratica> dettPraticas = new HashMap<Long, DettPratica>(); |
|
|
|
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); |
|
|
|
|
|
|
|
Soggetto soggettoDelegato = null; |
|
|
|
boolean inBO = ParamUtil.getBoolean(request, "inBO", false); |
|
|
|
|
|
|
|
boolean disabled = ParamUtil.getBoolean(request, "disabled"); |
|
|
|
boolean disabledInput = true; |
|
|
|
|
|
|
|
boolean canSignGeoDocs = false; |
|
|
|
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); |
|
|
|
if(Validator.isNotNull(request.getParameter("disabled"))){ |
|
|
|
Soggetto soggettoDelegato = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean disabledInput = true; |
|
|
|
|
|
|
|
boolean canSignGeoDocs = false; |
|
|
|
|
|
|
|
if (Validator.isNotNull(request.getParameter("disabled"))) { |
|
|
|
disabledInput = disabled; |
|
|
|
disabledInput = disabled; |
|
|
|
} else if("page_allegati".equalsIgnoreCase(comingFrom)){ |
|
|
|
} else if ("page_allegati".equalsIgnoreCase(comingFrom)) { |
|
|
|
disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),classPk) |
|
|
|
Boolean hasDelegaCompilazioneDomanda = (Boolean) SessionUtil.getDettPraticaObject(request, classPk, "hasDelegaCompilazioneDomanda"); |
|
|
|
|
|
|
|
if (null == hasDelegaCompilazioneDomanda) { |
|
|
|
|
|
|
|
hasDelegaCompilazioneDomanda = DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),classPk); |
|
|
|
|
|
|
|
SessionUtil.setDettPraticaObject(request, classPk, "hasDelegaCompilazioneDomanda", hasDelegaCompilazioneDomanda); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
disabledInput = !hasDelegaCompilazioneDomanda |
|
|
|
&& !DelegheUtil.hasDelegaFirmaAllegati(user.getUserId(),classPk); |
|
|
|
&& !DelegheUtil.hasDelegaFirmaAllegati(user.getUserId(),classPk); |
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(classPk); |
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(classPk); |
|
|
|
} else if ("page_geologica".equalsIgnoreCase(comingFrom)) { |
|
|
|
} else if ("page_geologica".equalsIgnoreCase(comingFrom)) { |
|
|
|
disabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),classPk); |
|
|
|
disabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),classPk); |
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneSezioneGeologica(classPk); |
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneSezioneGeologica(classPk); |
|
|
|
canSignGeoDocs = true; |
|
|
|
canSignGeoDocs = true; |
|
|
|
} else if ("page_fine_lavori".equalsIgnoreCase(comingFrom)) { |
|
|
|
} else if ("page_fine_lavori".equalsIgnoreCase(comingFrom)) { |
|
|
|
disabledInput = disabled; |
|
|
|
disabledInput = disabled; |
|
|
|
} else if ("page_collaudo".equalsIgnoreCase(comingFrom)) { |
|
|
|
} else if ("page_collaudo".equalsIgnoreCase(comingFrom)) { |
|
|
|
disabledInput = disabled; |
|
|
|
disabledInput = disabled; |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
<c:if test="<%= DettPratica.class.getName().equalsIgnoreCase(className) %>"> |
|
|
|
<c:if test="<%= DettPratica.class.getName().equals(className) %>"> |
|
|
|
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%=application %>"> |
|
|
|
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%=application%>"> |
|
|
|
<liferay-util:param name="disabledInput" value="<%=String.valueOf(disabledInput) %>"/> |
|
|
|
<liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" /> |
|
|
|
<c:if test="<%= soggettoDelegato!=null %>"> |
|
|
|
<c:if test="<%=soggettoDelegato!=null%>"> |
|
|
|
<liferay-util:param name="soggettoId" value="<%=String.valueOf(soggettoDelegato.getSoggettoId()) %>"/> |
|
|
|
<liferay-util:param name="soggettoId" value="<%= String.valueOf(soggettoDelegato.getSoggettoId()) %>" /> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</liferay-util:include> |
|
|
|
</liferay-util:include> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<liferay-portlet:renderURL var="addAllegato" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> |
|
|
|
<liferay-portlet:renderURL var="addAllegato" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> |
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/allegatipratica/edit_allegato.jsp"/> |
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/allegatipratica/edit_allegato.jsp" /> |
|
|
|
<liferay-portlet:param name="backURL" value="<%=currentURL %>"/> |
|
|
|
<liferay-portlet:param name="backURL" value="<%= currentURL %>" /> |
|
|
|
<liferay-portlet:param name="classPk" value="<%=String.valueOf(classPk) %>"/> |
|
|
|
<liferay-portlet:param name="classPk" value="<%= String.valueOf(classPk) %>" /> |
|
|
|
<liferay-portlet:param name="className" value="<%=className %>"/> |
|
|
|
<liferay-portlet:param name="className" value="<%= className %>" /> |
|
|
|
<liferay-portlet:param name="comingFrom" value="<%=comingFrom %>"/> |
|
|
|
<liferay-portlet:param name="comingFrom" value="<%= comingFrom %>" /> |
|
|
|
<liferay-portlet:param name="inBO" value="<%=String.valueOf(inBO) %>"/> |
|
|
|
<liferay-portlet:param name="inBO" value="<%= String.valueOf(inBO) %>" /> |
|
|
|
</liferay-portlet:renderURL> |
|
|
|
</liferay-portlet:renderURL> |
|
|
|
<% |
|
|
|
<% |
|
|
|
String refresh="Liferay.fire('allegati-"+comingFrom+"-open');Liferay.Portlet.refresh('#p_p_id"+renderResponse.getNamespace()+"');"; |
|
|
|
String refresh = "Liferay.fire('allegati-" + comingFrom + "-open');Liferay.Portlet.refresh('#p_p_id" |
|
|
|
|
|
|
|
+ renderResponse.getNamespace() + "');"; |
|
|
|
%> |
|
|
|
%> |
|
|
|
<liferay-portlet:resourceURL var="downloadAllURL" id="downloadAllDocPratica"> |
|
|
|
<liferay-portlet:resourceURL var="downloadAllURL" id="downloadAllDocPratica"> |
|
|
|
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> |
|
|
|
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> |
|
|
|
<liferay-portlet:param name="classPk" value="<%= String.valueOf(classPk) %>" /> |
|
|
|
<liferay-portlet:param name="classPk" value="<%= String.valueOf(classPk) %>" /> |
|
|
|
<liferay-portlet:param name="comingFrom" value="<%= comingFrom %>" /> |
|
|
|
<liferay-portlet:param name="comingFrom" value="<%= comingFrom %>" /> |
|
|
|
</liferay-portlet:resourceURL> |
|
|
|
</liferay-portlet:resourceURL> |
|
|
|
|
|
|
|
|
|
|
|
<div class="navbar-container header_allegati_table"> |
|
|
|
<div class="navbar-container header_allegati_table"> |
|
|
|
<c:if test="<%=!inBO%>"> |
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<c:choose> |
|
|
|
<c:choose> |
|
|
|
<c:when test='<%=comingFrom.equals("page_geologica") %>'> |
|
|
|
<c:when test='<%= comingFrom.equals("page_geologica") %>'> |
|
|
|
<h3 class="title-table">Allegati Geologici</h3> |
|
|
|
<h3 class="title-table">Allegati Geologici</h3> |
|
|
|
</c:when> |
|
|
|
</c:when> |
|
|
|
<c:otherwise> |
|
|
|
<c:otherwise> |
|
|
@ -134,47 +145,42 @@ |
|
|
|
</c:choose> |
|
|
|
</c:choose> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<div class="container_btn_all_allegati padding_right_bottom"> |
|
|
|
<div class="container_btn_all_allegati padding_right_bottom"> |
|
|
|
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > |
|
|
|
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" |
|
|
|
<c:if test="<%=!inBO%>"> |
|
|
|
cssClass="inline_toolbar"> |
|
|
|
|
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<c:if test="<%= !disabledInput %>"> |
|
|
|
<c:if test="<%= !disabledInput %>"> |
|
|
|
<aui:button useDialog="true" value="add-allegato" id='<%=renderResponse.getNamespace()+"add-allegato"%>' icon="fa fa-plus" href="<%=addAllegato %>" cssClass="btn btn-primary btn-action"/> |
|
|
|
<aui:button useDialog="true" value="add-allegato" id='<%= renderResponse.getNamespace() + "add-allegato" %>' |
|
|
|
|
|
|
|
icon="fa fa-plus" href="<%= addAllegato %>" cssClass="btn btn-primary btn-action" /> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
<aui:button value="Aggiorna Dati" id='<%= renderResponse.getNamespace() + "aggiorna-allegato" %>' |
|
|
|
<aui:button value="Aggiorna Dati" id='<%=renderResponse.getNamespace()+"aggiorna-allegato"%>' icon="fa fa-refresh" type="button" |
|
|
|
icon="fa fa-refresh" type="button" onClick="<%= refresh %>" cssClass="btn btn-primary btn-action" /> |
|
|
|
onClick="<%=refresh%>" cssClass="btn btn-primary btn-action"/> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
<span class="tooltip-info" title="Download Allegati"> <aui:button |
|
|
|
|
|
|
|
id='<%= renderResponse.getNamespace() + "download_all" %>' icon="fa fa-download" |
|
|
|
<span class="tooltip-info" title="Download Allegati"> |
|
|
|
cssClass="btn btn-primary btn-action" href="<%= downloadAllURL %>" /> |
|
|
|
<aui:button id='<%=renderResponse.getNamespace()+"download_all"%>' |
|
|
|
|
|
|
|
icon="fa fa-download" cssClass="btn btn-primary btn-action" |
|
|
|
|
|
|
|
href="<%= downloadAllURL %>" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
|
|
</liferay-ui:icon-menu> |
|
|
|
</liferay-ui:icon-menu> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class='separator <%= inBO ? "hidden" : "" %>'></div> |
|
|
|
<div class='separator <%= inBO ? "hidden" : "" %>'></div> |
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
List<String> tipologiaAllegati = new ArrayList<String>(); |
|
|
|
List<String> tipologiaAllegati = new ArrayList<String>(); |
|
|
|
if("page_geologica".equals(comingFrom)){ |
|
|
|
if ("page_geologica".equals(comingFrom)) { |
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocGeologo(); |
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocGeologo(); |
|
|
|
}else if("page_allegati".equals(comingFrom)){ |
|
|
|
}else if ("page_allegati".equals(comingFrom)) { |
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); |
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); |
|
|
|
}else if("page_fine_lavori".equals(comingFrom)){ |
|
|
|
}else if ("page_fine_lavori".equals(comingFrom)) { |
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavori(); |
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavori(); |
|
|
|
}else if("page_collaudo".equals(comingFrom)){ |
|
|
|
}else if ("page_collaudo".equals(comingFrom)) { |
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocCollaudo(); |
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocCollaudo(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
<div class="container-fluid clearfix " id="<portlet:namespace/>allegati-table"> |
|
|
|
<div class="container-fluid clearfix " id="<portlet:namespace/>allegati-table"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 asseverazioni allegati_table"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 asseverazioni allegati_table"> |
|
|
|
<c:if test="<%=!inBO %>"> |
|
|
|
<c:if test="<%=!inBO%>"> |
|
|
|
<div class='row asseverazioni-header' > |
|
|
|
<div class='row asseverazioni-header'> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 asserazioni-header-title"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 asserazioni-header-title"> |
|
|
|
<div class='row asseverazion-header-row' style="display: flex; align-items: center"> |
|
|
|
<div class='row asseverazion-header-row' style="display: flex; align-items: center"> |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 txt-bold text-uppercase">Descrizione</div> |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 txt-bold text-uppercase">Descrizione</div> |
|
|
@ -182,7 +188,7 @@ |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 txt-bold text-uppercase">Rimosso da</div> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 txt-bold text-uppercase">Rimosso da</div> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 txt-bold text-center"> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 txt-bold text-center"> |
|
|
|
<span class="text-uppercase asseverazion-header-top-row">Firme</span> |
|
|
|
<span class="text-uppercase asseverazion-header-top-row">Firme</span> |
|
|
|
<div class='row' > |
|
|
|
<div class='row'> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">Presenti</div> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">Presenti</div> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">Le tue firme</div> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">Le tue firme</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -192,29 +198,19 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%=inBO %>"> |
|
|
|
<c:if test="<%=inBO%>"> |
|
|
|
<c:if test='<%=!"page_geologica".equals(comingFrom) %>'> |
|
|
|
<c:if test='<%= !"page_geologica".equals(comingFrom) %>'> |
|
|
|
<div class='row asseverazioni-header' > |
|
|
|
<div class='row asseverazioni-header'> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">Descrizione</div> |
|
|
|
Descrizione |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 asserazioni-header-title">Firme presenti</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 asserazioni-header-title"> |
|
|
|
|
|
|
|
Firme presenti |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">Azioni</div> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">Azioni</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test='<%="page_geologica".equals(comingFrom) %>'> |
|
|
|
<c:if test='<%=" page_geologica".equals(comingFrom) %>'> |
|
|
|
<div class='row asseverazioni-header' > |
|
|
|
<div class='row asseverazioni-header'> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">Descrizione</div> |
|
|
|
Descrizione |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-header-title">Provenienza</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-header-title">Firme presenti</div> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-header-title"> |
|
|
|
|
|
|
|
Provenienza |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-header-title"> |
|
|
|
|
|
|
|
Firme presenti |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">Azioni</div> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">Azioni</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
@ -222,141 +218,126 @@ |
|
|
|
|
|
|
|
|
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
for(String codiceDoc:tipologiaAllegati){ |
|
|
|
for (String codiceDoc:tipologiaAllegati) { |
|
|
|
List<DocPratica> docPraticas = new ArrayList<DocPratica>(); |
|
|
|
List<DocPratica> docPraticas = new ArrayList<DocPratica>(); |
|
|
|
|
|
|
|
|
|
|
|
if(FineLavori.class.getName().equalsIgnoreCase(className) || Collaudo.class.getName().equalsIgnoreCase(className)){ |
|
|
|
if(FineLavori.class.getName().equals(className) || Collaudo.class.getName().equals(className)) { |
|
|
|
docPraticas = DocPraticaServiceUtil.findByClassPk_Tipologia(classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); |
|
|
|
docPraticas = DocPraticaServiceUtil.findByClassPk_Tipologia(classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
docPraticas = DocPraticaServiceUtil.findByIntPratica_ClassPk_Tipologia(intPratica.getIntPraticaId(), classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); |
|
|
|
docPraticas = DocPraticaServiceUtil.findByIntPratica_ClassPk_Tipologia(intPraticaId, classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
<div class="allegati_wrapper row"> |
|
|
|
<div class="allegati_wrapper row"> |
|
|
|
<span class='num_allegati <%= docPraticas.size()>0 ? "green" : "orange" %>'><%=docPraticas.size()%></span> |
|
|
|
<span class='num_allegati <%=docPraticas.size()>0 ? "green" : "orange"%>'><%=docPraticas.size()%></span> |
|
|
|
<liferay-ui:panel extended="false" defaultState="close" collapsible="true" title='<%="label-documenti-tipologia-"+codiceDoc %>' id='<%=codiceDoc+"_panel_allegati_"+comingFrom %>' persistState="true"> |
|
|
|
<liferay-ui:panel extended="false" defaultState="close" collapsible="true" |
|
|
|
|
|
|
|
title='<%="label-documenti-tipologia-"+codiceDoc%>' id='<%=codiceDoc+"_panel_allegati_"+comingFrom%>' |
|
|
|
|
|
|
|
persistState="true"> |
|
|
|
<% |
|
|
|
<% |
|
|
|
/* List<DocPratica> docPraticas = DocPraticaServiceUtil.findByIntPratica_Tipologia(intPratica.getIntPraticaId(),codiceDoc, |
|
|
|
if (docPraticas.isEmpty()) { |
|
|
|
QueryUtil.ALL_POS,QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_DocPratica", "dettPraticaIdRimozione", true)); */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(docPraticas.isEmpty()){ |
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
<div class="nome_file"> |
|
|
|
<div class="nome_file"> |
|
|
|
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 nessun_allegato"> |
|
|
|
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 nessun_allegato">Nessun allegato presente per la |
|
|
|
Nessun allegato presente per la tipologia |
|
|
|
tipologia</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% |
|
|
|
<% |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
for(DocPratica docPratica:docPraticas){ |
|
|
|
for (DocPratica docPratica : docPraticas) { |
|
|
|
|
|
|
|
|
|
|
|
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); |
|
|
|
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); |
|
|
|
|
|
|
|
|
|
|
|
StringBuilder title = new StringBuilder(); |
|
|
|
StringBuilder title = new StringBuilder(); |
|
|
|
|
|
|
|
|
|
|
|
String cssIcon = StringPool.BLANK; |
|
|
|
String cssIcon = StringPool.BLANK; |
|
|
|
String cssColor= StringPool.BLANK; |
|
|
|
String cssColor= StringPool.BLANK; |
|
|
|
String testoFirme = "Non ci sono firme sul file"; |
|
|
|
String testoFirme = "Non ci sono firme sul file"; |
|
|
|
if(firme.getFirmeDigitali().size()> 0){ |
|
|
|
if (firme.getFirmeDigitali().size() > 0) { |
|
|
|
cssIcon = "fa-check"; |
|
|
|
cssIcon = "fa-check"; |
|
|
|
cssColor= "txt-green"; |
|
|
|
cssColor= "txt-green"; |
|
|
|
testoFirme=""; |
|
|
|
testoFirme = StringPool.BLANK; |
|
|
|
} else if(docPratica.getStatus() == 1){ |
|
|
|
} else if (docPratica.getStatus() == 1) { |
|
|
|
cssIcon= "fa-cog fa-spin"; |
|
|
|
cssIcon= "fa-cog fa-spin"; |
|
|
|
cssColor= "txt-orange"; |
|
|
|
cssColor= "txt-orange"; |
|
|
|
testoFirme="Estrazione firme in corso"; |
|
|
|
testoFirme = "Estrazione firme in corso"; |
|
|
|
}else if(docPratica.getStatus() == 4){ |
|
|
|
} else if (docPratica.getStatus() == 4) { |
|
|
|
cssIcon= "fa-alert"; |
|
|
|
cssIcon= "fa-alert"; |
|
|
|
cssColor= "txt-red"; |
|
|
|
cssColor= "txt-red"; |
|
|
|
testoFirme="Errore nell'estrazione delle firme"; |
|
|
|
testoFirme = "Errore nell'estrazione delle firme"; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
cssIcon = "fa-close"; |
|
|
|
cssIcon = "fa-close"; |
|
|
|
testoFirme="Nessuna firma digitale rilevata"; |
|
|
|
testoFirme = "Nessuna firma digitale rilevata"; |
|
|
|
if(firme.numeroFirme()>0){ |
|
|
|
if (firme.numeroFirme() > 0) { |
|
|
|
cssColor= "txt-green"; |
|
|
|
cssColor= "txt-green"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(firme.numeroFirme()>0){ |
|
|
|
if (firme.numeroFirme() > 0) { |
|
|
|
cssIcon = "fa-check"; |
|
|
|
cssIcon = "fa-check"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//if(firme.numeroFirme()>0){ |
|
|
|
|
|
|
|
title.append("Firma sul file:<ul>"); |
|
|
|
title.append("Firma sul file:<ul>"); |
|
|
|
title.append("<li>"+testoFirme+"</li>"); |
|
|
|
title.append("<li>" + testoFirme + "</li>"); |
|
|
|
if(!firme.getFirmeDigitali().isEmpty()){ |
|
|
|
if (!firme.getFirmeDigitali().isEmpty()) { |
|
|
|
|
|
|
|
for (FirmeDetail firma: firme.getFirmeDigitali()) { |
|
|
|
for(FirmeDetail firma: firme.getFirmeDigitali()){ |
|
|
|
if (cfNome.containsKey(firma.getCfFirmatario())) { |
|
|
|
//TODO nome e cognome |
|
|
|
title.append("<li>" + cfNome.get(firma.getCfFirmatario()) + "</li>"); |
|
|
|
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); |
|
|
|
|
|
|
|
if (soggetti.size() > 0 ){ |
|
|
|
|
|
|
|
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
title.append("<li>"+firma.getCfFirmatario()); |
|
|
|
title.append("<li>" + firma.getCfFirmatario()); |
|
|
|
if(Validator.isNotNull(firma.getDtFirma())){ |
|
|
|
if (Validator.isNotNull(firma.getDtFirma())) { |
|
|
|
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); |
|
|
|
title.append(" del " + dateFormatDate.format(firma.getDtFirma())); |
|
|
|
} |
|
|
|
} |
|
|
|
title.append("</li>"); |
|
|
|
title.append("</li>"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
title.append("</ul>"); |
|
|
|
title.append("</ul>"); |
|
|
|
if(!firme.getFirmeApplicativo().isEmpty()){ |
|
|
|
if (!firme.getFirmeApplicativo().isEmpty()) { |
|
|
|
title.append("Firme da applicativo:<ul>"); |
|
|
|
title.append("Firme da applicativo:<ul>"); |
|
|
|
for(FirmeDetail firma: firme.getFirmeApplicativo()){ |
|
|
|
for (FirmeDetail firma: firme.getFirmeApplicativo()) { |
|
|
|
//TODO nome e cognome |
|
|
|
if (cfNome.containsKey(firma.getCfFirmatario())) { |
|
|
|
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); |
|
|
|
title.append("<li>" + cfNome.get(firma.getCfFirmatario()) + "</li>"); |
|
|
|
if (soggetti.size() > 0 ){ |
|
|
|
|
|
|
|
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
title.append("<li>"+firma.getCfFirmatario()); |
|
|
|
title.append("<li>"+firma.getCfFirmatario()); |
|
|
|
if(Validator.isNotNull(firma.getDtFirma())){ |
|
|
|
if (Validator.isNotNull(firma.getDtFirma())) { |
|
|
|
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); |
|
|
|
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); |
|
|
|
} |
|
|
|
} |
|
|
|
title.append("</li>"); |
|
|
|
title.append("</li>"); |
|
|
|
} |
|
|
|
} |
|
|
|
title.append("</ul>"); |
|
|
|
title.append("</ul>"); |
|
|
|
} |
|
|
|
} |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
<div class="nome_file"> |
|
|
|
<div class="nome_file"> |
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<c:if test="<%=!inBO%>"> |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%= inBO %>"> |
|
|
|
<c:if test="<%=inBO%>"> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<% |
|
|
|
<% |
|
|
|
String color = ""; |
|
|
|
String color = "txt-red"; |
|
|
|
if( Validator.isNotNull(docPratica.getDettPraticaIdRimozione()) ){ |
|
|
|
if (Validator.isNull(docPratica.getDettPraticaIdRimozione())) { |
|
|
|
color = "txt-red"; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
color = "txt-green"; |
|
|
|
color = "txt-green"; |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
<i class="fa fa-circle file-icon <%= color %>" aria-hidden="true"></i> <%=docPratica.getDescLong() %> |
|
|
|
<i class="fa fa-circle file-icon <%= color %>" aria-hidden="true"></i> |
|
|
|
|
|
|
|
<%= docPratica.getDescLong() %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 <%= inBO ? "hidden" : "" %> asserazioni-body-title'> |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 <%=inBO ? "hidden" : ""%> asserazioni-body-title'> |
|
|
|
<% |
|
|
|
<% |
|
|
|
String adding = StringPool.BLANK; |
|
|
|
String adding = StringPool.BLANK; |
|
|
|
if(FineLavori.class.getName().equalsIgnoreCase(className)){ |
|
|
|
if (FineLavori.class.getName().equals(className)) { |
|
|
|
FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); |
|
|
|
FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); |
|
|
|
if(fineLavori!=null){ |
|
|
|
if (fineLavori != null) { |
|
|
|
adding = fineLavori.getFullDescription(); |
|
|
|
adding = fineLavori.getFullDescription(); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if(Collaudo.class.getName().equalsIgnoreCase(className)){ |
|
|
|
} else if (Collaudo.class.getName().equalsIgnoreCase(className)) { |
|
|
|
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); |
|
|
|
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); |
|
|
|
if(collaudo!=null){ |
|
|
|
if (collaudo != null) { |
|
|
|
adding = collaudo.getFullDescription(); |
|
|
|
adding = collaudo.getFullDescription(); |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); |
|
|
|
long pk = docPratica.getClassPk(); |
|
|
|
if(dettPratica!=null){ |
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
adding = dettPratica.getFullDescription(); |
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
adding = dettPraticas.get(pk).getFullDescription(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
out.print(adding); |
|
|
|
out.print(adding); |
|
|
|
%> |
|
|
|
%> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -364,80 +345,82 @@ |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 <%= inBO ? "hidden" : "" %> asserazioni-body-title'> |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 <%= inBO ? "hidden" : "" %> asserazioni-body-title'> |
|
|
|
<% |
|
|
|
<% |
|
|
|
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati |
|
|
|
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati |
|
|
|
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); |
|
|
|
long pk = docPratica.getDettPraticaIdRimozione(); |
|
|
|
if(removing != null){ |
|
|
|
if (0 != pk) { |
|
|
|
out.print(removing.getFullDescription()); |
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
|
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
out.print(dettPraticas.get(pk).getFullDescription()); |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<c:if test='<%= inBO && "page_geologica".equals(comingFrom) %>' > |
|
|
|
<c:if test='<%= inBO && "page_geologica".equals(comingFrom) %>'> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
<% |
|
|
|
<% |
|
|
|
StringBuilder sbProvenienza = new StringBuilder(); |
|
|
|
if (className.equals(DettPratica.class.getName())) { |
|
|
|
|
|
|
|
pk = docPratica.getClassPk(); |
|
|
|
if(className.equals(DettPratica.class.getName())){ |
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
DettPratica dett = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); |
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
if(dett != null){ |
|
|
|
} |
|
|
|
if(dett.getIntegrazione() == 0){ |
|
|
|
DettPratica dett = dettPraticas.get(pk); |
|
|
|
sbProvenienza.append("Pratica Originale"); |
|
|
|
if (dett != null) { |
|
|
|
|
|
|
|
if (dett.getIntegrazione() == 0) { |
|
|
|
|
|
|
|
out.print("Pratica Originale"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if(dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)){ |
|
|
|
if (dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) { |
|
|
|
sbProvenienza.append("Ric Integrazione # " + dett.getIntegrazione()); |
|
|
|
out.print("Ric Integrazione # " + dett.getIntegrazione()); |
|
|
|
} else if(dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)){ |
|
|
|
} else if (dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) { |
|
|
|
sbProvenienza.append("Variante # " + dett.getVarianteNumero()); |
|
|
|
out.print("Variante # " + dett.getVarianteNumero()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
<%=sbProvenienza.toString() %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
<c:if test='<%= inBO %>' > |
|
|
|
<c:if test='<%= inBO %>'> |
|
|
|
<c:if test='<%="page_geologica".equals(comingFrom) %>' > |
|
|
|
<c:choose> |
|
|
|
|
|
|
|
<c:when test='<%= "page_geologica".equals(comingFrom) %>'> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-body-title text-center"> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-body-title text-center"> |
|
|
|
</c:if> |
|
|
|
</c:when> |
|
|
|
<c:if test='<%=!"page_geologica".equals(comingFrom) %>' > |
|
|
|
<c:otherwise> |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 asserazioni-body-title text-center"> |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 asserazioni-body-title text-center"> |
|
|
|
</c:if> |
|
|
|
</c:otherwise> |
|
|
|
|
|
|
|
</c:choose> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
<c:if test='<%= !inBO %>' > |
|
|
|
<c:if test='<%= !inBO %>'> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-body-title text-center"> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-body-title text-center"> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
<div class='<%= inBO ? "col-xs-12 col-sm-12 col-md-12 col-lg-12" : "col-xs-6 col-sm-6 col-md-6 col-lg-6" %>'> |
|
|
|
<div class='<%= inBO ? "col-xs-12 col-sm-12 col-md-12 col-lg-12" : "col-xs-6 col-sm-6 col-md-6 col-lg-6" %>'> |
|
|
|
<span class='<%="fa "+cssIcon+" asseverazioni-icon tooltip-info "+cssColor %>' title="<%=title%>"> |
|
|
|
<span class='<%="fa "+cssIcon+" asseverazioni-icon tooltip-info "+cssColor%>' title="<%=title%>"> |
|
|
|
<c:if test="<%=firme.numeroFirme()>0 %>"> |
|
|
|
<c:if test="<%= firme.numeroFirme() > 0 %>"> |
|
|
|
<sub class="txt-bold"><%= firme.numeroFirme() %></sub> |
|
|
|
<sub class="txt-bold"><%= firme.numeroFirme() %></sub> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class='col-xs-6 col-sm-6 col-md-6 col-lg-6 <%= inBO ? "hidden" : "" %>'> |
|
|
|
<div class='col-xs-6 col-sm-6 col-md-6 col-lg-6 <%=inBO ? "hidden" : ""%>'> |
|
|
|
<% |
|
|
|
<c:choose> |
|
|
|
if(firme.firmaIsPresent(user.getScreenName())){ |
|
|
|
<c:when test="<%= (firme.firmaIsPresent(user.getScreenName())) %>"> |
|
|
|
%> |
|
|
|
|
|
|
|
<span class="fa fa-check asseverazioni-icon tooltip-info txt-green" title="La tua firma è presente"></span> |
|
|
|
<span class="fa fa-check asseverazioni-icon tooltip-info txt-green" title="La tua firma è presente"></span> |
|
|
|
<% |
|
|
|
</c:when> |
|
|
|
}else{ |
|
|
|
<c:otherwise> |
|
|
|
%> |
|
|
|
|
|
|
|
<span class="fa fa-close asseverazioni-icon tooltip-info txt-red" title="La tua firma non è presente"></span> |
|
|
|
<span class="fa fa-close asseverazioni-icon tooltip-info txt-red" title="La tua firma non è presente"></span> |
|
|
|
<% |
|
|
|
</c:otherwise> |
|
|
|
} |
|
|
|
</c:choose> |
|
|
|
%> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-btn text-center'> |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-btn text-center'> |
|
|
|
|
|
|
|
|
|
|
|
<c:choose> |
|
|
|
<c:choose> |
|
|
|
<c:when test="<%= Validator.isNull(docPratica.getDlFileEntryId()) && Validator.isNotNull(docPratica.getOldDlFileEntryId()) %>"> |
|
|
|
<c:when |
|
|
|
<liferay-util:include page="/html/common/import_window.jsp" servletContext="<%= application %>" portletId="<%= PortletKeys.FASCICOLO %>" > |
|
|
|
test="<%= Validator.isNull(docPratica.getDlFileEntryId()) && Validator.isNotNull(docPratica.getOldDlFileEntryId()) %>"> |
|
|
|
|
|
|
|
<liferay-util:include page="/html/common/import_window.jsp" servletContext="<%= application %>" |
|
|
|
|
|
|
|
portletId="<%= PortletKeys.FASCICOLO %>"> |
|
|
|
<liferay-util:param name="classPK" value="<%= String.valueOf(docPratica.getDocPraticaId()) %>" /> |
|
|
|
<liferay-util:param name="classPK" value="<%= String.valueOf(docPratica.getDocPraticaId()) %>" /> |
|
|
|
<liferay-util:param name="classNAME" value="<%= DocPratica.class.getName() %>" /> |
|
|
|
<liferay-util:param name="classNAME" value="<%= DocPratica.class.getName() %>" /> |
|
|
|
<liferay-util:param name="message" value="import-documento"></liferay-util:param> |
|
|
|
<liferay-util:param name="message" value="import-documento"></liferay-util:param> |
|
|
@ -446,13 +429,14 @@ |
|
|
|
<c:otherwise> |
|
|
|
<c:otherwise> |
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<c:if test="<%= !disabledInput || canSignGeoDocs %>"> |
|
|
|
<c:if test="<%= !disabledInput || canSignGeoDocs %>"> |
|
|
|
<liferay-util:include page="/html/allegatipratica/allegati_action.jsp" servletContext="<%=application %>"> |
|
|
|
<liferay-util:include page="/html/allegatipratica/allegatWi_action.jsp" |
|
|
|
<liferay-util:param name="backUrl" value="<%=currentURL %>"/> |
|
|
|
servletContext="<%= application %>"> |
|
|
|
<liferay-util:param name="comingFrom" value="<%=comingFrom %>"/> |
|
|
|
<liferay-util:param name="backUrl" value="<%= currentURL %>" /> |
|
|
|
<liferay-util:param name="classPk" value="<%=String.valueOf(classPk) %>"/> |
|
|
|
<liferay-util:param name="comingFrom" value="<%= comingFrom %>" /> |
|
|
|
<liferay-util:param name="className" value="<%=className %>"/> |
|
|
|
<liferay-util:param name="classPk" value="<%= String.valueOf(classPk) %>" /> |
|
|
|
<liferay-util:param name="docPraticaId" value="<%=String.valueOf(docPratica.getDocPraticaId()) %>"/> |
|
|
|
<liferay-util:param name="className" value="<%= className %>" /> |
|
|
|
<liferay-util:param name="disabledInput" value="<%=String.valueOf(disabledInput) %>"/> |
|
|
|
<liferay-util:param name="docPraticaId" value="<%= String.valueOf(docPratica.getDocPraticaId()) %>" /> |
|
|
|
|
|
|
|
<liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" /> |
|
|
|
</liferay-util:include> |
|
|
|
</liferay-util:include> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
@ -462,9 +446,10 @@ |
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" /> |
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" /> |
|
|
|
</liferay-portlet:renderURL> |
|
|
|
</liferay-portlet:renderURL> |
|
|
|
|
|
|
|
|
|
|
|
<liferay-ui:icon id='<%="open_"+docPratica.getDocPraticaId() %>' linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard" message="Visualizza" url="<%=previewURL%>" useDialog="true"/> |
|
|
|
<liferay-ui:icon id='<%="open_" + docPratica.getDocPraticaId() %>' linkCssClass="btn btn-action" |
|
|
|
<liferay-ui:icon id='<%="download_"+docPratica.getDocPraticaId() %>' linkCssClass="btn btn-action" iconCssClass="fa fa-download" message="Download" url="<%=docPratica.getDownloadUrl(themeDisplay)%>"/> |
|
|
|
iconCssClass="fa fa-clipboard" message="Visualizza" url="<%= previewURL %>" useDialog="true" /> |
|
|
|
|
|
|
|
<liferay-ui:icon id='<%="download_"+ docPratica.getDocPraticaId() %>' linkCssClass="btn btn-action" |
|
|
|
|
|
|
|
iconCssClass="fa fa-download" message="Download" url="<%= docPratica.getDownloadUrl(themeDisplay) %>" /> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</c:otherwise> |
|
|
|
</c:otherwise> |
|
|
|
</c:choose> |
|
|
|
</c:choose> |
|
|
@ -476,11 +461,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
</liferay-ui:panel> |
|
|
|
</liferay-ui:panel> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|