diff app/view/messwerte/List.js @ 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
parents d1bb925bb5f5
children 3ed0ab0f5ee5
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