Ignore:
Timestamp:
08/31/11 16:51:42 (13 years ago)
Author:
vmipsl
Message:

Interface _ plusieurs graphs possible sur le même quicklook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/src/com/ether/Controller.java

    r133 r172  
    66import com.medias.database.objects.Parametre; 
    77import com.medias.database.objects.Plateforme; 
     8import com.medias.database.objects.TypePlateforme; 
    89import net.sf.json.JSONObject; 
    910import org.apache.commons.logging.Log; 
     
    2930    /** *********************************************************** **/ 
    3031    /** *********************** VIEWS ***************************** **/ 
    31     /** *********************************************************** **/ 
     32    /** 
     33     * ********************************************************** * 
     34     */ 
    3235    // Default view if methodName is unknown 
    3336    public ModelAndView home( final HttpServletRequest request, final HttpServletResponse response ) 
     
    4952    { 
    5053        final List<Plateforme> plateforms = _etherService.getAllPlateforms(); 
     54//        final List<Plateforme> plateforms = new ArrayList<Plateforme>(); 
     55//        final TypePlateforme type = new TypePlateforme( 1, "FIXE" ); 
     56//        final Plateforme pf = new Plateforme(); 
     57//        pf.setPlateformeId( 1 ); 
     58//        pf.setPlateformeNom( "LHVP" ); 
     59//        pf.setTypePlateforme( type ); 
     60//        plateforms.add( pf ); 
     61//        final Plateforme pf2 = new Plateforme(); 
     62//        pf2.setPlateformeId( 2 ); 
     63//        pf2.setPlateformeNom( "SIRTA" ); 
     64//        pf2.setTypePlateforme( type ); 
     65//        plateforms.add( pf2 ); 
    5166 
    5267        final Map<String, Object> model = new HashMap<String, Object>(); 
     
    5974    /** *********************************************************** **/ 
    6075    /** *********************** CALLS ***************************** **/ 
    61     /** *********************************************************** **/ 
     76    /** 
     77     * ********************************************************** * 
     78     */ 
    6279    @ControllerMethod(jsonResult = true) 
    6380    public JSONObject searchParametersByPlateform( @Mandatory @ParamName(ParameterConstants.PARAMETER_ID) final Integer plateformId ) 
     
    6582    { 
    6683        final List<Parametre> parametersByPlateform = _etherService.getParametersByPlateformId( plateformId ); 
     84//        final List<Parametre> parametersByPlateform = new ArrayList<Parametre>( 2 ); 
     85//        final Parametre p1 = new Parametre(); 
     86//        p1.setParametreId( 1 ); 
     87//        p1.setParametreNom( "JNO2" ); 
     88//        parametersByPlateform.add( p1 ); 
     89//        final Parametre p2 = new Parametre(); 
     90//        p2.setParametreId( 2 ); 
     91//        p2.setParametreNom( "CO2" ); 
     92//        parametersByPlateform.add( p2 ); 
    6793 
    6894        final JSONObject result = new JSONObject(); 
Note: See TracChangeset for help on using the changeset viewer.