Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/DynamicMainValuesTimeRangeDeterminationService.java @ 9458:7369d6ae3f87
bundu bezugswst WQ-Input: UD disabled on global Error
author | gernotbelger |
---|---|
date | Tue, 28 Aug 2018 17:05:25 +0200 |
parents | a31cb674ddd1 |
children | 879c902c4a2d |
comparison
equal
deleted
inserted
replaced
9457:65f28328c9a3 | 9458:7369d6ae3f87 |
---|---|
112 } | 112 } |
113 | 113 |
114 // common Range and correct errorMsg | 114 // common Range and correct errorMsg |
115 final List<GaugeInfoResult.GaugeInfo> gaugeResultsSecondTurn = new ArrayList<>(); | 115 final List<GaugeInfoResult.GaugeInfo> gaugeResultsSecondTurn = new ArrayList<>(); |
116 for (final GaugeInfoResult.GaugeInfo gi : gaugeResults) { | 116 for (final GaugeInfoResult.GaugeInfo gi : gaugeResults) { |
117 gaugeResultsSecondTurn.add(new GaugeInfoResult.GaugeInfo(gi.errorMsg, gi.gauge, gi.startdate != null ? min : null, | 117 gaugeResultsSecondTurn |
118 gi.enddate != null ? max : null)); | 118 .add(new GaugeInfoResult.GaugeInfo(gi.errorMsg, gi.gauge, gi.startdate != null ? min : null, gi.enddate != null ? max : null)); |
119 } | 119 } |
120 if (globalErrorMsg.isEmpty() && (min.getTime() > max.getTime())) | 120 if (globalErrorMsg.isEmpty() && (min.getTime() > max.getTime())) |
121 globalErrorMsg = getMsg(meta, "bundu.wst.gauge_timeranges_disjoint"); | 121 globalErrorMsg = getMsg(meta, "bundu.wst.gauge_timeranges_disjoint"); |
122 | |
123 // add "cannot calculate UD" to globalErrorMsg | |
124 // Eine Berechnung der UD ist nicht möglich. | |
125 if (!globalErrorMsg.isEmpty()) | |
126 globalErrorMsg = new StringBuilder().append(globalErrorMsg).append("\n").append(getMsg(meta, "bundu.wst.gauge_no_ud_calc_available")).toString(); | |
127 | |
122 final GaugeInfoResult result = new GaugeInfoResult(gaugeResultsSecondTurn, globalErrorMsg); | 128 final GaugeInfoResult result = new GaugeInfoResult(gaugeResultsSecondTurn, globalErrorMsg); |
123 | 129 |
124 return result; | 130 return result; |
125 } | 131 } |
126 | 132 |