changeset 419:2f4270ff8206

Issue70: Indikator eingefügt um anzuzeigen das der Messert unterhalb der Nachweisgrenze liegt.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 11 Oct 2013 13:04:30 +0200 (2013-10-11)
parents 5c037d30aaab
children eeeaea114249
files app/view/messwerte/List.js
diffstat 1 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/messwerte/List.js	Fri Sep 27 14:53:11 2013 +0200
+++ b/app/view/messwerte/List.js	Fri Oct 11 13:04:30 2013 +0200
@@ -37,7 +37,21 @@
             }
         ];
         this.columns = [
-            {header: 'Messwert', dataIndex: 'messwert'},
+            {
+                header: 'Messwert',
+                dataIndex: 'messwert',
+                renderer: function(value, row) {
+                    // the seconds argument here is not documented in JQuery
+                    // but it has the current rendererd row and this
+                    // referenced the record.
+                    var nwg = row.record.get('nwgZuMesswert');
+                    if (value < nwg) {
+                        return "<"+value;
+                    } else {
+                        return value;
+                    }
+                }
+            },
             {header: 'Messfehler', dataIndex: 'messfehler'},
             {
                 header: 'Messgröße',

http://lada.wald.intevation.org