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

<script type="text/javascript" src="${j:getResourceUrlOfModule('commons', 'js/passaggioStato.js')}"></script>

<script type="text/javascript">
<c:if test="${empty _slave}">
	function eformat_cpmt_showPassaggioStato(element, value) {
		impl_eformat_cpmt_showPassaggioStato(element, value, '');
	}
	
	function eformat_cpmt_showPassaggioStato_0(element, value) {
		impl_eformat_cpmt_showPassaggioStato(element, value, '_0');
	}
	
	function eformat_cpmt_showPassaggioStato_1(element, value) {
		impl_eformat_cpmt_showPassaggioStato(element, value, '_1');
	}
	
	function eformat_cpmt_showPassaggioStato_2(element, value) {
		impl_eformat_cpmt_showPassaggioStato(element, value, '_2');
	}
	
	function eformat_cpmt_showPassaggioStato_3(element, value) {
		impl_eformat_cpmt_showPassaggioStato(element, value, '_3');
	}
	
	function eformat_cpmt_showPassaggioStato_4(element, value) {
		impl_eformat_cpmt_showPassaggioStato(element, value, '_4');
	}
	
	function eformat_cpmt_showPassaggioStato_5(element, value) {
		impl_eformat_cpmt_showPassaggioStato(element, value, '_5');
	}
	
	function sh_tb__passaggioStatoButtonenabled(tableId, row) {
		return impl_sh_tb__passaggioStatoButtonenabled(tableId, row);
	}
	
	function sh_tb__passaggioStatoButton_0enabled(tableId, row) {
		return impl_sh_tb__passaggioStatoButtonenabled(tableId, row);
	}

	function sh_tb__passaggioStatoButton_1enabled(tableId, row) {
		return impl_sh_tb__passaggioStatoButtonenabled(tableId, row);
	}

	function sh_tb__passaggioStatoButton_2enabled(tableId, row) {
		return impl_sh_tb__passaggioStatoButtonenabled(tableId, row);
	}

	function sh_tb__passaggioStatoButton_3enabled(tableId, row) {
		return impl_sh_tb__passaggioStatoButtonenabled(tableId, row);
	}

	function sh_tb__passaggioStatoButton_4enabled(tableId, row) {
		return impl_sh_tb__passaggioStatoButtonenabled(tableId, row);
	}

	function sh_tb__passaggioStatoButton_5enabled(tableId, row) {
		return impl_sh_tb__passaggioStatoButtonenabled(tableId, row);
	}

	function passaggioStato() {
		var idEntita = cpGetMasterColumnValueOfCurrentRow('idEntitaPassaggioStato');
		showPassaggioStatoDialog(idEntita, '${_type}');
	}
</c:if>

<c:if test="${!empty _slave}">
	function eformat_cpst_${_slave}_showPassaggioStato(element, value, index) {
		impl_eformat_cpst_showPassaggioStato(element, value, '${_slave}', '');
	}
	
	function eformat_cpst_${_slave}_showPassaggioStato_0(element, value) {
		impl_eformat_cpst_showPassaggioStato(element, value, '${_slave}', '_0');
	}
	
	function eformat_cpst_${_slave}_showPassaggioStato_1(element, value) {
		impl_eformat_cpst_showPassaggioStato(element, value, '${_slave}', '_1');
	}
	
	function eformat_cpst_${_slave}_showPassaggioStato_2(element, value) {
		impl_eformat_cpst_showPassaggioStato(element, value, '${_slave}', '_2');
	}
	
	function eformat_cpst_${_slave}_showPassaggioStato_3(element, value) {
		impl_eformat_cpst_showPassaggioStato(element, value, '${_slave}', '_3');
	}
	
	function eformat_cpst_${_slave}_showPassaggioStato_4(element, value) {
		impl_eformat_cpst_showPassaggioStato(element, value, '${_slave}', '_4');
	}
	
	function eformat_cpst_${_slave}_showPassaggioStato_5(element, value) {
		impl_eformat_cpst_showPassaggioStato(element, value, '${_slave}', '_5');
	}
	
	function sh_stb__${_slave}__passaggioStatoButtonenabled(tableId, row) {
		return impl_sh_stb__passaggioStatoButtonenabled(tableId, row, '${_slave}');
	}
	
	function sh_stb__${_slave}__passaggioStatoButton_0enabled(tableId, row) {
		return impl_sh_stb__passaggioStatoButtonenabled(tableId, row, '${_slave}');
	}

	function sh_stb__${_slave}__passaggioStatoButton_1enabled(tableId, row) {
		return impl_sh_stb__passaggioStatoButtonenabled(tableId, row, '${_slave}');
	}

	function sh_stb__${_slave}__passaggioStatoButton_2enabled(tableId, row) {
		return impl_sh_stb__passaggioStatoButtonenabled(tableId, row, '${_slave}');
	}

	function sh_stb__${_slave}__passaggioStatoButton_3enabled(tableId, row) {
		return impl_sh_stb__passaggioStatoButtonenabled(tableId, row, '${_slave}');
	}

	function sh_stb__${_slave}__passaggioStatoButton_4enabled(tableId, row) {
		return impl_sh_stb__passaggioStatoButtonenabled(tableId, row, '${_slave}');
	}

	function sh_stb__${_slave}__passaggioStatoButton_5enabled(tableId, row) {
		return impl_sh_stb__passaggioStatoButtonenabled(tableId, row, '${_slave}');
	}
	
	function passaggioStato() {
		var idEntita = cpGetSlaveColumnValueOfCurrentRow('${_slave}', 'idEntitaPassaggioStato');
		showPassaggioStatoDialog(idEntita, '${_type}');
	}
</c:if>
</script>