[Lada-commits] [PATCH] Added missing file

Wald Commits scm-commit at wald.intevation.org
Fri Jul 5 09:37:19 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373009783 -7200
# Node ID ceb04286152a0fd5b1ff670f2b73381aa95f0fad
# Parent  23f74ae3bb8759d1bba88265113f80301ee0f7eb
Added missing file.

diff -r 23f74ae3bb87 -r ceb04286152a app/view/messwerte/List.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/messwerte/List.js	Fri Jul 05 09:36:23 2013 +0200
@@ -0,0 +1,69 @@
+Ext.define('Lada.view.messwerte.List' ,{
+    extend: 'Ext.grid.Panel',
+    alias: 'widget.messwertelist',
+    store: 'Messwerte',
+    viewConfig: {
+        maxHeight: 350,
+        emptyText: 'Keine Messwerte gefunden.',
+        // minHeight and deferEmptyText are needed to be able to show the
+        // emptyText message.
+        minHeight: 35,
+        deferEmptyText: false
+    },
+    probeId: null,
+    initComponent: function() {
+        this.dockedItems = [
+            {
+                xtype: 'toolbar',
+                dock: 'top',
+                items: [
+                    {
+                        text: 'Hinzufügen',
+                        icon: 'gfx/plus.gif',
+                        action: 'add',
+                        probeId: this.probeId
+                    },
+                    {
+                        text: 'Löschen',
+                        icon: 'gfx/minus.gif',
+                        action: 'delete'
+                    }
+                ]
+            }
+        ];
+        this.columns = [
+            {header: 'Messwert', dataIndex: 'messwert'},
+            {header: 'Messfehler', dataIndex: 'messfehler'},
+            {
+                header: 'Messgröße',
+                dataIndex: 'messgroesseId',
+                renderer: function(value) {
+                    var store = Ext.getStore('Messgroessen');
+                    return store.findRecord('messgroesseId', value).get('messgro0esse');
+                }
+            },
+            {
+                header: 'Messeinheit',
+                dataIndex: 'mehId',
+                renderer: function(value) {
+                    var store = Ext.getStore('Messeinheit');
+                    return store.findRecord('mehId', value).get('einheit');
+                }
+            },
+            {
+                header: 'Grenzwertüberschreitung',
+                dataIndex: 'grenzwertueberschreitung',
+                flex: 1,
+                renderer: function(value) {
+                    if (value === true) {
+                        return "Ja";
+                    } else {
+                        return "Nein";
+                    }
+                }
+            }
+        ];
+        this.callParent(arguments);
+    }
+});
+


More information about the Lada-commits mailing list