# HG changeset patch # User Andre Heinecke # Date 1375204489 -7200 # Node ID 71da3d4ffb4a46a2f8de7e6a9e1e4a32657802aa # Parent b494a9cf25e5ebf4a2f01ce8a3a7a1b33078b9f0 issue1391: Some more unification fix km filtering for calculated discharges The km filtering still remains a problem for fix and historical diff -r b494a9cf25e5 -r 71da3d4ffb4a artifacts/doc/conf/meta-data.xml --- a/artifacts/doc/conf/meta-data.xml Tue Jul 30 18:59:35 2013 +0200 +++ b/artifacts/doc/conf/meta-data.xml Tue Jul 30 19:14:49 2013 +0200 @@ -147,7 +147,7 @@ - + @@ -159,7 +159,7 @@ - + @@ -185,13 +185,14 @@ + + - @@ -277,7 +278,7 @@ - + @@ -365,9 +366,6 @@ - - - @@ -378,7 +376,6 @@ - @@ -484,7 +481,7 @@ - + SELECT g.id AS gauge_id, @@ -497,10 +494,10 @@ FROM gauges g JOIN discharge_tables dt ON g.id = dt.gauge_id LEFT JOIN time_intervals t ON dt.time_interval_id = t.id - LEFT JOIN ranges r ON g.range_id = r.id WHERE g.river_id = ${river_id} AND dt.kind <> 0 - AND NOT((${tokm} < r.a) or (${fromkm} > r.b)) + AND g.station = ${fromkm} + AND g.station = ${tokm} ORDER BY start_time @@ -523,25 +520,6 @@ - - - - - - - - - - - - - - - - - - - @@ -1348,20 +1326,25 @@ SELECT g.id AS gauge_id, - g.name AS gauge_name + g.name AS gauge_name, + t.start_time AS start_time, + t.stop_time AS stop_time FROM gauges g - LEFT JOIN ranges r ON g.range_id = r.id + JOIN discharge_tables dt ON g.id = dt.gauge_id + LEFT JOIN time_intervals t ON dt.time_interval_id = t.id WHERE g.river_id = ${river_id} - AND NOT((${tokm} < r.a) or (${fromkm} > r.b)) + AND dt.kind = 0 + AND g.station = ${fromkm} + AND g.station = ${tokm} - + - - + diff -r b494a9cf25e5 -r 71da3d4ffb4a gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java Tue Jul 30 18:59:35 2013 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java Tue Jul 30 19:14:49 2013 +0200 @@ -1311,5 +1311,7 @@ String official_regulation(); String historical_discharge_curves(); + + String current_gauge(); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r b494a9cf25e5 -r 71da3d4ffb4a gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties Tue Jul 30 18:59:35 2013 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.properties Tue Jul 30 19:14:49 2013 +0200 @@ -278,6 +278,7 @@ pdf = PDF computed_dischargecurve_at_export = Discharge Curve Export gauge_discharge_curve_at_export = Gauge Discharge Curve +current_gauge = Current Gauge Discharge Curve gauge_class = Gauge Class eventselect = Eventselection events = Events diff -r b494a9cf25e5 -r 71da3d4ffb4a gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties Tue Jul 30 18:59:35 2013 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties Tue Jul 30 19:14:49 2013 +0200 @@ -216,6 +216,7 @@ discharge_curve = Abflusskurve am Pegel discharge_curve_gaugeless = Abflusskurve gauge_discharge_curve = Abflusstafel am Pegel +current_gauge = aktuelle Abflusstafel am Pegel computed_discharge_curve = Abflusskurve computed_discharge_curves = Abflusskurven historical_discharge_curves = Historische Abflusskurven diff -r b494a9cf25e5 -r 71da3d4ffb4a gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_en.properties --- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_en.properties Tue Jul 30 18:59:35 2013 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_en.properties Tue Jul 30 19:14:49 2013 +0200 @@ -213,6 +213,7 @@ static_sqrelation = SQ relation discharge_curve = Discharge Curve at Gauge discharge_curve_gaugeless = Discharge Curve +current_gauge = Current Gauge Discharge Curve gauge_discharge_curve = Discharge Table at Gauge computed_discharge_curve = Discharge Curve computed_discharge_curves = Discharge Curves