Changeset 405 for ether_ndacc/trunk/web/src/com/ether/Controller.java
- Timestamp:
- 03/09/12 13:18:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_ndacc/trunk/web/src/com/ether/Controller.java
r364 r405 237 237 } 238 238 239 @ControllerMethod(view = VIEW_ECC_RT) 240 public Map<String, Object> selectEccRT( @ParamName("dateinf") final String dateinf, 241 @ParamName("station") String station, 242 @ParamName("instrument") final String instrument, 243 @ParamName("type") final String type ) 244 throws WebException 245 { 246 try 247 { 248 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(); 254 String rep = ""; 255 String year = dateinf.substring( 0, 4 ); 256 257 if( station.compareTo( "OHP" ) == 0 || station.compareTo( "ohp" ) == 0 ) 258 { 259 rep = "./resources/visu/ohp/ecc"; 260 station = "OHP"; 261 if( year.compareTo( "1970" ) == 0 ) year = "2012"; 262 } 263 else if( station.compareTo( "LA REUNION" ) == 0 || station.compareTo( "reunion" ) == 0 ) 264 { 265 rep = "./resources/visu/reu/ecc"; 266 //rep="./resources/visu/ohp/lidar/o3_strato"; 267 station = "LA REUNION"; 268 if( year.compareTo( "1970" ) == 0 ) year = "2006"; 269 //year="2006"; 270 } 271 else if( station.compareTo( "DDU" ) == 0 || station.compareTo( "ddu" ) == 0 ) 272 { 273 rep = "./resources/visu/ddu/ecc"; 274 //rep="./resources/visu/ohp/lidar/o3_strato"; 275 station = "DDU"; 276 if( year.compareTo( "1970" ) == 0 ) year = "1991"; 277 //year="2006"; 278 } 279 280 final Map<String, Object> model = new HashMap<String, Object>(); 281 model.put( "plotsList", plotsList ); 282 model.put( "listeDates", listeDates ); 283 model.put( "firstDate", dateinf ); 284 final String month = dateinf.substring( 4, 6 ); 285 model.put( "month", month ); 286 model.put( "year", year ); 287 model.put( "station", station ); 288 model.put( "rep", rep ); 289 return model; 290 } 291 catch( ServiceException e ) 292 { 293 throw new WebException( WebException.WebCode.SERVICE_PROBLEM, e ); 294 } 295 } 296 239 297 public ModelAndView viewLidarO3s( final HttpServletRequest request, final HttpServletResponse response ) 240 298 throws WebException … … 546 604 { 547 605 year = "2010"; 548 month = " 01";606 month = "11"; 549 607 } 550 608 } … … 747 805 private static final String VIEW_UMK = "visus_umk"; 748 806 private static final String VIEW_ECC = "visus_ecc"; 807 private static final String VIEW_ECC_RT = "visus_ecc_realtime"; 749 808 private static final String VIEW_SPECTRO_UV = "visus_spectro"; 750 809 private static final String VIEW_LIDAR_TEMP = "visus_lidar_temp";
Note: See TracChangeset
for help on using the changeset viewer.