regPrestazioniExcelSearch.jsp 3.44 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
<%@ include file="/project/include.jsp" %>

<script type="text/javascript">
var tipiIntInsStruttura = '${dto_tipiIntInsStruttura}';

registerOnDocumentLoad(function() {	
	showHideStruttura();
});

function onChangeTipoIntervento() {
	var idTipoIntervento = getComboValueById('selectTipoIntervento');
	var params = 'idTipoIntervento=' + idTipoIntervento;
	showHideStruttura();
	loadStandardSelectOptionsAndFill('selectStruttura', 'it.cedaf.icare.customers.zcompar.binding.requestbean.valuesetproviders.StrutturaCaricamentoAccessiValueSetProvider(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="Importazione Accessi">
	<table border="0" cellspacing="3" cellpadding="0" >
		<tr>
			<td class="form-label">
				<shell:label prop="dataCaricamento" />
			</td>
			<td class="form-values">
				da: 
				<j:bind prop="dataCaricamentoDa">
					<j:text class="form-date" id="dataCaricamentoDaCLD" />
					<shell:calendar inputId="dataCaricamentoDaCLD" />				
					<shell:error />
				</j:bind>
				
				a:
				<j:bind prop="dataCaricamentoA">
					<j:text class="form-date" id="dataCaricamentoACLD" />
					<shell:calendar inputId="dataCaricamentoACLD" />					
					<shell:error />
				</j:bind>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="periodoRiferimento" />
			</td>
			<td class="form-values">
				da: 
				<j:bind prop="periodoRiferimentoDa">
					<j:text class="form-date" id="periodoRiferimentoDaCLD" />
					<shell:calendar inputId="periodoRiferimentoDaCLD" />				
					<shell:error />
				</j:bind>
				
				a:
				<j:bind prop="periodoRiferimentoA">
					<j:text class="form-date" id="periodoRiferimentoACLD" />
					<shell:calendar inputId="periodoRiferimentoACLD" />					
					<shell:error />
				</j:bind>
			</td>
		</tr>
 		<tr>
			<td class="form-label">
				<shell:label prop="tipoCaricamento" />
			</td>
			<td class="form-values">
				<j:bind prop="tipoCaricamento">
					<j:select class="form-input" emptyOptionDescr=""/>
					<shell:error />
				</j:bind>	
			</td>
 		</tr>
 		<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> 	 		
 		<tr>
			<td class="form-label">
				<shell:label prop="esito" />
			</td>
			<td class="form-values">
				<j:bind prop="importazioneRiuscita">
					<j:radio displayValue=""/>Tutti
					<j:radio displayValue="si"/>Ok
					<j:radio displayValue="no"/>Errore
					<shell:error />
				</j:bind>	
			</td>
 		</tr>
	</table>
</shell:fieldset>