Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/validation/rules/probe/TimeProbeentnahmeBegin.java @ 559:7c1f9409764a
Fixed field name 'probeentnahmeBeginn'.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 13 Mar 2015 16:45:11 +0100 |
parents | 8215619b208e |
children | 3ec358698b4d |
comparison
equal
deleted
inserted
replaced
558:a1b46c5c11c3 | 559:7c1f9409764a |
---|---|
19 if (begin == null && end == null) { | 19 if (begin == null && end == null) { |
20 return null; | 20 return null; |
21 } | 21 } |
22 if (begin == null && end != null) { | 22 if (begin == null && end != null) { |
23 Violation violation = new Violation(); | 23 Violation violation = new Violation(); |
24 violation.addWarning("probeentnahmeBegin", 662); | 24 violation.addWarning("probeentnahmeBeginn", 662); |
25 return violation; | 25 return violation; |
26 } | 26 } |
27 if (begin.after(new Date())) { | 27 if (begin.after(new Date())) { |
28 Violation violation = new Violation(); | 28 Violation violation = new Violation(); |
29 violation.addWarning("probeentnahmeBegin", 661); | 29 violation.addWarning("probeentnahmeBeginn", 661); |
30 return violation; | 30 return violation; |
31 } | 31 } |
32 if (end == null) { | 32 if (end == null) { |
33 return null; | 33 return null; |
34 } | 34 } |
35 if (begin.after(end)) { | 35 if (begin.after(end)) { |
36 Violation violation = new Violation(); | 36 Violation violation = new Violation(); |
37 violation.addWarning("probeentnahmeBegin", 662); | 37 violation.addWarning("probeentnahmeBeginn", 662); |
38 return violation; | 38 return violation; |
39 } | 39 } |
40 return null; | 40 return null; |
41 } | 41 } |
42 } | 42 } |