|
|
@ -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"); |
|
|
|
long classPk = ParamUtil.getLong(request, "classPk"); |
|
|
|
String className = ParamUtil.getString(request, "className"); |
|
|
|
String className = ParamUtil.getString(request, "className"); |
|
|
|
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); |
|
|
|
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); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(dettPratica == null){ |
|
|
|
|
|
|
|
dettPratica = DettPraticaServiceUtil.getDettPratica(classPk); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaIdParam); |
|
|
|
request.setAttribute("bean.dettPratica",dettPratica); |
|
|
|
|
|
|
|
classPk = dettPratica.getDettPraticaId(); |
|
|
|
|
|
|
|
intPraticaId = dettPratica.getIntPraticaId(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (dettPratica == null) { |
|
|
|
|
|
|
|
dettPratica = DettPraticaServiceUtil.getDettPratica(classPk); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
request.setAttribute("bean.dettPratica", dettPratica); |
|
|
|
|
|
|
|
classPk = dettPratica.getDettPraticaId(); |
|
|
|
|
|
|
|
intPraticaId = dettPratica.getIntPraticaId(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Map<String, String> cfNome = new HashMap<String, String>(); |
|
|
|
|
|
|
|
for (Soggetto soggetto : SoggettoLocalServiceUtil.findByIntPratica(intPraticaId)) { |
|
|
|
|
|
|
|
cfNome.put(soggetto.getCodiceFiscale(), soggetto.getNome() + StringPool.SPACE + soggetto.getCognome()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Map<Long, DettPratica> dettPraticas = new HashMap<Long, DettPratica>(); |
|
|
|
|
|
|
|
|
|
|
|
boolean inBO = ParamUtil.getBoolean(request,"inBO",false); |
|
|
|
boolean inBO = ParamUtil.getBoolean(request, "inBO", false); |
|
|
|
boolean disabled = ParamUtil.getBoolean(request,"disabled"); |
|
|
|
boolean disabled = ParamUtil.getBoolean(request, "disabled"); |
|
|
|
|
|
|
|
|
|
|
|
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); |
|
|
|
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); |
|
|
|
Soggetto soggettoDelegato = null; |
|
|
|
Soggetto soggettoDelegato = null; |
|
|
|
|
|
|
|
|
|
|
|
boolean disabledInput = true; |
|
|
|
boolean disabledInput = true; |
|
|
|
boolean canSignGeoDocs = false; |
|
|
|
boolean canSignGeoDocs = false; |
|
|
|
if(Validator.isNotNull(request.getParameter("disabled"))){ |
|
|
|
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"); |
|
|
|
&& !DelegheUtil.hasDelegaFirmaAllegati(user.getUserId(),classPk); |
|
|
|
if (null == hasDelegaCompilazioneDomanda) { |
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(classPk); |
|
|
|
hasDelegaCompilazioneDomanda = DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),classPk); |
|
|
|
} else if ("page_geologica".equalsIgnoreCase(comingFrom)) { |
|
|
|
SessionUtil.setDettPraticaObject(request, classPk, "hasDelegaCompilazioneDomanda", hasDelegaCompilazioneDomanda); |
|
|
|
disabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),classPk); |
|
|
|
|
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneSezioneGeologica(classPk); |
|
|
|
|
|
|
|
canSignGeoDocs = true; |
|
|
|
|
|
|
|
} else if ("page_fine_lavori".equalsIgnoreCase(comingFrom)) { |
|
|
|
|
|
|
|
disabledInput = disabled; |
|
|
|
|
|
|
|
} else if ("page_collaudo".equalsIgnoreCase(comingFrom)) { |
|
|
|
|
|
|
|
disabledInput = disabled; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
disabledInput = !hasDelegaCompilazioneDomanda |
|
|
|
|
|
|
|
&& !DelegheUtil.hasDelegaFirmaAllegati(user.getUserId(),classPk); |
|
|
|
<c:if test="<%= DettPratica.class.getName().equalsIgnoreCase(className) %>"> |
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(classPk); |
|
|
|
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%=application %>"> |
|
|
|
} else if ("page_geologica".equalsIgnoreCase(comingFrom)) { |
|
|
|
<liferay-util:param name="disabledInput" value="<%=String.valueOf(disabledInput) %>"/> |
|
|
|
disabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),classPk); |
|
|
|
<c:if test="<%= soggettoDelegato!=null %>"> |
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneSezioneGeologica(classPk); |
|
|
|
<liferay-util:param name="soggettoId" value="<%=String.valueOf(soggettoDelegato.getSoggettoId()) %>"/> |
|
|
|
canSignGeoDocs = true; |
|
|
|
</c:if> |
|
|
|
} else if ("page_fine_lavori".equalsIgnoreCase(comingFrom)) { |
|
|
|
</liferay-util:include> |
|
|
|
disabledInput = disabled; |
|
|
|
</c:if> |
|
|
|
} else if ("page_collaudo".equalsIgnoreCase(comingFrom)) { |
|
|
|
|
|
|
|
disabledInput = disabled; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<c:if test="<%= DettPratica.class.getName().equals(className) %>"> |
|
|
|
|
|
|
|
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%=application%>"> |
|
|
|
|
|
|
|
<liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" /> |
|
|
|
|
|
|
|
<c:if test="<%=soggettoDelegato!=null%>"> |
|
|
|
|
|
|
|
<liferay-util:param name="soggettoId" value="<%= String.valueOf(soggettoDelegato.getSoggettoId()) %>" /> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
</liferay-util:include> |
|
|
|
|
|
|
|
</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,297 +198,276 @@ |
|
|
|
</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> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
for(String codiceDoc:tipologiaAllegati){ |
|
|
|
|
|
|
|
List<DocPratica> docPraticas = new ArrayList<DocPratica>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(FineLavori.class.getName().equalsIgnoreCase(className) || Collaudo.class.getName().equalsIgnoreCase(className)){ |
|
|
|
</c:if> |
|
|
|
docPraticas = DocPraticaServiceUtil.findByClassPk_Tipologia(classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
docPraticas = DocPraticaServiceUtil.findByIntPratica_ClassPk_Tipologia(intPratica.getIntPraticaId(), classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
<div class="allegati_wrapper row"> |
|
|
|
|
|
|
|
<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"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
/* List<DocPratica> docPraticas = DocPraticaServiceUtil.findByIntPratica_Tipologia(intPratica.getIntPraticaId(),codiceDoc, |
|
|
|
for (String codiceDoc:tipologiaAllegati) { |
|
|
|
QueryUtil.ALL_POS,QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_DocPratica", "dettPraticaIdRimozione", true)); */ |
|
|
|
List<DocPratica> docPraticas = new ArrayList<DocPratica>(); |
|
|
|
|
|
|
|
|
|
|
|
if(docPraticas.isEmpty()){ |
|
|
|
if(FineLavori.class.getName().equals(className) || Collaudo.class.getName().equals(className)) { |
|
|
|
%> |
|
|
|
docPraticas = DocPraticaServiceUtil.findByClassPk_Tipologia(classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
docPraticas = DocPraticaServiceUtil.findByIntPratica_ClassPk_Tipologia(intPraticaId, classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
<div class="allegati_wrapper row"> |
|
|
|
|
|
|
|
<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"> |
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
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 { |
|
|
|
|
|
|
|
for(DocPratica docPratica:docPraticas){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StringBuilder title = new StringBuilder(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String cssIcon = StringPool.BLANK; |
|
|
|
|
|
|
|
String cssColor= StringPool.BLANK; |
|
|
|
|
|
|
|
String testoFirme = "Non ci sono firme sul file"; |
|
|
|
|
|
|
|
if(firme.getFirmeDigitali().size()> 0){ |
|
|
|
|
|
|
|
cssIcon = "fa-check"; |
|
|
|
|
|
|
|
cssColor= "txt-green"; |
|
|
|
|
|
|
|
testoFirme=""; |
|
|
|
|
|
|
|
} else if(docPratica.getStatus() == 1){ |
|
|
|
|
|
|
|
cssIcon= "fa-cog fa-spin"; |
|
|
|
|
|
|
|
cssColor= "txt-orange"; |
|
|
|
|
|
|
|
testoFirme="Estrazione firme in corso"; |
|
|
|
|
|
|
|
}else if(docPratica.getStatus() == 4){ |
|
|
|
|
|
|
|
cssIcon= "fa-alert"; |
|
|
|
|
|
|
|
cssColor= "txt-red"; |
|
|
|
|
|
|
|
testoFirme="Errore nell'estrazione delle firme"; |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
cssIcon = "fa-close"; |
|
|
|
for (DocPratica docPratica : docPraticas) { |
|
|
|
testoFirme="Nessuna firma digitale rilevata"; |
|
|
|
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); |
|
|
|
if(firme.numeroFirme()>0){ |
|
|
|
|
|
|
|
cssColor= "txt-green"; |
|
|
|
StringBuilder title = new StringBuilder(); |
|
|
|
|
|
|
|
String cssIcon = StringPool.BLANK; |
|
|
|
|
|
|
|
String cssColor= StringPool.BLANK; |
|
|
|
|
|
|
|
String testoFirme = "Non ci sono firme sul file"; |
|
|
|
|
|
|
|
if (firme.getFirmeDigitali().size() > 0) { |
|
|
|
|
|
|
|
cssIcon = "fa-check"; |
|
|
|
|
|
|
|
cssColor= "txt-green"; |
|
|
|
|
|
|
|
testoFirme = StringPool.BLANK; |
|
|
|
|
|
|
|
} else if (docPratica.getStatus() == 1) { |
|
|
|
|
|
|
|
cssIcon= "fa-cog fa-spin"; |
|
|
|
|
|
|
|
cssColor= "txt-orange"; |
|
|
|
|
|
|
|
testoFirme = "Estrazione firme in corso"; |
|
|
|
|
|
|
|
} else if (docPratica.getStatus() == 4) { |
|
|
|
|
|
|
|
cssIcon= "fa-alert"; |
|
|
|
|
|
|
|
cssColor= "txt-red"; |
|
|
|
|
|
|
|
testoFirme = "Errore nell'estrazione delle firme"; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
cssIcon = "fa-close"; |
|
|
|
|
|
|
|
testoFirme = "Nessuna firma digitale rilevata"; |
|
|
|
|
|
|
|
if (firme.numeroFirme() > 0) { |
|
|
|
|
|
|
|
cssColor= "txt-green"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (firme.numeroFirme() > 0) { |
|
|
|
|
|
|
|
cssIcon = "fa-check"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("Firma sul file:<ul>"); |
|
|
|
|
|
|
|
title.append("<li>" + testoFirme + "</li>"); |
|
|
|
|
|
|
|
if (!firme.getFirmeDigitali().isEmpty()) { |
|
|
|
|
|
|
|
for (FirmeDetail firma: firme.getFirmeDigitali()) { |
|
|
|
|
|
|
|
if (cfNome.containsKey(firma.getCfFirmatario())) { |
|
|
|
|
|
|
|
title.append("<li>" + cfNome.get(firma.getCfFirmatario()) + "</li>"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("<li>" + firma.getCfFirmatario()); |
|
|
|
|
|
|
|
if (Validator.isNotNull(firma.getDtFirma())) { |
|
|
|
|
|
|
|
title.append(" del " + dateFormatDate.format(firma.getDtFirma())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("</li>"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("</ul>"); |
|
|
|
|
|
|
|
if (!firme.getFirmeApplicativo().isEmpty()) { |
|
|
|
|
|
|
|
title.append("Firme da applicativo:<ul>"); |
|
|
|
|
|
|
|
for (FirmeDetail firma: firme.getFirmeApplicativo()) { |
|
|
|
|
|
|
|
if (cfNome.containsKey(firma.getCfFirmatario())) { |
|
|
|
|
|
|
|
title.append("<li>" + cfNome.get(firma.getCfFirmatario()) + "</li>"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("<li>"+firma.getCfFirmatario()); |
|
|
|
|
|
|
|
if (Validator.isNotNull(firma.getDtFirma())) { |
|
|
|
|
|
|
|
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("</li>"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("</ul>"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
<div class="nome_file"> |
|
|
|
|
|
|
|
<c:if test="<%=!inBO%>"> |
|
|
|
|
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
<c:if test="<%=inBO%>"> |
|
|
|
|
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
String color = "txt-red"; |
|
|
|
|
|
|
|
if (Validator.isNull(docPratica.getDettPraticaIdRimozione())) { |
|
|
|
|
|
|
|
color = "txt-green"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
if(firme.numeroFirme()>0){ |
|
|
|
<i class="fa fa-circle file-icon <%= color %>" aria-hidden="true"></i> |
|
|
|
cssIcon = "fa-check"; |
|
|
|
<%= docPratica.getDescLong() %> |
|
|
|
} |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
//if(firme.numeroFirme()>0){ |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 <%=inBO ? "hidden" : ""%> asserazioni-body-title'> |
|
|
|
title.append("Firma sul file:<ul>"); |
|
|
|
<% |
|
|
|
title.append("<li>"+testoFirme+"</li>"); |
|
|
|
String adding = StringPool.BLANK; |
|
|
|
if(!firme.getFirmeDigitali().isEmpty()){ |
|
|
|
if (FineLavori.class.getName().equals(className)) { |
|
|
|
|
|
|
|
FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); |
|
|
|
|
|
|
|
if (fineLavori != null) { |
|
|
|
|
|
|
|
adding = fineLavori.getFullDescription(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (Collaudo.class.getName().equalsIgnoreCase(className)) { |
|
|
|
|
|
|
|
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); |
|
|
|
|
|
|
|
if (collaudo != null) { |
|
|
|
|
|
|
|
adding = collaudo.getFullDescription(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
long pk = docPratica.getClassPk(); |
|
|
|
|
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
|
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
adding = dettPraticas.get(pk).getFullDescription(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
out.print(adding); |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
for(FirmeDetail firma: firme.getFirmeDigitali()){ |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 <%= inBO ? "hidden" : "" %> asserazioni-body-title'> |
|
|
|
//TODO nome e cognome |
|
|
|
<% |
|
|
|
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); |
|
|
|
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati |
|
|
|
if (soggetti.size() > 0 ){ |
|
|
|
long pk = docPratica.getDettPraticaIdRimozione(); |
|
|
|
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); |
|
|
|
if (0 != pk) { |
|
|
|
} |
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
title.append("<li>"+firma.getCfFirmatario()); |
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
if(Validator.isNotNull(firma.getDtFirma())){ |
|
|
|
} |
|
|
|
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); |
|
|
|
out.print(dettPraticas.get(pk).getFullDescription()); |
|
|
|
} |
|
|
|
} |
|
|
|
title.append("</li>"); |
|
|
|
%> |
|
|
|
} |
|
|
|
</div> |
|
|
|
} |
|
|
|
|
|
|
|
title.append("</ul>"); |
|
|
|
|
|
|
|
if(!firme.getFirmeApplicativo().isEmpty()){ |
|
|
|
|
|
|
|
title.append("Firme da applicativo:<ul>"); |
|
|
|
|
|
|
|
for(FirmeDetail firma: firme.getFirmeApplicativo()){ |
|
|
|
|
|
|
|
//TODO nome e cognome |
|
|
|
|
|
|
|
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()); |
|
|
|
|
|
|
|
if(Validator.isNotNull(firma.getDtFirma())){ |
|
|
|
|
|
|
|
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("</li>"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
title.append("</ul>"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%> |
|
|
|
<c:if test='<%= inBO && "page_geologica".equals(comingFrom) %>'> |
|
|
|
<div class="nome_file"> |
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> |
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<span> |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> |
|
|
|
<% |
|
|
|
</c:if> |
|
|
|
if (className.equals(DettPratica.class.getName())) { |
|
|
|
<c:if test="<%= inBO %>"> |
|
|
|
pk = docPratica.getClassPk(); |
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> |
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
</c:if> |
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
<% |
|
|
|
} |
|
|
|
String color = ""; |
|
|
|
DettPratica dett = dettPraticas.get(pk); |
|
|
|
if( Validator.isNotNull(docPratica.getDettPraticaIdRimozione()) ){ |
|
|
|
if (dett != null) { |
|
|
|
color = "txt-red"; |
|
|
|
if (dett.getIntegrazione() == 0) { |
|
|
|
|
|
|
|
out.print("Pratica Originale"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
color = "txt-green"; |
|
|
|
if (dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) { |
|
|
|
} |
|
|
|
out.print("Ric Integrazione # " + dett.getIntegrazione()); |
|
|
|
%> |
|
|
|
} else if (dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) { |
|
|
|
<i class="fa fa-circle file-icon <%= color %>" aria-hidden="true"></i> <%=docPratica.getDescLong() %> |
|
|
|
out.print("Variante # " + dett.getVarianteNumero()); |
|
|
|
</div> |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 <%= inBO ? "hidden" : "" %> asserazioni-body-title'> |
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
String adding = StringPool.BLANK; |
|
|
|
|
|
|
|
if(FineLavori.class.getName().equalsIgnoreCase(className)){ |
|
|
|
|
|
|
|
FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); |
|
|
|
|
|
|
|
if(fineLavori!=null){ |
|
|
|
|
|
|
|
adding = fineLavori.getFullDescription(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if(Collaudo.class.getName().equalsIgnoreCase(className)){ |
|
|
|
|
|
|
|
Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); |
|
|
|
|
|
|
|
if(collaudo!=null){ |
|
|
|
|
|
|
|
adding = collaudo.getFullDescription(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); |
|
|
|
|
|
|
|
if(dettPratica!=null){ |
|
|
|
|
|
|
|
adding = dettPratica.getFullDescription(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
out.print(adding); |
|
|
|
<c:if test='<%= inBO %>'> |
|
|
|
%> |
|
|
|
<c:choose> |
|
|
|
</div> |
|
|
|
<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 <%= inBO ? "hidden" : "" %> asserazioni-body-title'> |
|
|
|
</c:when> |
|
|
|
<% |
|
|
|
<c:otherwise> |
|
|
|
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati |
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 asserazioni-body-title text-center"> |
|
|
|
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); |
|
|
|
</c:otherwise> |
|
|
|
if(removing != null){ |
|
|
|
</c:choose> |
|
|
|
out.print(removing.getFullDescription()); |
|
|
|
</c:if> |
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<c:if test='<%= inBO && "page_geologica".equals(comingFrom) %>' > |
|
|
|
|
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> |
|
|
|
|
|
|
|
<span> |
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
StringBuilder sbProvenienza = new StringBuilder(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(className.equals(DettPratica.class.getName())){ |
|
|
|
|
|
|
|
DettPratica dett = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); |
|
|
|
|
|
|
|
if(dett != null){ |
|
|
|
|
|
|
|
if(dett.getIntegrazione() == 0){ |
|
|
|
|
|
|
|
sbProvenienza.append("Pratica Originale"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if(dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)){ |
|
|
|
|
|
|
|
sbProvenienza.append("Ric Integrazione # " + dett.getIntegrazione()); |
|
|
|
|
|
|
|
} else if(dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)){ |
|
|
|
|
|
|
|
sbProvenienza.append("Variante # " + dett.getVarianteNumero()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
<%=sbProvenienza.toString() %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<c:if test='<%= inBO %>' > |
|
|
|
<c:if test='<%= !inBO %>'> |
|
|
|
<c:if 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:if> |
|
|
|
|
|
|
|
<c:if test='<%=!"page_geologica".equals(comingFrom) %>' > |
|
|
|
|
|
|
|
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 asserazioni-body-title text-center"> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<c:if test='<%= !inBO %>' > |
|
|
|
|
|
|
|
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-body-title text-center"> |
|
|
|
|
|
|
|
</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> |
|
|
|
<% |
|
|
|
<c:otherwise> |
|
|
|
}else{ |
|
|
|
<span class="fa fa-close asseverazioni-icon tooltip-info txt-red" title="La tua firma non è presente"></span> |
|
|
|
%> |
|
|
|
</c:otherwise> |
|
|
|
<span class="fa fa-close asseverazioni-icon tooltip-info txt-red" title="La tua firma non è presente"></span> |
|
|
|
</c:choose> |
|
|
|
<% |
|
|
|
</div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
%> |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-btn text-center'> |
|
|
|
</div> |
|
|
|
<c:choose> |
|
|
|
</div> |
|
|
|
<c:when |
|
|
|
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2 asserazioni-btn text-center'> |
|
|
|
test="<%= Validator.isNull(docPratica.getDlFileEntryId()) && Validator.isNotNull(docPratica.getOldDlFileEntryId()) %>"> |
|
|
|
|
|
|
|
<liferay-util:include page="/html/common/import_window.jsp" servletContext="<%= application %>" |
|
|
|
<c:choose> |
|
|
|
portletId="<%= PortletKeys.FASCICOLO %>"> |
|
|
|
<c:when test="<%= Validator.isNull(docPratica.getDlFileEntryId()) && Validator.isNotNull(docPratica.getOldDlFileEntryId()) %>"> |
|
|
|
<liferay-util:param name="classPK" value="<%= String.valueOf(docPratica.getDocPraticaId()) %>" /> |
|
|
|
<liferay-util:include page="/html/common/import_window.jsp" servletContext="<%= application %>" portletId="<%= PortletKeys.FASCICOLO %>" > |
|
|
|
<liferay-util:param name="classNAME" value="<%= DocPratica.class.getName() %>" /> |
|
|
|
<liferay-util:param name="classPK" value="<%= String.valueOf(docPratica.getDocPraticaId()) %>" /> |
|
|
|
<liferay-util:param name="message" value="import-documento"></liferay-util:param> |
|
|
|
<liferay-util:param name="classNAME" value="<%= DocPratica.class.getName() %>" /> |
|
|
|
</liferay-util:include> |
|
|
|
<liferay-util:param name="message" value="import-documento"></liferay-util:param> |
|
|
|
</c:when> |
|
|
|
</liferay-util:include> |
|
|
|
<c:otherwise> |
|
|
|
</c:when> |
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<c:otherwise> |
|
|
|
<c:if test="<%= !disabledInput || canSignGeoDocs %>"> |
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<liferay-util:include page="/html/allegatipratica/allegatWi_action.jsp" |
|
|
|
<c:if test="<%= !disabledInput || canSignGeoDocs %>"> |
|
|
|
servletContext="<%= application %>"> |
|
|
|
<liferay-util:include page="/html/allegatipratica/allegati_action.jsp" servletContext="<%=application %>"> |
|
|
|
<liferay-util:param name="backUrl" value="<%= currentURL %>" /> |
|
|
|
<liferay-util:param name="backUrl" value="<%=currentURL %>"/> |
|
|
|
<liferay-util:param name="comingFrom" value="<%= comingFrom %>" /> |
|
|
|
<liferay-util:param name="comingFrom" value="<%=comingFrom %>"/> |
|
|
|
<liferay-util:param name="classPk" value="<%= String.valueOf(classPk) %>" /> |
|
|
|
<liferay-util:param name="classPk" value="<%=String.valueOf(classPk) %>"/> |
|
|
|
<liferay-util:param name="className" value="<%= className %>" /> |
|
|
|
<liferay-util:param name="className" value="<%=className %>"/> |
|
|
|
<liferay-util:param name="docPraticaId" value="<%= String.valueOf(docPratica.getDocPraticaId()) %>" /> |
|
|
|
<liferay-util:param name="docPraticaId" value="<%=String.valueOf(docPratica.getDocPraticaId()) %>"/> |
|
|
|
<liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" /> |
|
|
|
<liferay-util:param name="disabledInput" value="<%=String.valueOf(disabledInput) %>"/> |
|
|
|
</liferay-util:include> |
|
|
|
</liferay-util:include> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%= inBO %>"> |
|
|
|
<c:if test="<%= inBO %>"> |
|
|
|
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> |
|
|
|
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> |
|
|
|
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" /> |
|
|
|
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" /> |
|
|
|
<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='<%="download_"+docPratica.getDocPraticaId() %>' linkCssClass="btn btn-action" iconCssClass="fa fa-download" message="Download" url="<%=docPratica.getDownloadUrl(themeDisplay)%>"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
</c:otherwise> |
|
|
|
|
|
|
|
</c:choose> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
<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='<%="download_"+ docPratica.getDocPraticaId() %>' linkCssClass="btn btn-action" |
|
|
|
%> |
|
|
|
iconCssClass="fa fa-download" message="Download" url="<%= docPratica.getDownloadUrl(themeDisplay) %>" /> |
|
|
|
</liferay-ui:panel> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
</c:otherwise> |
|
|
|
|
|
|
|
</c:choose> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
</liferay-ui:panel> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
<script type="text/javascript"> |
|
|
|
YUI().use( |
|
|
|
YUI().use( |
|
|
|