@@ -229,22 +231,26 @@ boolean disabledByIntegrazione = TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equ
<%=LanguageUtil.get(pageContext, "de-uso") %>
+ <%
+ String deUsoValue = BeanParamUtil.getString(dettPratica, request, "deUso");
+ boolean isUsoSelected = !deUsoValue.equals("") && !deUsoValue.equals(null);
+ %>
+ type="radio" checked='<%= deUsoValue.equalsIgnoreCase("abitativo") %>' value="abitativo"/>
+ type="radio" checked='<%= deUsoValue.equalsIgnoreCase("produttivo") %>' value="produttivo"/>
+ type="radio" checked='<%= deUsoValue.equalsIgnoreCase("commercio") %>' value="commercio"/>
+ type="radio" checked='<%= deUsoValue.equalsIgnoreCase("uffici") %>' value="uffici"/>
+ type="radio" checked='<%= deUsoValue.equalsIgnoreCase("servizi") %>' value="servizi"/>
-
+ type="radio" checked='<%= deUsoValue.equalsIgnoreCase("deposito") %>' value="deposito"/>
+
+ type="radio" checked='<%= deUsoValue.equalsIgnoreCase("turistico") %>' value="turistico"/>
@@ -252,15 +258,21 @@ boolean disabledByIntegrazione = TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equ
<%=LanguageUtil.get(pageContext, "de-utilizzazione") %>
+ <%
+ String deUtilizzazioneValue = BeanParamUtil.getString(dettPratica, request, "deUtilizzazione");
+ String[] utilizzazioneValuesArray = {"1","2","3"};
+ boolean isUtilizzazioneSelected = !deUtilizzazioneValue.equals("") && !deUtilizzazioneValue.equals(null);
+ %>
+ type="radio" value="1"
+ checked='<%= deUtilizzazioneValue.equalsIgnoreCase("1") || (!isUtilizzazioneSelected && isPraticaOspedaliera) %>'/>
+ type="radio" checked='<%= deUtilizzazioneValue.equalsIgnoreCase("2") %>' value="2"/>
+ type="radio" checked='<%= deUtilizzazioneValue.equalsIgnoreCase("3") %>' value="3"/>
@@ -1068,4 +1080,15 @@ function calcPubPerc(val) {
var perc = 100 - val;
$(".pub-percent input").val(perc);
}
+
+<% if(isPraticaOspedaliera){ %>
+$(document).ready(function(){
+ var pubPercent = $(".pub-percent input");
+ var privPercent = $(".priv-percent input");
+ if(pubPercent.val() == 0 && privPercent.val() == 0){
+ pubPercent.val(100);
+ calcPrivPerc(100);
+ }
+});
+<% } %>
\ No newline at end of file