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

<script type="text/javascript">
	function scaricaFile(log) {
		var idPag = cpGetMasterColumnValueOfCurrentRow('id');
		var params = 'idPagamento=' + idPag + '&log=' + (log ? 'true' : 'false');		
		juiceDownload('it.cedaf.icare.pagamenti.etc.PagamentiEffettuatiFileContentProvider', params);
	}
	
	<bui:out modes="view">
		function eformat_cpmt_fileImportato(element, value, name) {
			element.innerHTML = value;
			document.getElementById('idSpanDownload').style.display = (value == '' ? 'none' : 'inline');
		}
	</bui:out>
</script>

<shell:fieldset title="Informazioni generali">
	<table border="0" cellspacing="3" cellpadding="0" >
		<tr>
			<td class="form-label">
				<shell:label prop="ente" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="ente" />
				</bui:out>
			</td>
		</tr>	
		<tr>
			<td class="form-label">
				<shell:label prop="dataRegistrazione" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="dataRegistrazione" />
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="utente" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="utente" />
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="fonte" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="fonte" />
				</bui:out>
			</td>
		</tr>	
		<tr>
			<td class="form-label">
				<shell:label prop="fileImportato" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="fileImportato" />
				</bui:out>
				<span id="idSpanDownload" style="display:none">
					&nbsp;&nbsp;<shell:button img="commons.docnew" text="File importato" title="Scarica il file" href="javascript:scaricaFile(false);" />
					&nbsp;&nbsp;<shell:button img="commons.docnew" text="Log" title="Scarica il log dell'importazione" href="javascript:scaricaFile(true);" />
				</span>
			</td>
		</tr>
					
 	</table>
</shell:fieldset>