elencoMessaggiSearch.jsp 3.67 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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
<%@ include file="/project/include.jsp" %>	

<script type="text/javascript">	
	function estraiReportIass() {
		var rec = getClientAreaRectangle().resize(310, 180, HORIZONTAL_CENTER | VERTICAL_CENTER);
		showDivModal('idDivReportIass', 'Specificare il periodo di estrazione...', rec);
	}
	
	function estraiReport() {
		var dataInizio = document.getElementById('dataInizioCld').value;
		var dataFine = document.getElementById('dataFineCld').value;
		if(dataInizio != '') {
			dataInizio = completeDateString(dataInizio);
			if (dataInizio == null) {
				alert('Inserire la data inizio nel formato: gg/mm/aaaa');
				return;
			}
		}
		if(dataFine != '') {
			dataFine = completeDateString(dataFine);
			if (dataFine == null) {
				alert('Inserire la data fine nel formato: gg/mm/aaaa');
				return;
			}
		}
		var params = 'dataInizio=' + dataInizio + '&dataFine=' + dataFine;
		hideModal('idDivReportIass');
		shellDownload('it.cedaf.icare.iass.etc.ReportErroriFileContentProvider', params);
	}
</script>	

<div id="idDivReportIass" class="modalElement">
	<table width="100%" height="100%" style="padding: 4px 4px 4px 4px;">
		<tr id="idTrDataInizio">
			<td class="form-label">
				Data inizio
			</td>
			<td class="form-values">
				<input type="text" class="form-date" id="dataInizioCld"/><shell:calendar inputId="dataInizioCld"/>
			</td>
		</tr>
		<tr id="idTrDataFine">
			<td class="form-label">
				Data fine
			</td>
			<td class="form-values">
				<input type="text" class="form-date" id="dataFineCld"/><shell:calendar inputId="dataFineCld"/>
			</td>
		</tr>
		<tr>
			<td class="generic-label" colspan="2">
				<button class="generic-button ui-state-default ui-corner-all" onClick="estraiReport(); return false;">
				<img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Estrai</button>
			</td>
		</tr>
	</table>	
</div>


<shell:fieldset title="Parametri di ricerca">
	<table border="0" cellpadding="0" cellspacing="3">
		<tr>
			<td class="form-label">
				<shell:label prop="periodo" />
			</td>
			<td class="form-values">
				da
				<j:bind prop="dataDa">
					<j:text class="form-date" id="dataDaCLD" />
					<shell:calendar inputId="dataDaCLD" />
					<shell:error />
				</j:bind>	
				a
				<j:bind prop="dataA">
					<j:text class="form-date" id="dataACLD" />
					<shell:calendar inputId="dataACLD" />
					<shell:error />
				</j:bind>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="distretto" />
			</td>
			<td class="form-values">
				<j:bind prop="distretto">
					<j:select class="form-input" emptyOptionDescr=" " />
					<shell:error />
				</j:bind>	
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="comune" />
			</td>
			<td class="form-values">
				<j:bind prop="comune">
					<j:select class="form-input" emptyOptionDescr=" " />
					<shell:error />
				</j:bind>	
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="invio" />
			</td>
			<td class="form-values">
				<j:bind prop="invio">
					<j:radio displayValue="si" />${j:bundle('LBL_iass_invioRiuscito')}
					<j:radio displayValue="no" />${j:bundle('LBL_iass_invioNonRiuscito')}
					<j:radio displayValue="" />${j:bundle('LBL_iass_tutti')}
					<shell:error />
				</j:bind>	
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="esito" />
			</td>
			<td class="form-values">
				<j:bind prop="esito">
					<j:radio displayValue="si" />${j:bundle('LBL_iass_esitoOk')}
					<j:radio displayValue="no" />${j:bundle('LBL_iass_esitoErr')}
					<j:radio displayValue="" />${j:bundle('LBL_iass_tutti')}
					<shell:error />
				</j:bind>	
			</td>
		</tr>
	</table>
</shell:fieldset>