Changeset 429 for ether_ndacc


Ignore:
Timestamp:
03/21/12 16:30:43 (12 years ago)
Author:
rboipsl
Message:

ajout realtime ecc ohp 2

Location:
ether_ndacc/trunk/web
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ether_ndacc/trunk/web/data_ohp.jsp

    r405 r429  
    232232</td> 
    233233 
    234 <td class="orange" nowrap> 
     234<td class="orange" nowrap align=center> 
    235235    <a href="" title="Results" onclick="OuvrirFeuilleDynW ('instrument?methodName=selectEccRT&instrument=ECC&dateinf=19700101&station=OHP&type=rt#','700','650')"> 
    236     <img border=1 src="resources/images/results.jpg" width="60px"></img> 
     236    <img border=1 src="resources/images/chrono.jpg" width="50px" height="40px"></img> 
    237237    </a> 
    238238 
  • ether_ndacc/trunk/web/data_scorebysund.jsp

    r364 r429  
    108108<br><i>pattern files : sctc[yy][mm].*</i></td> 
    109109    <td class="orange" align="center" width=11%> 
    110         <a href="" title="Results" onclick="OuvrirFeuilleDyn ('visus_saoz.jsp?station=sod')"><img border=1 src="resources/images/results.jpg" width="60px"></img></a> 
     110        <a href="" title="Results" onclick="OuvrirFeuilleDyn ('visus_saoz.jsp?station=sco')"><img border=1 src="resources/images/results.jpg" width="60px"></img></a> 
    111111    </td> 
    112112 
  • ether_ndacc/trunk/web/src/com/ether/Controller.java

    r405 r429  
    238238 
    239239    @ControllerMethod(view = VIEW_ECC_RT) 
    240         public Map<String, Object> selectEccRT( @ParamName("dateinf") final String dateinf, 
     240        public Map<String, Object> selectEccRT( @ParamName("dateinf") String dateinf, 
    241241                                              @ParamName("station") String station, 
    242242                                              @ParamName("instrument") final String instrument, 
     
    247247            { 
    248248 
    249                 final List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStationByType( instrument, dateinf, "yyyyMMdd", station, type ); 
    250  
    251                 //dateinf="02021980"; 
    252                 //List<String> ListDates = _plotService.getLastDate(instrument); 
    253                 final List<String> listeDates = _serviceTools.getListeDates(); 
     249 
    254250                String rep = ""; 
    255251                String year = dateinf.substring( 0, 4 ); 
     252                String month= dateinf.substring( 4, 6 ); 
    256253 
    257254                if( station.compareTo( "OHP" ) == 0 || station.compareTo( "ohp" ) == 0 ) 
     
    259256                    rep = "./resources/visu/ohp/ecc"; 
    260257                    station = "OHP"; 
    261                     if( year.compareTo( "1970" ) == 0 ) year = "2012"; 
     258                    if( year.compareTo( "1970" ) == 0 ) { 
     259                            year = "2012"; 
     260                            month = "01"; 
     261                    } 
    262262                } 
    263263                else if( station.compareTo( "LA REUNION" ) == 0 || station.compareTo( "reunion" ) == 0 ) 
     
    278278                } 
    279279 
     280 
     281                dateinf=year+month+"01"; 
     282                final List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStationByType( instrument, dateinf, "yyyyMMdd", station, type ); 
     283 
     284 
     285                //dateinf="02021980"; 
     286                //List<String> ListDates = _plotService.getLastDate(instrument); 
     287                final List<String> listeDates = _serviceTools.getListeDates(); 
    280288                final Map<String, Object> model = new HashMap<String, Object>(); 
     289 
    281290                model.put( "plotsList", plotsList ); 
    282291                model.put( "listeDates", listeDates ); 
    283292                model.put( "firstDate", dateinf ); 
    284                 final String month = dateinf.substring( 4, 6 ); 
     293 
    285294                model.put( "month", month ); 
    286295                model.put( "year", year ); 
    287296                model.put( "station", station ); 
     297 
     298               // model.put( "dateinf", dateinf ); 
    288299                model.put( "rep", rep ); 
    289300                return model; 
     301 
    290302            } 
    291303            catch( ServiceException e ) 
     
    464476        try 
    465477        { 
    466  
    467             List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStation( instrument, dateinf, "yyyyMMdd", station ); 
    468  
    469478            //dateinf="02021980"; 
    470479            //List<String> ListDates = _plotService.getLastDate(instrument); 
    471             final List<String> listeDates = _serviceTools.getListeDates(); 
    472480            String rep = ""; 
    473481            String year = dateinf.substring( 0, 4 ); 
     
    482490                dateinf = year + month + "03"; 
    483491            } 
     492 
     493//            dateinf="20120101"; 
     494            dateinf=year+month+"01"; 
     495            List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStation( instrument, dateinf, "yyyyMMdd", station ); 
     496            final List<String> listeDates = _serviceTools.getListeDates(); 
     497 
     498            final Map<String, Object> model = new HashMap<String, Object>(); 
     499 
     500            model.put( "plotsList", plotsList ); 
     501 
    484502 
    485503 
     
    496514            mView.put( "station", station ); 
    497515            mView.put( "rep", rep ); 
     516 
     517 
    498518 
    499519            return mView; 
Note: See TracChangeset for help on using the changeset viewer.