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

<%@ page import = "it.cedaf.icare.customers.zunitdc.ZunitdcModuleInfo" %>

<script type="text/javascript">
	function accettaRifiutaPreferenza() {
		var form = document.getElementById('accettaRifiutaPreferenzaForm');
		juiceSubmitForm(form);
	}
</script>

<j:form id="accettaRifiutaPreferenzaForm" name="accettaRifiutaPreferenza" event="accettaRifiutaPreferenza" enctype="multipart/form-data" method="POST">

	<j:bind prop="dmKey">
		<j:hidden id="dmKey"/>
	</j:bind>
	<j:bind prop="selectedRow">
		<j:hidden id="selectedRow"/>
	</j:bind>
	<j:bind prop="slaveSelectedRow">
		<j:hidden id="slaveSelectedRow"/>
	</j:bind>
	<j:bind prop="stato">
		<j:hidden id="stato"/>
	</j:bind>
	<br>
	<c:choose>
		<c:when test="${preferenzaStrutturaStato == 10}">
			&nbsp;&nbsp;<img src="${j:getResourceUrlOfModule('shell','img/misc/confirm-small.gif')}" align="absmiddle"> <span class="generic-label">Accettazione Struttura</span>
		</c:when>
		<c:when test="${preferenzaStrutturaStato == 20}">
			&nbsp;&nbsp;<img src="${j:getResourceUrlOfModule('shell','img/misc/forbidden.gif')}" align="absmiddle"> <span class="generic-label">Rifiuto Struttura</span>
		</c:when>
	</c:choose>
	<br><br>
	<table border="0" cellpadding="0" cellspacing="3" width="100%">
		<tr>
      		<td class="form-label">Data Validita<span class="form-label-required">*</span></td>
    		<td class="form-values">
		    	<j:bind prop="dataValidita">
					<j:text class="form-date" id="dataValiditaCld"/>
					<shell:calendar inputId="dataValiditaCld" />
					<shell:error />
				</j:bind>
		   	</td>
	   	</tr>
		<c:choose>
			<c:when test="${preferenzaStrutturaStato == 10}">
			<tr>
	      		<td class="form-label">Ingresso posticipato</td>			
	    		<td class="form-values">
	    			<j:bind prop="ingressoPosticipato">
					<j:checkbox id="idIngressoPosticipato" displayValue="true" />
					</j:bind>
			   	</td>
		   	</tr>
			</c:when>		
			<c:when test="${preferenzaStrutturaStato == 20}">
			<tr>
	      		<td class="form-label">	Ragioni sanitarie o di forza maggiore</td>			
	    		<td class="form-values">
	    			<j:bind prop="ragForzaMagg">
					<j:checkbox id="idRagForzaMagg" displayValue="true" />
					</j:bind>
			   	</td>
		   	</tr>
			</c:when>			
		</c:choose>	   	
	   	<tr>
	      	<td class="form-label">
	      		Note
	    	</td>
	    	<td class="form-values">
			    <j:bind prop="note">
					<j:textarea class="form-normal-textarea" />
				    <shell:error />
				</j:bind>
		   	</td>
		</tr>
		<tr>
			<td colspan="2" style="padding: 15px 4px 5px 4px; text-align:center;">
				<button class="generic-button ui-state-default ui-corner-all" id="accettaRifiutaPreferenza"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Conferma</button> 													
			</td>
		</tr>		
		<script type="text/javascript">
		$('#accettaRifiutaPreferenza').click(function() {
			accettaRifiutaPreferenza();
		});
		</script>
	</table>
</j:form>