|
|
|
@ -1,4 +1,7 @@
|
|
|
|
|
<%@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.service.FineLavoriLocalServiceUtil"%> |
|
|
|
|
<%@page import="it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil"%> |
|
|
|
@ -33,17 +36,16 @@
|
|
|
|
|
<%@ include file="/html/soggettipratica/init.jsp"%> |
|
|
|
|
|
|
|
|
|
<% |
|
|
|
|
String comingFrom = ParamUtil.getString(request,"comingFrom", |
|
|
|
|
GetterUtil.getString( |
|
|
|
|
PortalUtil.getOriginalServletRequest(request).getParameter("comingFrom"), |
|
|
|
|
"page_allegati") |
|
|
|
|
String comingFrom = ParamUtil.getString( |
|
|
|
|
request, |
|
|
|
|
"comingFrom", |
|
|
|
|
GetterUtil.getString(PortalUtil.getOriginalServletRequest(request).getParameter("comingFrom"), "page_allegati") |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
long classPk = ParamUtil.getLong(request, "classPk"); |
|
|
|
|
String className = ParamUtil.getString(request, "className"); |
|
|
|
|
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (FineLavori.class.getName().equalsIgnoreCase(className)) { |
|
|
|
|
FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(classPk); |
|
|
|
|
intPraticaId = fineLavori.getIntPraticaId(); |
|
|
|
@ -68,7 +70,11 @@
|
|
|
|
|
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 disabled = ParamUtil.getBoolean(request, "disabled"); |
|
|
|
@ -81,7 +87,12 @@
|
|
|
|
|
if (Validator.isNotNull(request.getParameter("disabled"))) { |
|
|
|
|
disabledInput = disabled; |
|
|
|
|
} 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); |
|
|
|
|
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(classPk); |
|
|
|
|
} 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:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" /> |
|
|
|
|
<c:if test="<%=soggettoDelegato!=null%>"> |
|
|
|
@ -104,7 +115,6 @@
|
|
|
|
|
</liferay-util:include> |
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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="backURL" value="<%= currentURL %>" /> |
|
|
|
@ -114,10 +124,11 @@
|
|
|
|
|
<liferay-portlet:param name="inBO" value="<%= String.valueOf(inBO) %>" /> |
|
|
|
|
</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: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="comingFrom" value="<%= comingFrom %>" /> |
|
|
|
|
</liferay-portlet:resourceURL> |
|
|
|
@ -134,24 +145,20 @@
|
|
|
|
|
</c:choose> |
|
|
|
|
</c:if> |
|
|
|
|
<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="<%= !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> |
|
|
|
|
|
|
|
|
|
<aui:button value="Aggiorna Dati" id='<%=renderResponse.getNamespace()+"aggiorna-allegato"%>' icon="fa fa-refresh" type="button" |
|
|
|
|
onClick="<%=refresh%>" cssClass="btn btn-primary btn-action"/> |
|
|
|
|
<aui:button value="Aggiorna Dati" id='<%= renderResponse.getNamespace() + "aggiorna-allegato" %>' |
|
|
|
|
icon="fa fa-refresh" type="button" onClick="<%= refresh %>" cssClass="btn btn-primary btn-action" /> |
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="tooltip-info" title="Download Allegati"> |
|
|
|
|
<aui:button id='<%=renderResponse.getNamespace()+"download_all"%>' |
|
|
|
|
icon="fa fa-download" cssClass="btn btn-primary btn-action" |
|
|
|
|
href="<%= downloadAllURL %>" |
|
|
|
|
/> |
|
|
|
|
<span class="tooltip-info" title="Download Allegati"> <aui:button |
|
|
|
|
id='<%= renderResponse.getNamespace() + "download_all" %>' icon="fa fa-download" |
|
|
|
|
cssClass="btn btn-primary btn-action" href="<%= downloadAllURL %>" /> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
</liferay-ui:icon-menu> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -168,7 +175,6 @@
|
|
|
|
|
}else if ("page_collaudo".equals(comingFrom)) { |
|
|
|
|
tipologiaAllegati = DocumentiPraticaUtil.getDocCollaudo(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
|
|
<div class="container-fluid clearfix " id="<portlet:namespace/>allegati-table"> |
|
|
|
@ -195,26 +201,16 @@
|
|
|
|
|
<c:if test="<%=inBO%>"> |
|
|
|
|
<c:if test='<%= !"page_geologica".equals(comingFrom) %>'> |
|
|
|
|
<div class='row asseverazioni-header'> |
|
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> |
|
|
|
|
Descrizione |
|
|
|
|
</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-6 col-sm-6 col-md-6 col-lg-6">Descrizione</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> |
|
|
|
|
</c:if> |
|
|
|
|
<c:if test='<%=" page_geologica".equals(comingFrom) %>'> |
|
|
|
|
<div class='row asseverazioni-header'> |
|
|
|
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> |
|
|
|
|
Descrizione |
|
|
|
|
</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-6 col-sm-6 col-md-6 col-lg-6">Descrizione</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> |
|
|
|
|
</c:if> |
|
|
|
@ -226,42 +222,37 @@
|
|
|
|
|
for (String codiceDoc:tipologiaAllegati) { |
|
|
|
|
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); |
|
|
|
|
} 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"> |
|
|
|
|
<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()) { |
|
|
|
|
%> |
|
|
|
|
<div class="nome_file"> |
|
|
|
|
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 nessun_allegato"> |
|
|
|
|
Nessun allegato presente per la tipologia |
|
|
|
|
</div> |
|
|
|
|
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 nessun_allegato">Nessun allegato presente per la |
|
|
|
|
tipologia</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=""; |
|
|
|
|
testoFirme = StringPool.BLANK; |
|
|
|
|
} else if (docPratica.getStatus() == 1) { |
|
|
|
|
cssIcon= "fa-cog fa-spin"; |
|
|
|
|
cssColor= "txt-orange"; |
|
|
|
@ -280,17 +271,12 @@
|
|
|
|
|
if (firme.numeroFirme() > 0) { |
|
|
|
|
cssIcon = "fa-check"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//if(firme.numeroFirme()>0){ |
|
|
|
|
title.append("Firma sul file:<ul>"); |
|
|
|
|
title.append("<li>" + testoFirme + "</li>"); |
|
|
|
|
if (!firme.getFirmeDigitali().isEmpty()) { |
|
|
|
|
|
|
|
|
|
for (FirmeDetail firma: firme.getFirmeDigitali()) { |
|
|
|
|
//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>"); |
|
|
|
|
if (cfNome.containsKey(firma.getCfFirmatario())) { |
|
|
|
|
title.append("<li>" + cfNome.get(firma.getCfFirmatario()) + "</li>"); |
|
|
|
|
} |
|
|
|
|
title.append("<li>" + firma.getCfFirmatario()); |
|
|
|
|
if (Validator.isNotNull(firma.getDtFirma())) { |
|
|
|
@ -303,10 +289,8 @@
|
|
|
|
|
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>"); |
|
|
|
|
if (cfNome.containsKey(firma.getCfFirmatario())) { |
|
|
|
|
title.append("<li>" + cfNome.get(firma.getCfFirmatario()) + "</li>"); |
|
|
|
|
} |
|
|
|
|
title.append("<li>"+firma.getCfFirmatario()); |
|
|
|
|
if (Validator.isNotNull(firma.getDtFirma())) { |
|
|
|
@ -316,8 +300,6 @@
|
|
|
|
|
} |
|
|
|
|
title.append("</ul>"); |
|
|
|
|
} |
|
|
|
|
//} |
|
|
|
|
|
|
|
|
|
%> |
|
|
|
|
<div class="nome_file"> |
|
|
|
|
<c:if test="<%=!inBO%>"> |
|
|
|
@ -327,20 +309,19 @@
|
|
|
|
|
<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 { |
|
|
|
|
String color = "txt-red"; |
|
|
|
|
if (Validator.isNull(docPratica.getDettPraticaIdRimozione())) { |
|
|
|
|
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 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)){ |
|
|
|
|
if (FineLavori.class.getName().equals(className)) { |
|
|
|
|
FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); |
|
|
|
|
if (fineLavori != null) { |
|
|
|
|
adding = fineLavori.getFullDescription(); |
|
|
|
@ -351,12 +332,12 @@
|
|
|
|
|
adding = collaudo.getFullDescription(); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); |
|
|
|
|
if(dettPratica!=null){ |
|
|
|
|
adding = dettPratica.getFullDescription(); |
|
|
|
|
long pk = docPratica.getClassPk(); |
|
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
|
} |
|
|
|
|
adding = dettPraticas.get(pk).getFullDescription(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
out.print(adding); |
|
|
|
|
%> |
|
|
|
|
</div> |
|
|
|
@ -364,9 +345,12 @@
|
|
|
|
|
<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 |
|
|
|
|
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); |
|
|
|
|
if(removing != null){ |
|
|
|
|
out.print(removing.getFullDescription()); |
|
|
|
|
long pk = docPratica.getDettPraticaIdRimozione(); |
|
|
|
|
if (0 != pk) { |
|
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
|
} |
|
|
|
|
out.print(dettPraticas.get(pk).getFullDescription()); |
|
|
|
|
} |
|
|
|
|
%> |
|
|
|
|
</div> |
|
|
|
@ -375,37 +359,38 @@
|
|
|
|
|
<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()); |
|
|
|
|
pk = docPratica.getClassPk(); |
|
|
|
|
if (!dettPraticas.containsKey(pk)) { |
|
|
|
|
dettPraticas.put(pk, DettPraticaLocalServiceUtil.fetchDettPratica(pk)); |
|
|
|
|
} |
|
|
|
|
DettPratica dett = dettPraticas.get(pk); |
|
|
|
|
if (dett != null) { |
|
|
|
|
if (dett.getIntegrazione() == 0) { |
|
|
|
|
sbProvenienza.append("Pratica Originale"); |
|
|
|
|
out.print("Pratica Originale"); |
|
|
|
|
} else { |
|
|
|
|
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)) { |
|
|
|
|
sbProvenienza.append("Variante # " + dett.getVarianteNumero()); |
|
|
|
|
out.print("Variante # " + dett.getVarianteNumero()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
%> |
|
|
|
|
<%=sbProvenienza.toString() %> |
|
|
|
|
|
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
<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"> |
|
|
|
|
</c:if> |
|
|
|
|
<c:if test='<%=!"page_geologica".equals(comingFrom) %>' > |
|
|
|
|
</c:when> |
|
|
|
|
<c:otherwise> |
|
|
|
|
<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 test='<%= !inBO %>'> |
|
|
|
@ -420,24 +405,22 @@
|
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div class='col-xs-6 col-sm-6 col-md-6 col-lg-6 <%=inBO ? "hidden" : ""%>'> |
|
|
|
|
<% |
|
|
|
|
if(firme.firmaIsPresent(user.getScreenName())){ |
|
|
|
|
%> |
|
|
|
|
<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> |
|
|
|
|
<% |
|
|
|
|
}else{ |
|
|
|
|
%> |
|
|
|
|
</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 %>" > |
|
|
|
|
<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> |
|
|
|
@ -446,7 +429,8 @@
|
|
|
|
|
<c:otherwise> |
|
|
|
|
<c:if test="<%= !inBO %>"> |
|
|
|
|
<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="comingFrom" value="<%= comingFrom %>" /> |
|
|
|
|
<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: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)%>"/> |
|
|
|
|
|
|
|
|
|
<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> |
|
|
|
|