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

<script type="text/javascript">
	function gotoNuovaAttivazione() {
		buiGotoCustomMode('Elabora', 'fromMode=view');
	}	

	/** */
	function stampaPai(){
		var soggetto = cpGetMasterColumnValueOfCurrentRow("nominativoAssistitoStampa");		
		var idIstanzaScheda = cpGetMasterColumnValueOfCurrentRow('idSchedaPai');
		if (idIstanzaScheda){
			var idPic = cpGetMasterColumnValueOfCurrentRow('idPic');
			var params = 'idScheda=' + idIstanzaScheda + '&idPic=' + idPic + '&soggetto=' + soggetto + '&context=Pic' + shellGetSelectedRowParam();
			shellDownload('it.cedaf.icare.customers.zcompar.etc.StampaPaiBuonoAttivazioneContentProvider', params);
		} else {
			alert('PAI non presente.');
		}
	}
</script>


<shell:grid description="numeroBuono,10%; codiceFiscale,30%; nominativoSoggetto,40%; dataAttivazione,10%; dataScadenza,10%" />