<%@ include file="/project/include.jsp" %>	
<script type="text/javascript">	
function onChangePropCommissione() {
	var macrotipologia = getComboValueById('idMacrotipologia');
	var idTipoCommissione = getComboValueById('idTipoCommissione');
	var idTipoIntervento = getComboValueById('idTipoIntervento');
	var idServizioGestore = document.getElementById('idServizioProponente').value;
	var idVoceBudget = getComboValueById('idVoceBudget');
	var idImpegnoDiSpesa = getComboValueById('idImpegnoDiSpesa');

	var params = 'macrotipologia=' + macrotipologia + '&idServizioGestore=' + idServizioGestore + '&idTipoCommissione=' + idTipoCommissione + '&idTipoIntervento=' + idTipoIntervento 
		+ '&idVoceBudget=' + idVoceBudget + '&idImpegnoDiSpesa=' + idImpegnoDiSpesa;
	
	var selectStato = document.getElementById('idStatoCorrente');
	if (selectStato) {
		var idStato = getComboValueById('idStatoCorrente');
		params+='&idStato=' + idStato;
	}

	jsLoadMultipleSelectOptions('it.cedaf.icare.domande.commons.LoadCommissioneSearchMultiSelectOptions', params, JS_SYNC);
}	
</script>

<shell:fieldset title="${j:bundle('LBL_domande_commissione_infoGen_SET')}">
	<table width="100%" 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="dataCommissione" />
			</td>
			<td class="form-values">
				<j:bind prop="dataCommissioneDa">
					${j:bundle('LBL_ricercaDa')} <j:text class="form-date" id="dataCommissioneDaCld" />
					<shell:calendar inputId="dataCommissioneDaCld" />
					<shell:error />
				</j:bind>
				<j:bind prop="dataCommissioneA">
					a: <j:text class="form-date" id="dataCommissioneACld" />
					<shell:calendar inputId="dataCommissioneACld" />
					<shell:error />
				</j:bind>
			</td>
 		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="dataEsito" />
			</td>
			<td class="form-values">
				<j:bind prop="dataEsitoDa">
					${j:bundle('LBL_ricercaDa')} <j:text class="form-date" id="dataEsitoDaCld" />
					<shell:calendar inputId="dataEsitoDaCld" />
					<shell:error />
				</j:bind>
				<j:bind prop="dataEsitoA">
					a: <j:text class="form-date" id="dataEsitoACld" />
					<shell:calendar inputId="dataEsitoACld" />
					<shell:error />
				</j:bind>
			</td>
 		</tr> 		
		<tr>
			<td class="form-label">
				<shell:label prop="descrizione" />
			</td>
			<td class="form-values">
				<j:bind prop="descrizione">
					<j:text class="form-long-text" />
				</j:bind>	
			</td>
		</tr>
		<tr>   
			<td class="form-label">
		    	<shell:label prop="servizioProponente" />
	   		</td>
			<td class="form-values">
		    	<j:bind prop="servizioProponente">
					<j:select id="idServizioProponente" class="form-input" emptyOptionDescr=" " onChange="onChangePropCommissione();"/>
				</j:bind>	
			</td>
		</tr>			
		<tr>   
	      	<td class="form-label">
	    		<shell:label prop="macrotipologia" />
	    	</td>
			<td class="form-values">
		    	<j:bind prop="macrotipologia">
					<j:select id="idMacrotipologia" class="form-input" emptyOptionDescr=" " onChange="onChangePropCommissione();"/>
				</j:bind>	
			</td>
		</tr>		 		
		<tr>   
	      	<td class="form-label">
	    		<shell:label prop="tipoCommissione" />
	    	</td>
			<td class="form-values">
		    	<j:bind prop="tipoCommissione">
					<j:select id="idTipoCommissione" class="form-input" emptyOptionDescr=" " onChange="onChangePropCommissione();"/>
				</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="idTipoIntervento" class="form-input" emptyOptionDescr=" " onChange="onChangePropCommissione();"/>
				</j:bind>	
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="statoCorrente"  />
			</td>
			<td class="form-values">
				<j:bind prop="statoCommissione">
					<j:select class="form-input" id="idStatoCorrente" emptyOptionDescr="" />							
					<shell:error />
				</j:bind>	
			</td>
		</tr>		
 	</table>
</shell:fieldset>