richiestaDetail.jsp 11 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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
<%@ include file="/project/include.jsp" %>
 		
<script type="text/javascript">
	<c:if test="${bui:isMode(null, 'record_created')}">
		registerOnDocumentLoad(mostraLookup);
		
		function mostraLookup(){
			var valData = document.getElementById("dataCollocazioneCLD").value;
			if (valData == '') {
				document.getElementById('idSpanLookup').style.display = 'none';
			} else {
				document.getElementById('idSpanLookup').style.display = 'inline';
			}			
		}
	</c:if>

	function getTipiAdozioni(comboTipoIstruttoria){
		var value_sel = comboTipoIstruttoria.options[comboTipoIstruttoria.selectedIndex].value;
		if (value_sel != '') {
			var params = 'idTipoIstruttoria=' + value_sel;				
			loadStandardSelectOptionsAndFill('tipoAdozione', 
				'it.cedaf.icare.affidiadozioni.control.binding.requestbean.valuesetproviders.TipiAdozioniValueSetProvider(idTipoIstruttoria)', params); 
		} else {
			clearCombo('tipoAdozione');
		}
	}
  	
  	function visualizzaNucleo() {
  		var idNucleo = '';
  		var	dataValidita = '';
  		var dataValiditaParam = '';
  		
  		if (bui_datamanagement.getMode().isView()) {
  			idNucleo = cpGetMasterColumnValueOfCurrentRow('idNucleoFamiliare');
  			dataValidita = cpGetMasterColumnValueOfCurrentRow('dataCollocazione');
  		} else {
  			idNucleo = document.getElementById('id_nucleo').value;
		   	dataValidita = document.getElementById("dataCollocazioneCLD").value;
  		}
		
		dataValidita = completeDateString(dataValidita);
		if (dataValidita != null) {
			dataValiditaParam = '&dataNucleo=' + dataValidita;
		}		
  		juiceOpenWindow('NucleoFamiliare','anagrafiche.viewNucleo?idNucleo=' + idNucleo + dataValiditaParam, getCenterWindowOptions(700, 500));
  	}
	
	<bui:out modes="update,create">	
		function onChangeDataCollocazione(){
			<c:if test="${bui:isMode(null, 'record_created')}">
				mostraLookup();
				var denomNucleo = document.getElementById("denominazione_nucleoLookup").value
				if (denomNucleo != '') {
					alert('Attenzione.\nCambiando la data primo colloquio  possibile che venga variata\nla composizione del nucleo scelto.')
				}
				getOperatoriRiferimento();
			</c:if>			
		}
		
		function changePartecipatoCorso(){
			/** */
			var inizio = document.getElementById('dataInizioCorsoCLD');
			var fine = document.getElementById('dataFineCorsoCLD');
			
			/** */
			if (document.forms['buiForm'].partecipatoCorso[0].checked){
				/** */
				inizio.disabled = false;
				fine.disabled = false;
			} else {
				inizio.disabled = true;
				inizio.value = '';
				fine.disabled = true;
				fine.value = '';				
			}
		}
	</bui:out>

</script>	
		
<table border="0" cellpadding="0" cellspacing="3" width="100%">
	<tr>
		<td valign="top" width="50%">	        	       	
			<shell:fieldset title="Informazioni richiesta">
				<table border="0" cellpadding="0" cellspacing="3">
					<tr>   
			      		<td class="form-label">
			    			<shell:label prop="icaroCode" />
			    		</td>
			    		<td class="form-values">
							<j:tile name="shell.plaintext" prop="icaroCode" />
						</td> 
				  	</tr>
			  		<tr>   
			      		<td class="form-label">
			    			<shell:label prop="dataCollocazione" />
			    		</td>
			    		<bui:out modes="view">   
					  		<td class="form-values">
								<j:tile name="shell.plaintext" prop="dataCollocazione" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="dataCollocazione">						
								<td class="form-values">
									<j:text class="form-date" id="dataCollocazioneCLD" onchange="onChangeDataCollocazione();" />
									<shell:calendar inputId="dataCollocazioneCLD" />	
									<shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
				  	</tr>
			        <tr>	
						<c:choose>
							<c:when test="${bui:isMode(null, 'record_created')}">
								<td class="form-label">
									<shell:label prop="idNucleoFamiliare" />
								</td>			 
								<td class="form-values">
									<j:bind prop="denominazioneNucleo">
										<j:text class="form-long-text" readonly="true" id="denominazione_nucleoLookup" />
										<shell:error />
									</j:bind>	
									<span id="idSpanLookup">
										<shell:lookup lookupId="nucleoLookup" identifier="anagrafiche.nucleoFamiliare" 
											init="it.cedaf.icare.anagrafiche.model.datamanagement.NucleoFamiliareFromAffidiAdozioniLookupInitializer" 
											formParams="dataCollocazioneCLD|dataNucleo" noCommitOnCreate="id=-1" />
									</span>				  	
									<j:bind prop="idNucleoFamiliare">
										<j:hidden id="id_nucleoLookup"/>
										<shell:error />
									</j:bind>
								</td>
							</c:when>
							<c:otherwise>
								<td class="form-label">
									<shell:label prop="denominazioneNucleo" />
								</td>			 
								<td class="form-values">
									<j:tile name="shell.plaintext" prop="denominazioneNucleo" />
									<a href="javascript:visualizzaNucleo();" onclick="coordinates(event);"> <img src="${j:getResourceUrlOfModule('anagrafiche','img/nucleo_small.gif')}" title="Visualizza nucleo" align="absmiddle" border="0"></a> 
									<bui:out modes="update,create">
										<j:bind prop="idNucleoFamiliare">
											<j:hidden id="id_nucleo"/>
											<shell:error />
										</j:bind>
									</bui:out>
								</td>
							</c:otherwise>
						</c:choose>						
					</tr>				  	
				  	<tr>   
				      	<td class="form-label">
			    			<shell:label prop="tipoIstruttoria" />
			    		</td>
			    		<bui:out modes="view">   
						  	<td class="form-values">
								<j:tile name="shell.plaintext" prop="tipoIstruttoria" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="tipoIstruttoria">
								<td class="form-values">
									<j:select class="form-input" emptyOptionDescr=" " onchange="getTipiAdozioni(this);"/> 
								    <shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
					</tr>
					<tr>   
				      	<td class="form-label">
			    			<shell:label prop="tipoAdozione" />
			    		</td>
			    		<bui:out modes="view">   
						  	<td class="form-values">
								<j:tile name="shell.plaintext" prop="tipoAdozione" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="tipoAdozione">
								<td class="form-values">
									<j:select class="form-input" id="tipoAdozione" emptyOptionDescr=" "/> 
								    <shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
					</tr>
					<tr>   
				      	<td class="form-label">
			    			<shell:label prop="tipoServizioIstruttoria" />
			    		</td>
			    		<bui:out modes="view">   
						  	<td class="form-values">
								<j:tile name="shell.plaintext" prop="tipoServizioIstruttoria" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="tipoServizioIstruttoria">
								<td class="form-values">
									<j:select class="form-input" emptyOptionDescr=" "/> 
								    <shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
					</tr>
					<tr>   
				      	<td class="form-label">
				    		<shell:label prop="nominativoServizio" />
				    	</td>
				    	<td class="form-values">
					    	<bui:out modes="view">   
								<j:tile name="shell.plaintext" prop="nominativoServizio" />
							</bui:out>					
							<bui:out modes="update,create">
							    <j:bind prop="nominativoServizio">
									<j:text class="form-normal-text"/>
									<shell:error />
								</j:bind>
						   	</bui:out> 
						</td>
					</tr>
				</table>
			</shell:fieldset>
		</td>
		<td valign="top" width="50%">
			<shell:fieldset title="Informazioni operatori">
				<table border="0" cellpadding="0" cellspacing="3">
					<j:tile name="commons.opRifNonStoricizzato"/>	
					<j:tile name="commons.opAbilitato" objectName="RichiestaAffidoAdozione" idField="id" sendToAbilitato="true"/>
				</table>
			</shell:fieldset>
		</td>
	</tr>
</table>	

<shell:fieldset title="Partecipazione ai corsi">							
	<table border="0" cellpadding="0" cellspacing="3">										
		<tr>   
	      	<td class="form-label">
	    		<shell:label prop="partecipatoCorso" />
	    	</td>
	    	<td class="form-values">
	    		<bui:out modes="view">   
			  		<j:tile name="shell.plaintext" prop="partecipatoCorso" />
				</bui:out>
				<bui:out modes="update,create">
			    	<j:bind prop="partecipatoCorso">											
				    	<j:radio id="partecipatoCorsoId_0" displayValue="si" onClick="changePartecipatoCorso();"/>${j:bundle('LBL_si')}
						<j:radio id="partecipatoCorsoId_1" displayValue="no" onClick="changePartecipatoCorso();"/>${j:bundle('LBL_no')}
						<shell:error />
					</j:bind>
		   		</bui:out>
		   	</td>
	  	</tr>		
		<tr>
			<td class="form-label">
				<shell:label prop="dataRichiestaCorso" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="dataRichiestaCorso" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="dataRichiestaCorso">
						<j:text class="form-date" id="dataRichiestaCorsoCLD"/>
						<shell:calendar inputId="dataRichiestaCorsoCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>						
		</tr>		  				
		<tr>
			<td class="form-label">
				<shell:label prop="dataInizioCorso" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="dataInizioCorso" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="dataInizioCorso">
						<j:text class="form-date" id="dataInizioCorsoCLD"/>
						<shell:calendar inputId="dataInizioCorsoCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>						
		</tr>	
		<tr>
			<td class="form-label">
				<shell:label prop="dataFineCorso" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="dataFineCorso" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="dataFineCorso">
						<j:text class="form-date" id="dataFineCorsoCLD"/>
						<shell:calendar inputId="dataFineCorsoCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>						
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="dataRichiestaIndagine" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="dataRichiestaIndagine" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="dataRichiestaIndagine">
						<j:text class="form-date" id="dataRichiestaIndagineCLD"/>
						<shell:calendar inputId="dataRichiestaIndagineCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>						
		</tr>
	</table>		
</shell:fieldset>		
			
<shell:fieldset title="Informazioni aggiuntive">
	<table>
		<tr>   
	  		<td class="form-label">
				<shell:label prop="note" />
	    	</td>
		    <bui:out modes="view">   
			 	<td class="form-values">
					<j:tile name="shell.plaintext" prop="note" />
				</td>
			</bui:out>
			<bui:out modes="update,create">
			    <j:bind prop="note">
					<td class="form-values">
						<j:textarea class="form-long-textarea" />
						<shell:error />
					</td>
				</j:bind>
			</bui:out> 
		</tr>
	</table>
</shell:fieldset>