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

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

<%@page import="it.cedaf.icare.business.entities.autorizzazioni.IcaroAuthFunctions"%>

<script type="text/javascript">	
	function reloadStrutturaOrganizzativaSelects(suffix) {
		var authCode = '<%=IcaroAuthFunctions.PRESA_IN_CARICO_CODE%>';
		var idServizio = getComboValueById('idServizio' + suffix);
		var idUo = '';
		var idOp = '';
		try {
			idUo = getComboValueById('idUo' + suffix);
		} catch (e) {
		}
		try {
			idOp = getComboValueById('idOp' + suffix);
		} catch (e) {
		}
				
		var params = 'suffix='+suffix + '&authCode=' + authCode + '&idServizio=' + idServizio + '&idUo=' + idUo + '&idOp=' + idOp;
		
		jsLoadMultipleSelectOptions('it.cedaf.icare.estrazioni.commons.LoadStrutturaOrganizzativaMultiSelectOptions', params, JS_SYNC);
	}

</script>

<shell:fieldset title="${j:bundle('LBL_estrazioni_parmsel_SET')}">
<table border="0" cellspacing="3" cellpadding="0">
	
	<icare:estrazioniExistsParam name="periodoRiferimentoDa">
	<tr>
		<td class="form-label">
			<shell:label prop="periodoRiferimentoDa" />
		</td>
		<td class="form-values">
			${j:bundle('LBL_ricercaDa')}
			<j:bind prop="periodoRiferimentoDa">
				<j:text class="form-date" id="periodoRiferimentoDa_cld" />
				<shell:calendar inputId="periodoRiferimentoDa_cld" />
				<shell:error />
			</j:bind>	
		</td>
		<td class="form-values">
			a:
			<j:bind prop="periodoRiferimentoA">
				<j:text class="form-date" id="periodoRiferimentoA_cld" />
				<shell:calendar inputId="periodoRiferimentoA_cld" />
				<shell:error />
			</j:bind>	
		</td>
	</tr>		
	</icare:estrazioniExistsParam>
	
	<icare:estrazioniExistsParam name="meseRiferimento">
	<tr>
		<td class="form-label">
			<shell:label prop="meseRiferimento" />
		</td>
		<td class="form-values">
			<j:bind prop="meseRiferimento">
				<j:select class="form-input" emptyOptionDescr="" />
				<shell:error />
			</j:bind>	
		</td>
		<td class="form-values">
			&nbsp;&nbsp;anno:
			<j:bind prop="annoRiferimento">
				<j:text class="form-short-text" />
				<shell:error />				
			</j:bind>				
		</td>
	</tr>		
	</icare:estrazioniExistsParam>

	<icare:estrazioniExistsParam name="annoRif">
	<tr>
		<td class="form-label">
			<shell:label prop="annoRif" />
		</td>
		<td class="form-values" colspan="2">
			<j:bind prop="annoRif">
				<j:text class="form-short-text" />
				<shell:error />				
			</j:bind>				
		</td>
	</tr>		
	</icare:estrazioniExistsParam>
	
	<icare:estrazioniExistsParam name="dataInizioDa">
	<tr>
		<td class="form-label">
			<shell:label prop="dataInizioDa" />
		</td>
		<td class="form-values">
			${j:bundle('LBL_ricercaDa')}
			<j:bind prop="dataInizioDa">
				<j:text class="form-date" id="dataInizioDa_cld" />
				<shell:calendar inputId="dataInizioDa_cld" />
				<shell:error />
			</j:bind>	
		</td>
		<td class="form-values">
			a:
			<j:bind prop="dataInizioA">
				<j:text class="form-date" id="dataInizioA_cld" />
				<shell:calendar inputId="dataInizioA_cld" />
				<shell:error />
			</j:bind>	
		</td>
	</tr>		
	</icare:estrazioniExistsParam>

	<icare:estrazioniExistsParam name="dataChiusuraDa">
	<tr>
		<td class="form-label">
			<shell:label prop="dataChiusuraDa" />
		</td>
		<td class="form-values">
			${j:bundle('LBL_ricercaDa')}
			<j:bind prop="dataChiusuraDa">
				<j:text class="form-date" id="dataChiusuraDa_cld" />
				<shell:calendar inputId="dataChiusuraDa_cld" />
				<shell:error />
			</j:bind>	
		</td>
		<td class="form-values">
			a:
			<j:bind prop="dataChiusuraA">
				<j:text class="form-date" id="dataChiusuraA_cld" />
				<shell:calendar inputId="dataChiusuraA_cld" />
				<shell:error />
			</j:bind>	
		</td>
	</tr>		
	</icare:estrazioniExistsParam>
		
	<icare:estrazioniExistsParam name="tipoIntervento">
	<tr>
		<td class="form-label">
			<shell:label prop="tipoIntervento" />
		</td>
		<td class="form-values" colspan="2">
			<j:bind prop="tipoIntervento">
				<j:select class="form-input" id="idTipoIntervento" emptyOptionDescr="" onChange="javascript:onChangeTipoIntervento();" />
				<shell:error />
			</j:bind>	
		</td>		
	</tr>
	</icare:estrazioniExistsParam>

	<icare:estrazioniExistsParam name="servizioRiferimento">
	<tr>
		<td class="form-label">
			<shell:label prop="servizioRiferimento" />
		</td>
		<td class="form-values" colspan="2">
			<j:bind prop="servizioRiferimento">
				<j:select id="idServizioRif" class="form-input" emptyOptionDescr="" onChange="javascript:reloadStrutturaOrganizzativaSelects('Rif');" />
				<shell:error />
			</j:bind>	
		</td>
	</tr>
	</icare:estrazioniExistsParam>
	<icare:estrazioniExistsParam name="uoRiferimento">
	<tr>
		<td class="form-label">
			<shell:label prop="uoRiferimento" />
		</td>
		<td class="form-values" colspan="2">
			<j:bind prop="uoRiferimento">
				<j:select class="form-input" id="idUoRif" emptyOptionDescr=""  onChange="javascript:reloadStrutturaOrganizzativaSelects('Rif');" />
				<shell:error />
			</j:bind>	
		</td>
	</tr>
	</icare:estrazioniExistsParam>
		
	<icare:estrazioniExistsParam name="operatoreRiferimento">
	<tr>
		<td class="form-label">
			<shell:label prop="operatoreRiferimento" />
		</td>
		<td class="form-values" colspan="2">
			<j:bind prop="operatoreRiferimento">
				<j:select id="idOpRif" class="form-input" emptyOptionDescr=""  />
				<shell:error />
			</j:bind>	
		</td>
	</tr>
	</icare:estrazioniExistsParam>
	
	<icare:estrazioniExistsParam name="cognomeAssistitoDa">
	<tr>
		<td class="form-label">
			<shell:label prop="cognomeAssistitoDa" />
		</td>
		<td class="form-values">
			${j:bundle('LBL_ricercaDa')}
			<j:bind prop="cognomeAssistitoDa">
				<j:select class="form-input" emptyOptionDescr="" />
				<shell:error />
			</j:bind>	
		</td>
		<td class="form-values">
			a:
			<j:bind prop="cognomeAssistitoA">
				<j:select class="form-input" emptyOptionDescr="" />
				<shell:error />
			</j:bind>	
		</td>
	</tr>
	</icare:estrazioniExistsParam>
	
	<icare:estrazioniExistsParam name="nominativoAssistito">
	<tr>
		<td class="form-label">
			<shell:label prop="nominativoAssistito" />
		</td>
		<td class="form-values">
			cognome:
			<j:bind prop="cognomeAssistito">
				<j:text class="form-normal-text" />
				<shell:error />
			</j:bind>	
		</td>
		<td class="form-values">
			nome:
			<j:bind prop="nomeAssistito">
				<j:text class="form-normal-text" />
				<shell:error />
			</j:bind>	
		</td>
	</tr>
	</icare:estrazioniExistsParam>
	
	<icare:estrazioniExistsParam name="dataNascitaAssistitoDa">
	<tr>
		<td class="form-label">
			<shell:label prop="dataNascitaAssistitoDa" />
		</td>
		<td class="form-values">
			${j:bundle('LBL_ricercaDa')}
			<j:bind prop="dataNascitaAssistitoDa">
				<j:text class="form-date" id="dataNascitaAssistitoDa_cld" />
				<shell:calendar inputId="dataNascitaAssistitoDa_cld" />
				<shell:error />
			</j:bind>	
		</td>
		<td class="form-values">
			a:
			<j:bind prop="dataNascitaAssistitoA">
				<j:text class="form-date" id="dataNascitaAssistitoA_cld" />
				<shell:calendar inputId="dataNascitaAssistitoA_cld" />
				<shell:error />
			</j:bind>	
		</td>
	</tr>	
	</icare:estrazioniExistsParam>			
</table>
</shell:fieldset>