[Lada-commits] [PATCH 4 of 4] Added a model for Status

Wald Commits scm-commit at wald.intevation.org
Tue Mar 10 11:41:02 CET 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1425985087 -3600
# Node ID d9593b520b3b649d76973935062596ab9b074185
# Parent  34b2654af1587877b89a12d32eb9b4aa054a3989
Added a model for Status

diff -r 34b2654af158 -r d9593b520b3b app/model/Status.js
--- /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'
+        }
+    }
+});


More information about the Lada-commits mailing list