[Lada-commits] [PATCH 1 of 9] Added new model and store for Queries
Wald Commits
scm-commit at wald.intevation.org
Tue Jul 23 11:46:29 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374565925 -7200
# Node ID 78134e20e62d6f1306b3c7ae48e0b4efc852ae0c
# Parent d4894ed5045a4a3120ff732963b45096a7144657
Added new model and store for Queries.
diff -r d4894ed5045a -r 78134e20e62d app/controller/Sql.js
--- a/app/controller/Sql.js Wed Jul 17 12:15:33 2013 +0200
+++ b/app/controller/Sql.js Tue Jul 23 09:52:05 2013 +0200
@@ -2,7 +2,8 @@
Ext.define('Lada.controller.Sql', {
extend: 'Ext.app.Controller',
stores: [
- 'Proben' // List of found Proben
+ 'Proben', // List of found Proben
+ 'Queries'
],
init: function() {
console.log('Initialising the Sql controller');
diff -r d4894ed5045a -r 78134e20e62d app/model/Query.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/model/Query.js Tue Jul 23 09:52:05 2013 +0200
@@ -0,0 +1,16 @@
+Ext.define('Lada.model.Query', {
+ extend: 'Ext.data.Model',
+ fields: [
+ {name: "id"},
+ {name: "name"},
+ {name: "description"},
+ {name: "sql"},
+ {name: "fields"},
+ ],
+ proxy: {
+ type: 'memory',
+ reader: {
+ type: 'json'
+ }
+ }
+});
diff -r d4894ed5045a -r 78134e20e62d app/store/Queries.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/Queries.js Tue Jul 23 09:52:05 2013 +0200
@@ -0,0 +1,20 @@
+Ext.define('Lada.store.Queries', {
+ extend: 'Ext.data.Store',
+ model: 'Lada.model.Query',
+ data : [
+ {
+ 'id': '1',
+ 'name': 'MST, UWB',
+ 'description': 'Beschreibung der MST, UWB Abfrage',
+ 'sql': 'select * from xxx',
+ 'fields': []
+ },
+ {
+ 'id': '2',
+ 'name': 'Rbegin',
+ 'description': 'Beschreibung der Rbegin Abfrage',
+ 'sql': 'select * from xxx',
+ 'fields': []
+ }
+ ],
+});
More information about the Lada-commits
mailing list