|
|
@ -44,8 +44,16 @@ boolean enabledByIntegrazione = DelegheUtil.hasDelegaCompilazioneDomanda(user.ge |
|
|
|
&& TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); |
|
|
|
&& TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); |
|
|
|
boolean isDisabled = disabledInput && !enabledByIntegrazione; |
|
|
|
boolean isDisabled = disabledInput && !enabledByIntegrazione; |
|
|
|
boolean isNewVariante = ParamUtil.getBoolean(request, "isNewVariante"); |
|
|
|
boolean isNewVariante = ParamUtil.getBoolean(request, "isNewVariante"); |
|
|
|
|
|
|
|
boolean disableViarch = !dettPratica.getLavoriPubblici() && !dettPratica.getIntervFinPub(); |
|
|
|
|
|
|
|
|
|
|
|
String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabledInput || isGeoEditable)); |
|
|
|
String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabledInput || isGeoEditable)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String hide1 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) ? "hideSection" : ""); |
|
|
|
|
|
|
|
String hide3 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q3) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P3) ? "hideSection" : ""); |
|
|
|
|
|
|
|
String hide8 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q8) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P8) ? "hideSection" : ""); |
|
|
|
|
|
|
|
String hide9 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q9) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9) ? "hideSection" : ""); |
|
|
|
|
|
|
|
String hide10 = (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) ? "hideSection" : ""); |
|
|
|
|
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
<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) %>" /> |
|
|
@ -61,7 +69,7 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dett-principali"> |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dett-principali"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="col-sm-12 col-md-12"> |
|
|
|
<div class="col-sm-12 col-md-12"> |
|
|
|
<div class="module-group group_dati_catastali"> |
|
|
|
<div class="module-group group_dati_catastali <%= hide1 %> <%= hide8 %> <%= hide10 %>"> |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" |
|
|
|
title="Normativa"> |
|
|
|
title="Normativa"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
@ -97,6 +105,7 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
<div class="<%= hide9 %>"> |
|
|
|
<c:if test="<%= (intPratica.getTipoRichiesta() == Constants.LIEVE_ENTITA) %>"> |
|
|
|
<c:if test="<%= (intPratica.getTipoRichiesta() == Constants.LIEVE_ENTITA) %>"> |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" type="text" name="interventoVoceP7" style="display:inline-block;width:80px;" label="intervento-voce-p7" /> |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" type="text" name="interventoVoceP7" style="display:inline-block;width:80px;" label="intervento-voce-p7" /> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
@ -117,14 +126,14 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
<aui:input type="textarea" name="intervFinPubDesc" disabled="<%=!dettPratica.getIntervFinPub() || disabledInput %>" label=""></aui:input> |
|
|
|
<aui:input type="textarea" name="intervFinPubDesc" disabled="<%=!dettPratica.getIntervFinPub() || disabledInput %>" label=""></aui:input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row row-padding-custom altro_check"> |
|
|
|
<div class="row row-padding-custom altro_check excludeOther <%= hide3 %>" data-cont="viarch"> |
|
|
|
<div class="col-md-12 col-lg-12"> |
|
|
|
<div class="col-md-12 col-lg-12"> |
|
|
|
<h4><%= LanguageUtil.get(pageContext, "interv-no-viarch") %></h4> |
|
|
|
<h4><%= LanguageUtil.get(pageContext, "interv-no-viarch") %></h4> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-md-12 col-lg-12" style="margin-left:20px;"> |
|
|
|
<div class="col-md-12 col-lg-12" style="margin-left:20px;"> |
|
|
|
<aui:input disabled="<%= disabledInput %>" name="intervInAreaDiInteresse" label="interv-in-area-di-interesse"/> |
|
|
|
<aui:input disabled="<%= disabledInput || disableViarch %>" name="intervInAreaDiInteresse" label="interv-in-area-di-interesse"/> |
|
|
|
<aui:input disabled="<%= disabledInput %>" name="intervNonModificante" label="interv-non-modificante"/> |
|
|
|
<aui:input disabled="<%= disabledInput || disableViarch%>" name="intervNonModificante" label="interv-non-modificante"/> |
|
|
|
<aui:input disabled="<%= disabledInput %>" name="intervNonAssoggettabile" label="interv-non-assoggettabile"/> |
|
|
|
<aui:input disabled="<%= disabledInput || disableViarch %>" name="intervNonAssoggettabile" label="interv-non-assoggettabile"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="row row-padding-custom "> |
|
|
@ -146,7 +155,7 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
label="estremi-prat-com"/> |
|
|
|
label="estremi-prat-com"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="excludeOther" data-cont="impresa"> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" |
|
|
@ -154,6 +163,7 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
label="norm-lavori-in-proprio"/> |
|
|
|
label="norm-lavori-in-proprio"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" |
|
|
@ -161,6 +171,8 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
label="nomina-impresa"/> |
|
|
|
label="nomina-impresa"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="excludeOther" data-cont="direttore_lavori"> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" |
|
|
@ -168,6 +180,8 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
label="norm-lavori-no-direttore"/> |
|
|
|
label="norm-lavori-no-direttore"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" |
|
|
@ -175,6 +189,8 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
label="nomina-direttore-lavori"/> |
|
|
|
label="nomina-direttore-lavori"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="excludeOther" data-cont="collaudo"> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="noCollaudo" |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="noCollaudo" |
|
|
@ -182,6 +198,7 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="row row-padding-custom "> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="collaudoStatico" |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="collaudoStatico" |
|
|
@ -196,9 +213,7 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
label="nomina-collaudatore"/> |
|
|
|
label="nomina-collaudatore"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row row-padding-custom" style="display:none;"> |
|
|
|
<div class="row row-padding-custom" style="display:none;"> |
|
|
|
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"> |
|
|
|
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"> |
|
|
@ -229,6 +244,7 @@ String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, (disabl |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</liferay-ui:panel> |
|
|
|
</liferay-ui:panel> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -296,7 +312,7 @@ function messageListener(event) { |
|
|
|
<aui:row> |
|
|
|
<aui:row> |
|
|
|
<div class="col-xs-12 col-md-6"> |
|
|
|
<div class="col-xs-12 col-md-6"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row <%= hide10 %>"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" name="descLongIntervento" |
|
|
|
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione %>" name="descLongIntervento" |
|
|
|
label="desc-long-intervento"/> |
|
|
|
label="desc-long-intervento"/> |
|
|
@ -328,7 +344,7 @@ function messageListener(event) { |
|
|
|
disabled="<%= true %>" onClick="localize(true)" value="Localizza"/> |
|
|
|
disabled="<%= true %>" onClick="localize(true)" value="Localizza"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="row <%= hide1 %>"> |
|
|
|
<% |
|
|
|
<% |
|
|
|
String[] geolocalization = BeanParamUtil.getString(dettPratica, request, "localizzazioneGeografica","").split(Pattern.quote("|")); |
|
|
|
String[] geolocalization = BeanParamUtil.getString(dettPratica, request, "localizzazioneGeografica","").split(Pattern.quote("|")); |
|
|
|
%> |
|
|
|
%> |
|
|
@ -352,7 +368,7 @@ function messageListener(event) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-12 col-md-6"> |
|
|
|
<div class="col-xs-12 col-md-6"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="row" style="margin-bottom:20px;"> |
|
|
|
<div class="row <%= hide1 %>" style="margin-bottom:20px;"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<div class="col-xs-12"> |
|
|
|
<aui:input disabled="<%= isDisabled %>" type="text" name="estremiCatastali" id="input_estremiCatastali" |
|
|
|
<aui:input disabled="<%= isDisabled %>" type="text" name="estremiCatastali" id="input_estremiCatastali" |
|
|
|
label="estremi-catastali"/> |
|
|
|
label="estremi-catastali"/> |
|
|
@ -405,8 +421,8 @@ function messageListener(event) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div>--> |
|
|
|
</div>--> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-12"> |
|
|
|
<div class="col-sm-12 col-md-12 "> |
|
|
|
<div class="module-group group_dati_catastali"> |
|
|
|
<div class="module-group group_dati_catastali <%= hide1 %> <%= hide10 %>"> |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" |
|
|
|
title="destinazione" id="destinazioneinazione"> |
|
|
|
title="destinazione" id="destinazioneinazione"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
@ -534,7 +550,7 @@ function messageListener(event) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-sm-12 col-md-12"> |
|
|
|
<div class="col-sm-12 col-md-12"> |
|
|
|
<div class="module-group group_dp_sc_nr"> |
|
|
|
<div class="module-group group_dp_sc_nr <%= hide1 %> <%= hide10 %>"> |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" |
|
|
|
title="dp-sc-ti" id="sistemi_costruttivi"> |
|
|
|
title="dp-sc-ti" id="sistemi_costruttivi"> |
|
|
|
<div class="container-fluid" style="padding: 0;"> |
|
|
|
<div class="container-fluid" style="padding: 0;"> |
|
|
@ -553,7 +569,7 @@ function messageListener(event) { |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="tcManutOrdStraord" label="tc-manut-ord-straord" id="tc-manut-ord-straord"/> |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="tcManutOrdStraord" label="tc-manut-ord-straord" id="tc-manut-ord-straord"/> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li class="<%= hide8 %> <%= hide9 %>"> |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="tcNoOpereEscavazione" label="tc-no-opere-escavazione" id="tc-no-opere-escavazione"/> |
|
|
|
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" name="tcNoOpereEscavazione" label="tc-no-opere-escavazione" id="tc-no-opere-escavazione"/> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
@ -575,7 +591,7 @@ function messageListener(event) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-sm-12 col-md-12"> |
|
|
|
<div class="col-sm-12 col-md-12"> |
|
|
|
<div class="module-group group_dati_catastali de__tipologia-costruttiva"> |
|
|
|
<div class="module-group group_dati_catastali de__tipologia-costruttiva <%= hide1 %> <%= hide10 %>"> |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" |
|
|
|
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" |
|
|
|
title="dp-sc-tc"> |
|
|
|
title="dp-sc-tc"> |
|
|
|
<div class="container-fluid desc_edificio-tipologia"> |
|
|
|
<div class="container-fluid desc_edificio-tipologia"> |
|
|
@ -854,14 +870,23 @@ $('#<portlet:namespace/>lavoriPubbliciCheckbox, #<portlet:namespace/>intervFinPu |
|
|
|
$.each(toDisable, function(index, val) { |
|
|
|
$.each(toDisable, function(index, val) { |
|
|
|
$('#<portlet:namespace/>'+val+'Checkbox').attr('disabled', true).prop('disabled', true).prop('checked', false); |
|
|
|
$('#<portlet:namespace/>'+val+'Checkbox').attr('disabled', true).prop('disabled', true).prop('checked', false); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
$('.excludeOther[data-cont="viarch"] input[type="checkbox"]').removeAttr('disabled'); |
|
|
|
|
|
|
|
$('.excludeOther[data-cont="viarch"] input[type="checkbox"]').prop('disabled', false); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$.each(toDisable, function(index, val) { |
|
|
|
$.each(toDisable, function(index, val) { |
|
|
|
$('#<portlet:namespace/>'+val+'Checkbox').removeAttr('disabled'); |
|
|
|
$('#<portlet:namespace/>'+val+'Checkbox').removeAttr('disabled'); |
|
|
|
$('#<portlet:namespace/>'+val+'Checkbox').prop('disabled', false); |
|
|
|
$('#<portlet:namespace/>'+val+'Checkbox').prop('disabled', false); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
$('.excludeOther[data-cont="viarch"] input[type="checkbox"]').attr('disabled', true).prop('disabled', true).prop('checked', false); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.excludeOther input[type="checkbox"]').change(function (e) { |
|
|
|
|
|
|
|
var cont = $(this).parents('.excludeOther').data('cont'); |
|
|
|
|
|
|
|
$('.excludeOther[data-cont="'+cont+'"] input[type="checkbox"]').not(this).prop('checked', false).removeAttr('checked'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('#<portlet:namespace/>intervFinPubCheckbox').change(function () { |
|
|
|
$('#<portlet:namespace/>intervFinPubCheckbox').change(function () { |
|
|
|
var _this = $(this); |
|
|
|
var _this = $(this); |
|
|
|
if (_this.is(":checked")) { |
|
|
|
if (_this.is(":checked")) { |
|
|
|