|
|
@ -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"%> |
|
|
@ -33,17 +36,16 @@ |
|
|
|
<%@ 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(); |
|
|
@ -68,7 +70,11 @@ |
|
|
|
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)) { |
|
|
|
|
|
|
|
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"); |
|
|
@ -81,7 +87,12 @@ |
|
|
|
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"); |
|
|
|
|
|
|
|
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)) { |
|
|
@ -95,7 +106,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
<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%>"> |
|
|
@ -104,7 +115,6 @@ |
|
|
|
</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 %>" /> |
|
|
@ -114,10 +124,11 @@ |
|
|
|
<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> |
|
|
@ -134,24 +145,20 @@ |
|
|
|
</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" |
|
|
|
|
|
|
|
cssClass="inline_toolbar"> |
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
<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> |
|
|
@ -168,7 +175,6 @@ |
|
|
|
}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"> |
|
|
@ -195,26 +201,16 @@ |
|
|
|
<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> |
|
|
@ -226,42 +222,37 @@ |
|
|
|
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 { |
|
|
|
} 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"; |
|
|
@ -280,17 +271,12 @@ |
|
|
|
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()) { |
|
|
|
//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())) { |
|
|
@ -303,10 +289,8 @@ |
|
|
|
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())) { |
|
|
@ -316,8 +300,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
title.append("</ul>"); |
|
|
|
title.append("</ul>"); |
|
|
|
} |
|
|
|
} |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
<div class="nome_file"> |
|
|
|
<div class="nome_file"> |
|
|
|
<c:if test="<%=!inBO%>"> |
|
|
|
<c:if test="<%=!inBO%>"> |
|
|
@ -327,20 +309,19 @@ |
|
|
|
<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(); |
|
|
@ -351,12 +332,12 @@ |
|
|
|
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,9 +345,12 @@ |
|
|
|
<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> |
|
|
@ -375,37 +359,38 @@ |
|
|
|
<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())) { |
|
|
|
if (className.equals(DettPratica.class.getName())) { |
|
|
|
DettPratica dett = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); |
|
|
|
pk = docPratica.getClassPk(); |
|
|
|
|
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
|
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
DettPratica dett = dettPraticas.get(pk); |
|
|
|
if (dett != null) { |
|
|
|
if (dett != null) { |
|
|
|
if (dett.getIntegrazione() == 0) { |
|
|
|
if (dett.getIntegrazione() == 0) { |
|
|
|
sbProvenienza.append("Pratica Originale"); |
|
|
|
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 %>'> |
|
|
@ -420,24 +405,22 @@ |
|
|
|
</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,7 +429,8 @@ |
|
|
|
<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" |
|
|
|
|
|
|
|
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) %>" /> |
|
|
@ -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> |
|
|
|