Changeset 432 for ether_ndacc
- Timestamp:
- 03/22/12 15:13:39 (12 years ago)
- Location:
- ether_ndacc/trunk
- Files:
-
- 31 added
- 2 deleted
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
ether_ndacc/trunk/common/implementation/com/ether/DateHelper.java
r422 r432 1 1 package com.ether; 2 3 import org.apache.commons.logging.Log; 4 import org.apache.commons.logging.LogFactory; 5 import org.jetbrains.annotations.Nullable; 2 6 3 7 import java.text.DateFormat; … … 7 11 import java.util.Date; 8 12 import java.util.Locale; 9 10 import org.apache.commons.logging.Log;11 import org.apache.commons.logging.LogFactory;12 import org.jetbrains.annotations.Nullable;13 13 14 14 /** -
ether_ndacc/trunk/web/src/com/ether/Controller.java
r429 r432 12 12 import javax.servlet.http.HttpServletRequest; 13 13 import javax.servlet.http.HttpServletResponse; 14 import java.util.Date; 14 15 import java.util.HashMap; 15 16 import java.util.List; … … 250 251 String rep = ""; 251 252 String year = dateinf.substring( 0, 4 ); 252 String month = dateinf.substring( 4, 6 );253 String month = dateinf.substring( 4, 6 ); 253 254 254 255 if( station.compareTo( "OHP" ) == 0 || station.compareTo( "ohp" ) == 0 ) … … 258 259 if( year.compareTo( "1970" ) == 0 ) { 259 260 year = "2012"; 260 month = "01"; 261 month = DateHelper.formatDate(new Date(),"MM"); 262 261 263 } 262 264 } … … 281 283 dateinf=year+month+"01"; 282 284 final List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStationByType( instrument, dateinf, "yyyyMMdd", station, type ); 283 285 String[] labelDates = new String[plotsList.size()]; 286 287 for (int i=0 ; i<plotsList.size() ; i++) { 288 labelDates[0]=plotsList.get( 0 ).substring(0,6); 289 } 284 290 285 291 //dateinf="02021980"; … … 598 604 599 605 List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStation( instrument, dateinf, "yyyyMMdd", station ); 606 //List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStation( instrument, dateinf, "yyyyMMdd", station ); 600 607 601 608 //dateinf="02021980";
Note: See TracChangeset
for help on using the changeset viewer.