- Timestamp:
- 09/07/11 19:09:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/web/visualization/visu_parameter_by_pf-script.jsp
r178 r184 84 84 { 85 85 this.visualizeButton = new Button( {value:interfaceTexts["data.visualization.button.visualize"], parent:this.containerButtons, id:"button_visualize", onClick:this.onClickVisualize.bind( this )} ); 86 //this.visualizeButton.disable();86 this.visualizeButton.disable(); 87 87 this.downloadButton = new Button( {value:interfaceTexts["data.visualization.button.download"], parent:this.containerButtons, id:"button_download", onClick:this.onClickDownload.bind( this )} ); 88 88 this.downloadButton.disable(); … … 294 294 // + "&axeType=" + this.selectAxes.getValue(); 295 295 296 var url = "visualization/plotEther?plateformId=14" 297 + "¶meterId=90" 298 + "&dateBegin=" + this.beginDate 296 // TODO : utiliser JSON pour envoyer arrayPIdPId 297 var arrayPIdPId = new Array(); 298 if( 1 < this.numberParameterToDisplay ) 299 { 300 var index = 0; 301 this.selectPlots.arrayOptions.each( function( option ) 302 { 303 arrayPIdPId[index] = option.itemValue; 304 index++; 305 } ); 306 } 307 else if( this.selectedPlateform && this.selectedParameter ) 308 arrayPIdPId[0] = this.selectedPlateform.getId() + "-" + this.selectedParameter.getId(); 309 310 var url = "visualization/plotEther?" 311 + "dateBegin=" + this.beginDate 299 312 + "&dateEnd=" + this.endDate 300 313 + "&title=" + encodeURIComponent( $( "textareaTitle" ).value ) 314 + "&pIdPIdList=" + arrayPIdPId 301 315 + "&axeType=" + this.selectAxes.getValue(); 302 316 … … 304 318 305 319 <%--this.plotWindow.getContent().innerHTML = '<applet code="AppletTimeSerie.class" codebase="<%=request.getContextPath()%>/applets" height="400px" width="400px"> ' +--%> 306 307 308 309 310 311 312 320 <%--'<param name="plateformId" value="14"> ' +--%> 321 <%--'<param name="parameterId" value="90"> ' +--%> 322 <%--'<param name="dateBegin" value=""> ' +--%> 323 <%--'<param name="dateEnd" value=""> ' +--%> 324 <%--'<param name="title" value="zzzz"> ' +--%> 325 <%--'<param name="axeType" value="MOBILE"> ' +--%> 326 <%--'</applet>';--%> 313 327 this.plotWindow.setSize( <%=EtherPlotServiceImpl.getMaxWidth()%>, <%=EtherPlotServiceImpl.getMaxHeight()%> ); 314 328 this.plotWindow.show(); … … 344 358 testAllFields: function() 345 359 { 346 if( !this.selectedPlateform || !this.selectedParameter || !this.beginDate || !this.endDate)360 if( (!this.selectedPlateform || !this.selectedParameter) && 0 == this.numberParameterToDisplay ) 347 361 { 348 //this.visualizeButton.disable();362 this.visualizeButton.disable(); 349 363 this.downloadButton.disable(); 350 364 return; … … 432 446 } 433 447 434 } ) 435 ; 448 } ); 436 449 437 450 </script>
Note: See TracChangeset
for help on using the changeset viewer.