<%@ include file="/project/include.jsp" %>

<script type="text/javascript">		
	function onChangeTipoValutazione() {
		var idTipoVal = getComboValueById('idTipoValutazione');
		if (document.getElementById('idEsitoValutazione')) {
			loadStandardSelectOptionsAndFill('idEsitoValutazione', 
				'it.cedaf.icare.valutazioni.control.binding.requestbean.valuesetproviders.EsitoValutazioneValueSetProvider(idTipoValutazione)', 
				'idTipoValutazione=' + idTipoVal, " ");
		}
	}
</script> 

<table border="0" width="100%" cellpadding="5">
	<tr>
		<td width="50%" valign="top">
				
			<shell:fieldset title="${j:bundle('LBL_infogenValutazioni_SET')}">
				<table border="0" cellspacing="3" cellpadding="0" >
					<tr>
						<td class="form-label">
							<shell:label prop="icaroCode" />
						</td>
						<td class="form-values">
							<j:bind prop="icaroCode">
								<j:text class="form-normal-text" />
							</j:bind>
						</td>
					</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="dataCollocazione" />
						</td>
						<td class="form-values">
							<j:bind prop="dataValutazioneDa">
								${j:bundle('LBL_ricercaDa')} <j:text class="form-date" id="dataValutazioneDaCld" />
								<shell:calendar inputId="dataValutazioneDaCld" />
								<shell:error />
							</j:bind>
							<j:bind prop="dataValutazioneA">
								a: <j:text class="form-date" id="dataValutazioneACld" />
								<shell:calendar inputId="dataValutazioneACld" />
								<shell:error />
							</j:bind>	
						</td>
			 		</tr>		
					<tr>   
						<td class="form-label">
					    	<shell:label prop="tipoValutazione" />
				    	</td>
						<td class="form-values">
						    <j:bind prop="tipoValutazione">
								<j:select id="idTipoValutazione" class="form-input" emptyOptionDescr=" " onChange="onChangeTipoValutazione();"/>
							</j:bind>
						</td>
					</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="esitoValutazione" />
						</td>
						<td class="form-values">
							<j:bind prop="esitoValutazione">
								<j:select id="idEsitoValutazione" class="form-input" emptyOptionDescr=" " />
							</j:bind>
						</td>
					</tr>
					<tr>   
						<td class="form-label">
					    	<shell:label prop="luogoVisita" />
				    	</td>
						<td class="form-values">
						    <j:bind prop="luogoVisita">
								<j:select class="form-input" emptyOptionDescr=" "/>
							</j:bind>
						</td>
					</tr>
				</table>
			</shell:fieldset>
			
			<shell:fieldset title="${j:bundle('LBL_infooprifValutazioni_SET')}">
				<table border="0" cellspacing="3" cellpadding="0" >
					<tr>
						<td class="form-label">
							<shell:label prop="qualificaOpRiferimento" />
						</td>
						<td class="form-values">
							<j:bind prop="qualificaOpRiferimento">
								<j:select class="form-input" id="qualifOpRif" emptyOptionDescr=" " /> 
								<shell:error />
							</j:bind>
						</td>
					</tr>					
					<tr>
						<td class="form-label">
							<shell:label prop="operatoreRiferimento" />
						</td>
						<td class="form-values">
							<j:bind prop="operatoreRiferimento">
								<j:select class="form-input" id="opRif" emptyOptionDescr=" " onchange="getAllUnitaOperative('opRif','uoRif')" />
							</j:bind>
						</td>
					</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="uoRiferimento" />
						</td>
						<td class="form-values">
							<j:bind prop="uoRiferimento">
								<j:select class="form-input" id="uoRif" onchange="juiceClearSelectTitleOptions(this);"/>
							</j:bind>
						</td>
					</tr>
				</table>
			</shell:fieldset>				
			<shell:fieldset title="${j:bundle('LBL_infoopabiValutazioni_SET')}">
				<table border="0" cellpadding="0" cellspacing="3">
					<tr>
						<td class="form-label">
							<shell:label prop="qualificaOpAbilitato" />
						</td>
						<td class="form-values">
							<j:bind prop="qualificaOpAbilitato">
								<j:select class="form-input" id="qualifOpAb" emptyOptionDescr=" " /> 
								<shell:error />
							</j:bind>
						</td>
					</tr>					
					<tr>
						<td class="form-label">
							<shell:label prop="operatoreAbilitato" />
						</td>
						<td class="form-values">
							<j:bind prop="operatoreAbilitato">
								<j:select class="form-input" id="opAb" emptyOptionDescr=" " onchange="getUOAbilitateSearch('opAb','uoAb')" /> 
								<shell:error />
							</j:bind>
						</td>
					</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="uoAbilitato" />
						</td>
						<td class="form-values">
							<j:bind prop="uoAbilitata">
								<j:select class="form-input" id="uoAb" onchange="juiceClearSelectTitleOptions(this);"/>
								<shell:error />
							</j:bind>
						</td>
					</tr>
				</table>
			</shell:fieldset>				
		</td>
		<td width="50%" valign="top">
			<j:tile name="anagrafiche.soggettoSearchTile"/>
		</td>
	</tr>
</table>