Changeset 722 for ether_iasi
- Timestamp:
- 01/17/13 18:23:32 (11 years ago)
- Location:
- ether_iasi/trunk/web
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_iasi/trunk/web/project/quicklook.jsp
r720 r722 43 43 44 44 <div class="containerTools"> 45 <div id="container Tools"></div>46 <div class="selectTools">45 <div id="containerSelect"></div> 46 <div id="containerCalendar" class="selectTools"> 47 47 <spring:message code="label.date"/> :<br/> 48 48 <input type="text" id="beginDate" size="10"/> -
ether_iasi/trunk/web/project/quicklook_script.jsp
r720 r722 8 8 /** *********** CONTAINERS *********** **/ 9 9 this.parent = $( "#pageWrapper" ); 10 this.containerTools = $( "#containerTools" ); 10 this.containerSelect = $( "#containerSelect" ); 11 this.containerCalendar = $( "#containerCalendar" ); 11 12 this.containerQuickLookA = $( "#containerQuickLookA" ); 12 13 this.containerQuickLookB = $( "#containerQuickLookB" ); … … 29 30 30 31 31 var quickLookButton = new Button( {id:"quickLookButton", value:"<spring:message code="label.quicklook.button"/>", parent:this.container Tools, className: "small", onClick:jQuery.proxy( this.onClickButton, this )} );32 var quickLookButton = new Button( {id:"quickLookButton", value:"<spring:message code="label.quicklook.button"/>", parent:this.containerSelect, className: "small", onClick:jQuery.proxy( this.onClickQuicklook, this )} ); 32 33 }, 33 34 … … 37 38 div.html( '<spring:message code="label.satellite"/> :' ); 38 39 div.addClass( "selectTools" ); 39 this.container Tools.append( div );40 this.containerSelect.append( div ); 40 41 41 42 var paramSelect = new Object(); … … 54 55 div.html( '<spring:message code="label.projection"/> :' ); 55 56 div.addClass( "selectTools" ); 56 this.container Tools.append( div );57 this.containerSelect.append( div ); 57 58 58 59 var paramSelect = new Object(); … … 72 73 div.html( '<spring:message code="label.species"/> :' ); 73 74 div.addClass( "selectTools" ); 74 this.container Tools.append( div );75 this.containerSelect.append( div ); 75 76 76 77 var paramSelect = new Object(); … … 80 81 this.selectSpecies.add( "CO", 'CO' ); 81 82 this.selectSpecies.add( "H2O",'H2O' ); 82 this.selectSpecies.add( "TS",'Temp. Surf.' ) 83 this.selectSpecies.add( "TS",'Temp. Surf.' ); 83 84 this.selectSpecies.selectFirst(); 84 85 }, … … 98 99 } ); 99 100 100 101 102 // $( "#beginDate" ).val( this.firstDate ); 103 // $( "#endDate" ).val( this.lastDate ); 104 // this.beginDate = this.calendarConverter.parse( $( "#beginDate" ).val() ).getTime(); 105 // this.endDate = this.calendarConverter.parse( $( "#endDate" ).val() ).getTime(); 106 107 // this.clearCalendarButton = new Button( {value:interfaceTexts["visualization.button.clear"], parent:this.containerOptionCalendar, id:"button_clear_calendar", className:"small", onClick:jQuery.proxy( this.onClickClear, this )} ); 101 this.clearCalendarButton = new Button( {value:'<spring:message code="label.clear"/>', parent:this.containerCalendar, id:"button_clear_calendar", className:"small", onClick:jQuery.proxy( this.onClickClear, this )} ); 108 102 109 103 }, … … 113 107 { 114 108 $.ajax( { 115 url: " statistic?methodName=searchMainStatisticsByProject&name=" + this.selectedLogo.id,109 url: "project?methodName=getQuicklookByValues&satellite="+ this.selectSatellites.getValue()+"&projection="+this.selectProjections.getValue()+"&species="+this.selectSpecies.getValue()+"&date="+this.beginDate, 116 110 success:jQuery.proxy( this.handleQuickLooksBySelectValues, this ), 117 111 error: jQuery.proxy( this.showErrors, this ) … … 123 117 handleQuickLooksBySelectValues: function( result ) 124 118 { 125 // this.displaySummary(); 119 120 var plotName = jQuery.parseJSON( result ).plotNameResult; 121 this.containerQuickLookA.html(plotName); 126 122 }, 127 123 128 124 129 125 // EVENTS ******************************************************** 130 onClick Button: function()126 onClickQuicklook: function() 131 127 { 132 alert( "paf : " + this.selectProjections.getValue() + ", " + this.selectSatellites.getValue());128 this.requestQuickLooksBySelectValues(); 133 129 }, 134 130 … … 136 132 { 137 133 this.beginDate = this.calendarConverter.parse( $( "#beginDate" ).val() ).getTime(); 134 }, 135 136 onClickClear: function() 137 { 138 $( "#beginDate" ).val( "" ); 139 this.beginDate = false; 138 140 }, 139 141 -
ether_iasi/trunk/web/src/com/ether/Controller.java
r716 r722 12 12 import javax.servlet.http.HttpServletRequest; 13 13 import javax.servlet.http.HttpServletResponse; 14 import java.text.ParseException; 15 import java.util.Calendar; 16 import java.util.Date; 14 17 import java.util.HashMap; 15 18 import java.util.Map; … … 45 48 /** *********************************************************** **/ 46 49 /** 47 * Search main statistics for the selected project48 50 * 49 * @param projectName 51 * @param satellite 52 * @param projection 53 * @param species 54 * @param strDate 50 55 * @return 51 * @throws ServiceException56 * @throws WebException 52 57 */ 53 @ControllerMethod(jsonResult = true, loginMandatory = true) 54 public JSONObject searchMainStatisticsByProject( @Mandatory @ParamName(ParameterConstants.PARAMETER_NAME) final String projectName ) 55 throws ServiceException 58 @ControllerMethod(jsonResult = true) 59 public JSONObject getQuicklookByValues( @Mandatory @ParamName("satellite") final String satellite, 60 @Mandatory @ParamName("projection") final String projection, 61 @Mandatory @ParamName("species") final String species, 62 @Mandatory @ParamName("date") final String strDate) 63 throws WebException 56 64 { 57 // final List<Parametre> fullParametersByPlateform = getEtherService().getParametersByPlateformId( plateformId ); 58 // final List<List<Parametre>> parametersByPlateform = getEtherService().manageMenusForParameterList( fullParametersByPlateform ); 65 final Calendar calendar= Calendar.getInstance(); 66 calendar.setTimeInMillis( Long.valueOf( strDate ) ); 67 final Date date = calendar.getTime(); 68 final String fmtDate=DateHelper.formatDate( date, "yyyyMMdd" ) ; 69 final String plotName="iasi_"+species+"_"+projection+"_"+fmtDate+"_"+satellite+".png"; 70 final JSONObject result = new JSONObject(); 71 result.put("plotNameResult",plotName ); 72 return result; 59 73 60 final JSONObject result = new JSONObject();61 // result.put( ParameterConstants.PARAMETER_PARAMETERS, getJsonHelper().toJSON( parametersByPlateform ) );62 return result;63 74 } 64 75 -
ether_iasi/trunk/web/src/messages_en.properties
r720 r722 23 23 label.daycalendar=Day 24 24 label.quicklook.button=Get quicklook 25 label.clear=Clear -
ether_iasi/trunk/web/src/messages_fr.properties
r720 r722 24 24 label.daycalendar=Jour 25 25 label.quicklook.button=Go quicklook 26 label.clear=Initialiser
Note: See TracChangeset
for help on using the changeset viewer.