- Timestamp:
- 04/06/12 17:01:41 (12 years ago)
- Location:
- tapas/web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/web/project/formTapas_script.jsp
r469 r470 153 153 var jsonTapasForm = $.toJSON( tapasForm ); 154 154 155 155 156 if( jsonTapasForm ) 156 157 $.ajax( { … … 192 193 193 194 194 195 196 197 195 displayObservatories: function( container ) 198 196 { … … 236 234 jQuery.each( this.jSonInstrumentalFunctions, jQuery.proxy( function ( i, jsonInstrumentalFunction ) 237 235 { 238 this.selectInstrumentalFunctions.add( jsonInstrumentalFunction.value, tapasTexts[jsonInstrumentalFunction. value] );236 this.selectInstrumentalFunctions.add( jsonInstrumentalFunction.value, tapasTexts[jsonInstrumentalFunction.text] ); 239 237 }, this ) ); 240 238 this.selectInstrumentalFunctions.selectFirst( true ); … … 251 249 jQuery.each( this.jSonClimatoReferences, jQuery.proxy( function ( i, jsonClimatoReference ) 252 250 { 253 this.selectClimatoReferences.add( jsonClimatoReference.value, tapasTexts[jsonClimatoReference. value] );251 this.selectClimatoReferences.add( jsonClimatoReference.value, tapasTexts[jsonClimatoReference.text] ); 254 252 }, this ) ); 255 253 this.selectClimatoReferences.selectFirst( true ); … … 297 295 298 296 //fonction instrumentale 299 this.createTrList( "Instrumental function", "ifunction", tab Preference, "ilsf" );297 this.createTrList( "Instrumental function", "ifunction", tabObservation, "ilsf" ); 300 298 301 299 this.createTr( "Resolving power", "irp", tabObservation ); … … 378 376 var instrument = new Object(); 379 377 378 instrument.ilsfChoice = new Object(); 379 instrument.ilsfChoice.firstValue = this.selectInstrumentalFunctions.getValuesInString(); 380 instrument.ilsfChoice.secondValue = this.selectInstrumentalFunctions.getValue(); 381 380 382 instrument.spectralChoice = new Object(); 383 this.selectSpectralUnits.remove("-1"); 381 384 instrument.spectralChoice.firstValue = this.selectSpectralUnits.getValuesInString(); 382 385 instrument.spectralChoice.secondValue = this.selectSpectralUnits.getValue(); … … 385 388 386 389 387 instrument.resolvingPower=$( "#irp" ).val(); 388 instrument.samplingRatio = $( "#isr" ).val(); 390 instrument.resolvingPower=new Object(); 391 instrument.resolvingPower.secondValue=$( "#irp" ).val(); 392 393 instrument.samplingRatio = new Object(); 394 instrument.samplingRatio.secondValue = $( "#isr" ).val(); 389 395 390 396 var observation = new Object(); -
tapas/web/src/com/ether/Controller.java
r447 r470 81 81 try 82 82 { 83 getTapasService().createXMLRequest( javaTapas ); // en 2ieme parametre83 getTapasService().createXMLRequest( javaTapas, user ); // en 2ieme parametre 84 84 } 85 85 catch( ServiceException e ) … … 157 157 final JSONObject jsonInstrumentalFunction = new JSONObject(); 158 158 jsonInstrumentalFunction.put( "text", instrumentalFunction.name() ); 159 jsonInstrumentalFunction.put( "value", instrumentalFunction. name() );159 jsonInstrumentalFunction.put( "value", instrumentalFunction.ordinal() ); 160 160 jsonInstrumentalFunctions.add( jsonInstrumentalFunction ); 161 161 } … … 174 174 final JSONObject jsonClimatoReference = new JSONObject(); 175 175 jsonClimatoReference.put( "text", climatoReference.name() ); 176 jsonClimatoReference.put( "value", climatoReference. name() );176 jsonClimatoReference.put( "value", climatoReference.ordinal() ); 177 177 jsonClimatoReferences.add( jsonClimatoReference ); 178 178 }
Note: See TracChangeset
for help on using the changeset viewer.