comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/GaugeTimeRangePanel.java @ 6837:9da2298ae380

(issue1353) Add river name to query for discharge Info The previous assumption was that the official number is unique for a gauge. This assumption is broken by having multiple variants of a river in the database, like Donau (schleusenkanäle)
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 15 Aug 2013 15:57:13 +0200
parents ea9eef426962
children d1cfd23e35cd
comparison
equal deleted inserted replaced
6836:caf027fe0715 6837:9da2298ae380
103 103
104 long gauge = getGaugeNumber(); 104 long gauge = getGaugeNumber();
105 105
106 Config config = Config.getInstance(); 106 Config config = Config.getInstance();
107 String url = config.getServerUrl(); 107 String url = config.getServerUrl();
108 yearTable.setDataSource(new DischargeInfoDataSource(url, gauge)); 108 String river = artifact.getArtifactDescription().getRiver();
109 yearTable.setDataSource(new DischargeInfoDataSource(url, gauge, river));
109 110
110 helperContainer.addMember(createHelperPanel()); 111 helperContainer.addMember(createHelperPanel());
111 112
112 setMaxUpper(data); 113 setMaxUpper(data);
113 setMaxLower(data); 114 setMaxLower(data);

http://dive4elements.wald.intevation.org