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

<script type="text/javascript">
	
	function cpOnChangeMasterSelection(row) {		
		var enableToolBarLink = cpGetColumnValueOfRow(CP_MASTER_TABLE_ID, row, 'button_sh_stb__interventi__toolbarLink_enabled');
		var toolbarLinkInterventi = document.getElementById('toolbarLinkList__interventi');
		var toolbarButtonInterventi = document.getElementById('toolbarLinkList__interventi_button');
		if (enableToolBarLink && toolbarLinkInterventi && toolbarButtonInterventi) {				
			if (enableToolBarLink == 'true') {
				toolbarLinkInterventi.disabled = false;
				toolbarButtonInterventi.disabled = false;
			} else {
				toolbarLinkInterventi.disabled = true;
				toolbarButtonInterventi.disabled = true;
			}
		}
		<%-- /* showDivIntervento(); */ --%>
	}
	
	<%-- /* 
	function showDivIntervento() {
		if (eval('window.getErogato')) {
			var erogato = getErogato();
			enableDisableDivErogato(erogato);
		}
	}
	*/ --%>
	
	/*
	function eformat_cpmt_idPresaInCarico(element, value) {
		if (bui_datamanagement.getMode().isView() || bui_datamanagement.getMode().getActiveSlave() == null) {
			document.getElementById("cpmt_storicoAbilitati_href").href = "javascript:showOperatoriAbilitati(" + value + ");" ;
	  		document.getElementById("cpmt_storicoRiferimento_href").href = "javascript:showOperatoriRiferimento(" + value + ");" ;
	  		//document.getElementById("cpmt_storicoProblematicheUtente_href").href = "javascript:showStoricoProblematicheUtente(" + cpGetMasterSelectedRow() + ");" ;
		  	//document.getElementById("cpmt_storicoProblematicheUtenteBisogno_href").href = "javascript:showStoricoProblematicheUtenteBisogno(" + cpGetMasterSelectedRow() + ");" ;
		  	//document.getElementById("cpmt_storicoProblematicheFamiliari_href").href = "javascript:showStoricoProblematicheFamiliari(" + cpGetMasterSelectedRow() + ");" ;
		}
	}	
	*/
	
	function openFromPic(identifier, init) {
		var idSoggetto = cpGetMasterColumnValueOfCurrentRow('idAssistito');
		buiOpenNewDataManagementAsHiddenChild(identifier, '&init=' + init + '&parentKey=' + bui_datamanagement.getKey() + '&id=' + idSoggetto + shellGetSelectedRowParam() + shellGetSelectedTabParam());
	}

	function goToSegnalazioniFromPic() {
		var identifier = 'segnalazioni.segnalazione';
		var init = 'it.cedaf.icare.anagrafiche.control.initializer.SegnalazioneFromSoggettoInitializer';
		openFromPic(identifier, init);
	}

	function goToDomandeFromPic() {
		var identifier = 'domande.domanda';
		var init = 'it.cedaf.icare.anagrafiche.control.initializer.DomandaFromSoggettoInitializer';
		openFromPic(identifier, init);
	}

	function goToValutazioniFromPic() {
		var identifier = 'valutazioni.valutazione';
		var init = 'it.cedaf.icare.anagrafiche.control.initializer.ValutazioneFromSoggettoInitializer';
		openFromPic(identifier, init);
	}

	function goToRichiesteValutazioniFromPic() {
		var identifier = 'valutazioni.richiestaValutazione';
		var init = 'it.cedaf.icare.anagrafiche.control.initializer.RichiestaValutazioneFromSoggettoInitializer';
		openFromPic(identifier, init);		
	}
	
	function goToProvvedimentiFromPic() {
		var identifier = 'provvedimenti.provvedimento';
		var init = 'it.cedaf.icare.provvedimenti.control.initializer.ProvvedimentiByIdPICInitializer';
		var idPIC = cpGetMasterColumnValueOfCurrentRow('idPresaInCarico');
		buiOpenNewDataManagementAsHiddenChild(identifier, 'init=' + init + '&parentKey=' + bui_datamanagement.getKey() + '&id=' + idPIC + shellGetSelectedRowParam() + shellGetSelectedTabParam());		
	}
	function goToProgettiFromPic() {
		var identifier = 'progetti.progetto';
		var init = 'it.cedaf.icare.progetti.control.initializer.ProgettiByIdPICInitializer';
		var idPIC = cpGetMasterColumnValueOfCurrentRow('idPresaInCarico');
		buiOpenNewDataManagementAsHiddenChild(identifier, 'init=' + init + '&parentKey=' + bui_datamanagement.getKey() + '&id=' + idPIC + shellGetSelectedRowParam() + shellGetSelectedTabParam());		
	}
	
	function goToAttivitaFromPIC(nucleo) {
		var identifier = 'attivita.attivita';
		var init = 'it.cedaf.icare.attivita.control.initializer.AttivitaByPICInitializer';
		var idSoggetto = cpGetMasterColumnValueOfCurrentRow('idAssistito');
		buiOpenNewDataManagementAsHiddenChild(identifier, 'init=' + init + '&parentKey=' + bui_datamanagement.getKey() + 
				'&idSoggetto=' + idSoggetto + '&nucleo=' + nucleo + shellGetSelectedRowParam() + shellGetSelectedTabParam());
	}
	
</script>