diff app/view/sql/List.js @ 6:8e79bda4d55b

Added a list to select predefined SQL Statement for the Proben list.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 29 Apr 2013 15:18:26 +0200
parents
children e4fcb4ddd782
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/sql/List.js	Mon Apr 29 15:18:26 2013 +0200
@@ -0,0 +1,25 @@
+Ext.define('Lada.view.sql.List' ,{
+    extend: 'Ext.grid.Panel',
+    alias: 'widget.sqllist',
+
+    title: 'SQL-Auswahl',
+
+    initComponent: function() {
+        this.store = {
+            fields: ['id', 'name', 'description', 'sql'],
+            data  : [
+                {'id': '1', 'name': 'MST, UWB', 'description': 'Beschreibung der MST, UWB Abfrage', 'sql': 'select * from xxx'},
+                {'id': '2', 'name': 'Rbegin', 'description': 'Beschreibung der Rbegin Abfrage', 'sql': 'select * from xxx'}
+            ]
+        };
+
+        this.columns = [
+            {header: 'ID',  dataIndex: 'id',  flex: 1},
+            {header: 'Kurzname', dataIndex: 'name', flex: 1},
+            {header: 'SQL', dataIndex: 'desc', flex: 1}
+        ];
+
+        this.callParent(arguments);
+    }
+});
+

http://lada.wald.intevation.org