diff app/model/StatusStufe.js @ 956:45c67a784b31

Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
author Dustin Demuth <dustin@intevation.de>
date Mon, 09 Nov 2015 13:31:43 +0100
parents
children f73ca04d73a7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/model/StatusStufe.js	Mon Nov 09 13:31:43 2015 +0100
@@ -0,0 +1,34 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details.
+ */
+
+/**
+ * Model class for StatusWerte
+ */
+Ext.define('Lada.model.StatusStufe', {
+    extend: 'Ext.data.Model',
+
+    fields: [{
+        name: 'id'
+    }, {
+        name: 'stufe',
+        type: 'string'
+    }],
+
+    idProperty: 'id',
+
+    proxy: {
+        type: 'rest',
+        url: 'lada-server/statusstufe',
+        reader: {
+            type: 'json',
+            root: 'data'
+        }
+    }
+
+});
+

http://lada.wald.intevation.org