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

<script type="text/javascript">
	function importaConfigurazioneEstrazione() {
		shellFileUploadDialog(
			'it.cedaf.icare.estrazioni.control.action.ImportEstrazioneExecutor', 
			'Scegliere il file...', 
			'Seleziona il file xml con l\'estrazione da importare:');
	}
	
	function esportaConfigurazioneEstrazione() {		
		var idEstrazione = cpGetMasterColumnValueOfCurrentRow('idEstrazione');
		juiceDownload('it.cedaf.icare.estrazioni.etc.ExportEstrazioniFileContentProvider', 'idEstrazione='+idEstrazione);
	}
	
	function viewQueryEstrazione() {		
		var idEstrazione = cpGetMasterColumnValueOfCurrentRow('idEstrazione');
		var value = jsLoadString('it.cedaf.icare.estrazioni.control.executors.ViewQueryEstrazioneExecutor', '&id=' + idEstrazione);
		var viewQueryText = document.getElementById('viewQueryText');
		viewQueryText.value = value;
		
		var rec = getClientAreaRectangle().resize(850, 600, HORIZONTAL_CENTER | VERTICAL_CENTER);
		showDivModal('viewQueryDiv', 'Query', rec);
	}
	
	function onUploadFile(fileName) {
		var event = "estrazioni.importConfEstrazione";
		juiceChangeLocation(event);
    }
    
    function verifyQuery() {
		showConsoleMessages('Verifica Estrazioni', 'it.cedaf.icare.estrazioni.control.executors.VerifyEstrazioniExecutor');
	}
</script>

<div id="viewQueryDiv"  class="modalElement">
	<table width="100%" height="100%" style="padding: 10px 4px 4px 4px;">
		<tr style="vertical-align: top;">
			<td>
				<textarea id="viewQueryText" class="form-normal-textarea" style="width:50em;height:28em">
				</textarea>
			</td>
		</tr>
	</table>
</div>