changeset 569:d9593b520b3b

Added a model for Status
author Dustin Demuth <dustin@intevation.de>
date Tue, 10 Mar 2015 11:58:07 +0100
parents 34b2654af158
children 8d2cf853eed2 0d4137e0fe36
files app/model/Status.js
diffstat 1 files changed, 37 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/model/Status.js	Tue Mar 10 11:58:07 2015 +0100
@@ -0,0 +1,37 @@
+/* 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 Status
+ */
+Ext.define('Lada.model.Status', {
+    extend: 'Ext.data.Model',
+
+    fields: [{
+        name: 'id'
+    }, {
+        name: 'messungsId'
+    }, {
+        name: 'status'
+    }, {
+        name: 'sdatum'
+    }, {
+        name: 'skommentar'
+    }],
+
+    idProperty: 'id',
+
+    proxy: {
+        type: 'rest',
+        url: 'lada-server/status',
+        reader: {
+            type: 'json',
+            root: 'data'
+        }
+    }
+});

http://lada.wald.intevation.org