diff app/view/messungen/List.js @ 170:738d657d8b6b

Added Status into Messungen listing.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 03 Jul 2013 16:08:22 +0200
parents 52d105d4e93f
children c5422819d7b9
line wrap: on
line diff
--- a/app/view/messungen/List.js	Wed Jul 03 16:06:51 2013 +0200
+++ b/app/view/messungen/List.js	Wed Jul 03 16:08:22 2013 +0200
@@ -34,7 +34,24 @@
             {header: 'NPR-Nr.', dataIndex: "nebenprobenNr", width: 50},
             {header: 'MMT', dataIndex: "mmtId", width: 50},
             {header: 'Messzeit', dataIndex: "messdauer"},
-            {header: 'Status'},
+            {
+                header: 'Status',
+                dataIndex: 'id',
+                renderer: function(value) {
+                    var sstore = Ext.getStore('Status');
+                    sstore.load({
+                        params: {
+                            probeId: value.probeId,
+                            messungsId: value.messungsId
+                        }
+                    });
+                    if (sstore.getTotalCount() === 0) {
+                        return "unbekannt";
+                    } else {
+                        return sstore.last().get('status');
+                    }
+                }
+            },
             {header: 'OK-Flag', dataIndex: "fertig"},
             {
                 header: 'Anzahl Nuklide',

http://lada.wald.intevation.org