Changeset 301
- Timestamp:
- 12/14/11 17:20:45 (13 years ago)
- Location:
- ether_megapoli/trunk/web
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/web/data/plateform.jsp
r298 r301 10 10 <tiles:put name="insertJsOrJsp" type="string"> 11 11 <ether:htmlJs jsFile="classesForJQuery/Loading"/> 12 <ether:htmlJs jsFile="calendar/anytime"/> 12 13 </tiles:put> 13 14 … … 32 33 <div id="containerMobilePlateforms" class="plateformElement"></div> 33 34 34 <BR/>35 36 35 <div id="messages"><bean:message key="data.access.plat.fixe"/> :</div> 37 36 <div id="containerFixePlateforms" class="plateformElement"></div> … … 48 47 interfaceTexts["data.access.plat2"] = '<bean:message key="data.access.plat2" arg0=""/>'; 49 48 interfaceTexts["data.access.plat2.s"] = '<bean:message key="data.access.plat2" arg0="s"/>'; 49 interfaceTexts["app.measure.dates"] = '<bean:message key="app.measure.dates"/>'; 50 50 51 51 var InterfacePlateform = Class.create( { 52 52 53 initialize: function( nbPlateforms, jSonPlateforms )53 initialize: function( nbPlateforms, jSonPlateforms, mapPlateforms ) 54 54 { 55 55 this.numberPlateforms = nbPlateforms || false; 56 56 this.jSonPlateforms = jSonPlateforms || null; 57 this.mapPlateforms = mapPlateforms || false; 57 58 this.containerMobilePlateforms = $( "#containerMobilePlateforms" ); 58 59 this.containerFixePlateforms = $( "#containerFixePlateforms" ); … … 90 91 jQuery.each( this.jSonPlateforms, jQuery.proxy( function( i, item ) 91 92 { 93 var divMainPlateform = $( document.createElement( "div" ) ); 94 divMainPlateform.addClass( "containerElement_main_plateform" ); 95 92 96 var divPlateform = $( document.createElement( "div" ) ); 93 97 divPlateform.html( item.name ); 94 98 divPlateform.addClass( "containerElement containerElement_plateform" ); 95 99 divPlateform.bind( "click", item, this.onSelectPlateform ); 100 96 101 if( "MOBILE" == item.type ) 97 102 { 98 103 numberMobilePlateforms++; 99 this.containerMobilePlateforms.append( divPlateform ); 104 this.containerMobilePlateforms.append( divMainPlateform ); 105 divMainPlateform.append( divPlateform ); 106 107 var divPlateformDates = $( document.createElement( "div" ) ); 108 var dateString = interfaceTexts["app.measure.dates"] + " :<BR/>"; 109 jQuery.each( this.mapPlateforms[item.id], function( j, itemDate ) 110 { 111 dateString += " " + formatDate( new Date( itemDate.time ), "%Y-%m-%d" ); 112 if( 9 > j % 10 ) 113 dateString += " "; 114 else 115 dateString += " <BR/>"; 116 } ); 117 divPlateformDates.html( dateString ); 118 divPlateformDates.addClass( "containerElement_plateform_dates" ); 119 divMainPlateform.append( divPlateformDates ); 120 121 divPlateform.mouseover( function( e ) 122 { 123 divPlateformDates.toggle(); 124 } ); 125 126 divPlateform.mouseout( function( e ) 127 { 128 divPlateformDates.toggle(); 129 } ); 130 100 131 } 101 132 else 102 133 { 103 134 numberFixePlateforms++; 104 this.containerFixePlateforms.append( divPlateform ); 135 this.containerFixePlateforms.append( divMainPlateform ); 136 divMainPlateform.append( divPlateform ); 105 137 } 106 138 }, this ) ); … … 129 161 } ); 130 162 131 new InterfacePlateform( ${nbPlateforms}, ${plateforms} );163 new InterfacePlateform( ${nbPlateforms}, ${plateforms}, ${mapPlateforms} ); 132 164 </script> 133 165 -
ether_megapoli/trunk/web/resources/css/megapoli.css
r298 r301 202 202 .containerElement_plateform { 203 203 width: 84px; 204 float: left; 205 } 206 207 #containerMobilePlateforms .containerElement_main_plateform .containerElement_plateform:hover { 208 -moz-border-radius: 4px 0 0 4px; 209 -webkit-border-radius: 4px 0 0 4px; 210 } 211 212 .containerElement_plateform_dates { 213 display: none; 214 -moz-border-radius: 0 4px 4px 4px; 215 -webkit-border-radius: 0 4px 4px 4px; 216 background: #70739C; 217 color: white; 218 float: left; 219 } 220 221 .containerElement_main_plateform { 222 float: left; 223 width: 900px; 224 } 225 226 #containerMobilePlateforms { 227 padding-bottom: 117px; 204 228 } 205 229 -
ether_megapoli/trunk/web/src/ApplicationResources.properties
r290 r301 453 453 app.coordinator=Coordinateur 454 454 app.technician=Technicien 455 app.measure.dates=Dates de mesures 455 456 456 457 data.visualization.general.text=Dans cette zone, vous pouvez visualiser en ligne les donn\u00E9es disponibles. Plusieurs types de visualisations vous sont propos\u00E9s :<ul><li>un param\u00E8tre pour un site</li><li>un param\u00E8tre pour plusieurs sites</li><li>diff\u00E9rents param\u00E8tre pour un site</li><li>des visualisations en 2D</li></ul> -
ether_megapoli/trunk/web/src/ApplicationResources_en.properties
r290 r301 454 454 app.coordinator=Coordinator 455 455 app.technician=Technician 456 app.measure.dates=Measures dates 456 457 457 458 data.visualization.general.text=In this area you can visualize available data with the following types of visualization : <ul><li>one parameter by plateform</li><li>one parameter by many plateforms</li><li>differents parameters by plateform</li><li>2D visualizations</li></ul> -
ether_megapoli/trunk/web/src/com/ether/ControllerData.java
r298 r301 62 62 { 63 63 final List<Plateforme> plateforms = getEtherService().getAllPlateforms(); 64 final Map<Integer, List<Date>> map = new HashMap<Integer, List<Date>>( plateforms.size() ); 64 65 65 66 for( final Plateforme plateform : plateforms ) … … 67 68 if( "MOBILE".equals( plateform.getTypePlateforme().getTypePlateformeNom() ) ) 68 69 { 69 List<Date> dates = getEtherService().getAllMeasureDateByPlateformId( plateform.getPlateformeId() );70 final String bob = "bib";70 final List<Date> dates = getEtherService().getAllMeasureDateByPlateformId( plateform.getPlateformeId() ); 71 map.put( plateform.getPlateformeId(), dates ); 71 72 } 72 73 } … … 75 76 result.put( "nbPlateforms", plateforms.size() ); 76 77 result.put( "plateforms", getJsonHelper().toJSON( plateforms ) ); 78 result.put( "mapPlateforms", map ); 77 79 return result; 78 80 }
Note: See TracChangeset
for help on using the changeset viewer.