Changeset 470 for tapas/web


Ignore:
Timestamp:
04/06/12 17:01:41 (12 years ago)
Author:
rboipsl
Message:

debut dev creation experiment file names

Location:
tapas/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/project/formTapas_script.jsp

    r469 r470  
    153153        var jsonTapasForm = $.toJSON( tapasForm ); 
    154154 
     155 
    155156        if( jsonTapasForm ) 
    156157            $.ajax( { 
     
    192193 
    193194 
    194  
    195  
    196  
    197195    displayObservatories: function( container ) 
    198196    { 
     
    236234        jQuery.each( this.jSonInstrumentalFunctions, jQuery.proxy( function ( i, jsonInstrumentalFunction ) 
    237235        { 
    238             this.selectInstrumentalFunctions.add( jsonInstrumentalFunction.value, tapasTexts[jsonInstrumentalFunction.value] ); 
     236            this.selectInstrumentalFunctions.add( jsonInstrumentalFunction.value, tapasTexts[jsonInstrumentalFunction.text] ); 
    239237        }, this ) ); 
    240238        this.selectInstrumentalFunctions.selectFirst( true ); 
     
    251249        jQuery.each( this.jSonClimatoReferences, jQuery.proxy( function ( i, jsonClimatoReference ) 
    252250        { 
    253             this.selectClimatoReferences.add( jsonClimatoReference.value, tapasTexts[jsonClimatoReference.value] ); 
     251            this.selectClimatoReferences.add( jsonClimatoReference.value, tapasTexts[jsonClimatoReference.text] ); 
    254252        }, this ) ); 
    255253        this.selectClimatoReferences.selectFirst( true ); 
     
    297295 
    298296        //fonction instrumentale 
    299         this.createTrList( "Instrumental function", "ifunction", tabPreference, "ilsf" ); 
     297        this.createTrList( "Instrumental function", "ifunction", tabObservation, "ilsf" ); 
    300298 
    301299        this.createTr( "Resolving power", "irp", tabObservation ); 
     
    378376        var instrument = new Object(); 
    379377 
     378        instrument.ilsfChoice = new Object(); 
     379        instrument.ilsfChoice.firstValue = this.selectInstrumentalFunctions.getValuesInString(); 
     380        instrument.ilsfChoice.secondValue = this.selectInstrumentalFunctions.getValue(); 
     381 
    380382        instrument.spectralChoice = new Object(); 
     383        this.selectSpectralUnits.remove("-1"); 
    381384        instrument.spectralChoice.firstValue = this.selectSpectralUnits.getValuesInString(); 
    382385        instrument.spectralChoice.secondValue = this.selectSpectralUnits.getValue(); 
     
    385388 
    386389 
    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(); 
    389395 
    390396        var observation = new Object(); 
  • tapas/web/src/com/ether/Controller.java

    r447 r470  
    8181        try 
    8282        { 
    83             getTapasService().createXMLRequest( javaTapas ); // en 2ieme parametre 
     83            getTapasService().createXMLRequest( javaTapas, user ); // en 2ieme parametre 
    8484        } 
    8585        catch( ServiceException e ) 
     
    157157            final JSONObject jsonInstrumentalFunction = new JSONObject(); 
    158158            jsonInstrumentalFunction.put( "text", instrumentalFunction.name() ); 
    159             jsonInstrumentalFunction.put( "value", instrumentalFunction.name() ); 
     159            jsonInstrumentalFunction.put( "value", instrumentalFunction.ordinal() ); 
    160160            jsonInstrumentalFunctions.add( jsonInstrumentalFunction ); 
    161161        } 
     
    174174            final JSONObject jsonClimatoReference = new JSONObject(); 
    175175            jsonClimatoReference.put( "text", climatoReference.name() ); 
    176             jsonClimatoReference.put( "value", climatoReference.name() ); 
     176            jsonClimatoReference.put( "value", climatoReference.ordinal() ); 
    177177            jsonClimatoReferences.add( jsonClimatoReference ); 
    178178        } 
Note: See TracChangeset for help on using the changeset viewer.