validazioneMensilePrestazioniBuoniSearch.jsp 4.24 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
<%@ include file="/project/include.jsp" %>

<script type="text/javascript">
	var tipiIntInsStruttura = '${dto_tipiIntInsStruttura}';
		
	registerOnDocumentLoad(function() {	
		showHideStruttura();

	});

	function onChangeEnteErogatore() {
		var idEnteErogatore = getComboValueById('selectEnteErogatore');
		showHideStruttura();
		var params = 'idEnteErogatore=' + idEnteErogatore;
		loadStandardSelectOptionsAndFill('selectTipoIntervento', 'it.cedaf.icare.interventi.control.binding.requestbean.valuesetproviders.TipoInterventoCaricamentoAccessiBuoniValueSetProvider(idEnteErogatore)', params, '');
	}
	
	function onChangeTipoIntervento() {
		var idTipoIntervento = getComboValueById('selectTipoIntervento');
		showHideStruttura();		
		var params = 'idTipoIntervento=' + idTipoIntervento;

		if (document.getElementById('selectEnteErogatore')) {
			var idEnteErogatore = getComboValueById('selectEnteErogatore');
			params = 'idEnteErogatore=' + idEnteErogatore + '&' + params;
		}
		
		loadStandardSelectOptionsAndFill('selectStruttura', 'it.cedaf.icare.interventi.control.binding.requestbean.valuesetproviders.StrutturaCaricamentoAccessiBuoniValueSetProvider(idEnteErogatore,idTipoIntervento,)', params, '');
	}

	function showHideStruttura() {
		var idTipoIntervento = getComboValueById('selectTipoIntervento');
		if (tipiIntInsStruttura == '') {
			document.getElementById('trStruttura').style.display='none';
		} else {
			var tipiIntIS = tipiIntInsStruttura.split(',');
			for (var i = 0; i < tipiIntIS.length; i++) {
				if (tipiIntIS[i] == idTipoIntervento) {
					document.getElementById('trStruttura').style.display='';
					return;
				}
			}
			document.getElementById('trStruttura').style.display='none';
		}
	}
</script>

<shell:fieldset title="Informazioni generali">					
	<table border="0" cellspacing="3" cellpadding="0" >
		<tr>
			<td class="form-label">
				<shell:label prop="anno" />
			</td>
			<td class="form-values">
				<j:bind prop="anno">
					<j:text id="idAnno" class="form-short-text" maxlength="4"  />
					<shell:error />
				</j:bind>						
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="mese"  />
			</td>	
			<td class="form-values" >
				<j:bind prop="mese">
					<j:select class="form-input" id="idMese" emptyOptionDescr=""/>
					<shell:error />
				</j:bind>						
			</td>
		</tr>
		<c:if test="${empty dto_enteErogatoreLogged || dto_enteErogatoreLogged=='false' }">
	 		<tr>
				<td class="form-label">
					<shell:label prop="enteErogatore" />
				</td>
				<td class="form-values">
					<j:bind prop="enteErogatore">
						<j:select id="selectEnteErogatore" class="form-input" emptyOptionDescr="" onchange="onChangeEnteErogatore();"/>
						<shell:error />
					</j:bind>	
				</td>
	 		</tr> 
 		</c:if>					
 		<tr>
			<td class="form-label">
				<shell:label prop="tipoIntervento" />
			</td>
			<td class="form-values">
				<j:bind prop="tipoIntervento">
					<j:select id="selectTipoIntervento" class="form-input" emptyOptionDescr="" onchange="onChangeTipoIntervento();"/>
					<shell:error />
				</j:bind>	
			</td>
 		</tr> 	 		
 		<tr id="trStruttura" style="display:none">
			<td class="form-label">
				<shell:label prop="struttura" />
			</td>
			<td class="form-values">
				<j:bind prop="struttura">
					<j:select id="selectStruttura" class="form-input" emptyOptionDescr="" />
					<shell:error />
				</j:bind>	
			</td>
 		</tr> 	
		<c:if test="${empty dto_enteErogatoreLogged || dto_enteErogatoreLogged=='false' }">
	 		<tr>
				<td class="form-label">
					<shell:label prop="validPrestEnteErog" />
				</td>
				<td class="form-values">
					<j:bind prop="validPrestEnteErog">
						<j:radio displayValue="no" />${j:bundle('LBL_no')}
						<j:radio displayValue="si" />${j:bundle('LBL_si')}
						<j:radio displayValue="" />${j:bundle('LBL_tutti')}
						<shell:error />
					</j:bind>	
				</td>
	 		</tr> 
	 		<tr>
				<td class="form-label">
					<shell:label prop="validPrestServGest" />
				</td>
				<td class="form-values">
					<j:bind prop="validPrestServGest">
						<j:radio displayValue="no" />${j:bundle('LBL_no')}
						<j:radio displayValue="si" />${j:bundle('LBL_si')}
						<j:radio displayValue="" />${j:bundle('LBL_tutti')}
						<shell:error />
					</j:bind>	
				</td>
	 		</tr> 	 		
 		</c:if>		 		
	</table>
</shell:fieldset>