diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index d11688cb..8dd1676c 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp index c9a715cc..deb81682 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp @@ -170,7 +170,10 @@ var ospedalieraId = ospedalieraRadio.attr("id"); var ospedalieraLabel = ospedalieraRadio.closest('label[for="' + ospedalieraId + '"]'); if(!rd.ospedalieraEnabled){ - ospedalieraRadio.prop('disabled', 'disabled').prop('checked', false); + var formValidator = Liferay.Form.get('<%= formName %>').formValidator; + ospedalieraRadio.prop('checked', false); + formValidator.validate(); + ospedalieraRadio.prop('disabled', 'disabled'); if(!ospedalieraLabel.hasClass('hidden')){ ospedalieraLabel.addClass('hidden'); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp index ff11cf5b..502fd493 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp @@ -22,6 +22,8 @@ boolean hasDelegaCompilazioneDomanda = (Boolean) SessionUtil.getDettPraticaObjec boolean disabledInput = !hasDelegaCompilazioneDomanda || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()); boolean disabledByIntegrazione = TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); + +boolean isPraticaOspedaliera = intPratica.isPraticaOspedaliera(); %> @@ -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