changeset 8396:a201d475e50d

Add location data to sq relation artifact. Fixed station name.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 08 Oct 2014 16:28:02 +0200
parents a5fbcdd85359
children da67b2bca1c0
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java	Wed Oct 08 16:23:46 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java	Wed Oct 08 16:28:02 2014 +0200
@@ -201,14 +201,24 @@
                     DataItem nameItem = new DefaultDataItem(
                         "station_name",
                         "station_name",
-                        station.getID().toString());
+                        station.getName().toString());
                     Data name = new DefaultData(
                         "station_name",
                         null,
                         null,
                         new DataItem[]{nameItem});
 
-                    Data[] data = new Data[]{river, ref, name};
+                    DataItem locationItem = new DefaultDataItem(
+                        "ld_locations",
+                        "ld_locations",
+                        station.getKmStart().toString());
+                    Data location = new DefaultData(
+                        "ld_locations",
+                        null,
+                        null,
+                        new DataItem[]{locationItem});
+
+                    Data[] data = new Data[]{river, ref, name, location};
                     forwardService.go(locale, artifact, data,
                         new AsyncCallback<Artifact>() {
                         @Override

http://dive4elements.wald.intevation.org