Changeset 432 for ether_ndacc


Ignore:
Timestamp:
03/22/12 15:13:39 (12 years ago)
Author:
rboipsl
Message:

clean

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  
    11package com.ether; 
     2 
     3import org.apache.commons.logging.Log; 
     4import org.apache.commons.logging.LogFactory; 
     5import org.jetbrains.annotations.Nullable; 
    26 
    37import java.text.DateFormat; 
     
    711import java.util.Date; 
    812import java.util.Locale; 
    9  
    10 import org.apache.commons.logging.Log; 
    11 import org.apache.commons.logging.LogFactory; 
    12 import org.jetbrains.annotations.Nullable; 
    1313 
    1414/** 
  • ether_ndacc/trunk/web/src/com/ether/Controller.java

    r429 r432  
    1212import javax.servlet.http.HttpServletRequest; 
    1313import javax.servlet.http.HttpServletResponse; 
     14import java.util.Date; 
    1415import java.util.HashMap; 
    1516import java.util.List; 
     
    250251                String rep = ""; 
    251252                String year = dateinf.substring( 0, 4 ); 
    252                 String month= dateinf.substring( 4, 6 ); 
     253                String month = dateinf.substring( 4, 6 ); 
    253254 
    254255                if( station.compareTo( "OHP" ) == 0 || station.compareTo( "ohp" ) == 0 ) 
     
    258259                    if( year.compareTo( "1970" ) == 0 ) { 
    259260                            year = "2012"; 
    260                             month = "01"; 
     261                            month = DateHelper.formatDate(new Date(),"MM"); 
     262 
    261263                    } 
    262264                } 
     
    281283                dateinf=year+month+"01"; 
    282284                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                } 
    284290 
    285291                //dateinf="02021980"; 
     
    598604 
    599605            List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStation( instrument, dateinf, "yyyyMMdd", station ); 
     606            //List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStation( instrument, dateinf, "yyyyMMdd", station ); 
    600607 
    601608            //dateinf="02021980"; 
Note: See TracChangeset for help on using the changeset viewer.