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