changeset 3868:44e68dc1d87e

Fixed date range in minfo bed quality result. flys-artifacts/trunk@5499 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 17 Sep 2012 14:47:05 +0000
parents d8c99ff18db8
children 74f9766599b5
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityCalculation.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityResult.java
diffstat 3 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Sep 17 14:38:47 2012 +0000
+++ b/flys-artifacts/ChangeLog	Mon Sep 17 14:47:05 2012 +0000
@@ -1,3 +1,11 @@
+2012-09-17  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityResult.java:
+	  Added setter for date range.
+
+	* src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityCalculation.java
+	  Set correct date range for result.
+
 2012-09-17  Raimund Renkert <raimund.renkert@intevation.de>
 
 	Refactor MINFO bed quality resultsets and facets.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityCalculation.java	Mon Sep 17 14:38:47 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityCalculation.java	Mon Sep 17 14:47:05 2012 +0000
@@ -100,6 +100,7 @@
                     dr.getFrom(),
                     dr.getTo());
             BedQualityResult result = new BedQualityResult();
+            result.setDateRange(dr);
             if (bedDiameter != null) {
                 result.add(calculateBedParameter(bedMeasurements, dr));
                 for (String bd : bedDiameter) {
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityResult.java	Mon Sep 17 14:38:47 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityResult.java	Mon Sep 17 14:47:05 2012 +0000
@@ -64,4 +64,8 @@
     public DateRange getDateRange() {
         return dateRange;
     }
+
+    public void setDateRange(DateRange range) {
+        this.dateRange = range;
+    }
 }

http://dive4elements.wald.intevation.org