<%@ include file="/project/include.jsp" %>
<link rel="stylesheet" href="${j:getResourceUrlOfModule('interventi', 'css/calcoloTariffeUtenteRelISEE.css')}">

<div id="divCalcoloTariffeUtenteRelISEE" class="modalElement">
	<table style="padding: 0px;width:100%;">
		<tr style="vertical-align: top;">
			<td>
				<div id="divCTUISEE_Err" style="display:none">
					<span id="idCTUISEE_Err" class="generic-label msg_text_error"></span>
				</div>
				<div id="divCTUISEE_Msg" style="display:none">
					<table>
						<tr>
							<td colspan="2">
								<span id="idCTUISEE_Msg" class="generic-label"/>
							</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td class="generic-label" style="padding: 15px 4px 5px 4px;">
								<button class="generic-button ui-state-default ui-corner-all" onClick="annullaCalcoloTariffeUtRelISEE(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/delete-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Annulla</button>
								<button class="generic-button ui-state-default ui-corner-all" onClick="mostraDivCalcoloTarUtRelISEE('divCTUISEE_Dett'); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Continua</button>
							</td>
						</tr>
					</table>
				</div>
				<%-- STEP 1: inserimento data riferimento per calcolo tariffe utente --%>
				<div id="divCTUISEE_DataRif" class="generic-label" style="display:none">
					<table border="0" cellpadding="0" cellspacing="3">
						<tr>
							<td class="generic-label" style="padding: 4px 4px 15px 4px;">Procedura di calcolo delle tariffe utente basata sul reddito ISEE dell'assistito. <br/><br/>
						    	Indicare la data alla quale verranno effettuati i calcoli: <input type="text" class="form-date" id="dataRifCTUISEECld" placeholder="gg/mm/aaaa" /><shell:calendar inputId="dataRifCTUISEECld"/><br/><br/><br/>
						    	<div id="divCTUISEE_NoteDataStorTUISEE" style="display:none">
						    	<strong>*** NOTE PER LA STORICIZZAZIONE DELLE TARIFFE SULL'INTERVENTO ***</strong><br/><br/>
					    		<span id="idCTUISEE_noteDataStorTUISEE" ></span><br/><br/><br/>
					    		</div>
							<button class="generic-button ui-state-default ui-corner-all" onClick="verificaCalcoloTariffeUtRelISEE(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Conferma</button>											
							</td>
						</tr>
					</table>
				</div>
				<%-- STEP 2: visualizzazione del tipo di calcolo eseguito e delle tariffe calcolate in automatico e stampa riepilogo --%>
				<div id="divCTUISEE_Dett" style="display:none">
					<input type="hidden" id="gpCTUISEE" />
					<table style="width:100%">
						<tr>
							<td class="form-label" style="width:200px">Tipo calcolo</td>
							<td class="form-values"><span class="form-data" id="idCTUISEE_tipoCalcolo" /></td>
						</tr>
						<tr id="CTUISEE_trReddSogg"  style="display:none">
							<td class="form-label" style="width:200px">Reddito ISEE</td>
							<td class="form-values"><span class="form-data" id="idCTUISEE_redditoISEE" /></td>
						</tr>
						<tr>
							<td class="form-label" style="width:200px">${j:bundle('LBL_anagrafiche_soggetto_diagnosi_indennitaAccompagnamento')}</td>
							<td class="form-values"><span class="form-data" id="idCTUISEE_accomp" /></td>
						</tr>
						<tr>	
							<td class="generic-label" colspan="2" style="padding-top:20px;">
								Tariffe utente calcolate:
							</td>
						</tr>
						<tr style="vertical-align: top;">
							<td colspan="2" valign="top"  style="vertical-align: top;">
								<table id="idCTUISEE_Tariffe" class="static-grid-modal-table" style="width:100%">
									<tr>
										<td class="static-grid-modal-column-title" id="idCTUISEE_Tariffe_td1" style="width:60%;white-space:nowrap;">${j:bundle('LBL_gruppoPrestazioni')}</td>
										<td class="static-grid-modal-column-title" id="idCTUISEE_Tariffe_td2" style="width:10%;">${j:bundle('LBL_interventi_anagraficheTariffariUtente_tariffari_importoBase')}</td>
										<td class="static-grid-modal-column-title" id="idCTUISEE_Tariffe_td3" style="width:10%;">${j:bundle('LBL_interventi_anagraficheTariffariUtente_tariffari_importoMin')}</td>
										<td class="static-grid-modal-column-title" id="idCTUISEE_Tariffe_td4" style="width:10%;">${j:bundle('LBL_interventi_anagraficheTariffariUtente_tariffari_importoMax')}</td>
										<td class="static-grid-modal-column-title" id="idCTUISEE_Tariffe_td5c" style="width:10%;">${j:bundle('LBL_interventi_anagraficheTariffariUtente_contributo')}</td>
										<td class="static-grid-modal-column-title" id="idCTUISEE_Tariffe_td5" style="width:10%;">${j:bundle('LBL_interventi_anagraficheTariffariUtente_importo')}</td>
										<td class="static-grid-modal-column-title" id="idCTUISEE_Tariffe_td6" style="width:5%;text-align:center;display:none">&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr id="CTUISEE_trNoteVariazioneTariffa" style="display:none;margin-top:15px;">
							<td class="form-label" style="width:200px"><span id="idCTUISEE_lblNoteVariazioneTariffa">${j:bundle('LBL_interventi_interventoADSociale_tariffeUtente_noteVarTarUtCalcolata')}</span></td>
							<td class="form-values"><textarea id="idCTUISEE_NoteVariazioneTariffa" class="form-normal-textarea" maxlength="200" style="white-space: pre-wrap"></textarea></td>
						</tr>
						<tr>
							<td class="generic-label" colspan="2" style="padding: 15px;text-align:center;">
								<button id="idCTUISEE_btnAnnulla" class="generic-button ui-state-default ui-corner-all" onClick="annullaCalcoloTariffeUtRelISEE(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/delete-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Annulla</button>
								<button id="idCTUISEE_btnStampa" class="generic-button ui-state-default ui-corner-all" onClick="stampaTariffeUtRelISEE(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/printer_small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Stampa tariffe calcolate</button>
								<button id="idCTUISEE_btnEsegui" style="display:none" class="generic-button ui-state-default ui-corner-all" onClick="eseguiCalcoloTariffeUtRelISEE(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Ok</button>
							</td>
						</tr>
					</table>
				</div>							
			</td>			
		</tr>
	</table>	
</div>