Ignore:
Timestamp:
09/07/11 19:09:04 (13 years ago)
Author:
vmipsl
Message:

Servlet _ TimeSerie? : double axes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/visualization/visu_parameter_by_pf-script.jsp

    r178 r184  
    8484    { 
    8585        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(); 
    8787        this.downloadButton = new Button( {value:interfaceTexts["data.visualization.button.download"], parent:this.containerButtons, id:"button_download", onClick:this.onClickDownload.bind( this )} ); 
    8888        this.downloadButton.disable(); 
     
    294294//                + "&axeType=" + this.selectAxes.getValue(); 
    295295 
    296         var url = "visualization/plotEther?plateformId=14" 
    297                 + "&parameterId=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 
    299312                + "&dateEnd=" + this.endDate 
    300313                + "&title=" + encodeURIComponent( $( "textareaTitle" ).value ) 
     314                + "&pIdPIdList=" + arrayPIdPId 
    301315                + "&axeType=" + this.selectAxes.getValue(); 
    302316 
     
    304318 
    305319        <%--this.plotWindow.getContent().innerHTML = '<applet code="AppletTimeSerie.class" codebase="<%=request.getContextPath()%>/applets" height="400px" width="400px"> ' +--%> 
    306                 <%--'<param name="plateformId" value="14"> ' +--%> 
    307                 <%--'<param name="parameterId" value="90"> ' +--%> 
    308                 <%--'<param name="dateBegin" value=""> ' +--%> 
    309                 <%--'<param name="dateEnd" value=""> ' +--%> 
    310                 <%--'<param name="title" value="zzzz"> ' +--%> 
    311                 <%--'<param name="axeType" value="MOBILE"> ' +--%> 
    312                 <%--'</applet>';--%> 
     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>';--%> 
    313327        this.plotWindow.setSize( <%=EtherPlotServiceImpl.getMaxWidth()%>, <%=EtherPlotServiceImpl.getMaxHeight()%> ); 
    314328        this.plotWindow.show(); 
     
    344358    testAllFields: function() 
    345359    { 
    346         if( !this.selectedPlateform || !this.selectedParameter || !this.beginDate || !this.endDate ) 
     360        if( (!this.selectedPlateform || !this.selectedParameter) && 0 == this.numberParameterToDisplay ) 
    347361        { 
    348 //            this.visualizeButton.disable(); 
     362            this.visualizeButton.disable(); 
    349363            this.downloadButton.disable(); 
    350364            return; 
     
    432446    } 
    433447 
    434 } ) 
    435         ; 
     448} ); 
    436449 
    437450</script> 
Note: See TracChangeset for help on using the changeset viewer.