[Lada-commits] [PATCH 1 of 3] Added model and store for deskriptoren
Wald Commits
scm-commit at wald.intevation.org
Tue May 12 15:12:12 CEST 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1431436252 -7200
# Node ID 274a843caf44122aa57ab6067e4235cbaa8dccea
# Parent 380edfecac675fded85eca1608483da397836866
Added model and store for deskriptoren.
diff -r 380edfecac67 -r 274a843caf44 app/model/Deskriptor.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/model/Deskriptor.js Tue May 12 15:10:52 2015 +0200
@@ -0,0 +1,36 @@
+/**
+ *
+ */
+Ext.define('Lada.model.Deskriptor', {
+ extend: 'Ext.data.Model',
+
+ /**
+ * Fields are:
+ * - ...
+ */
+ fields: [{
+ name: 'bedeutung'
+ }, {
+ name: 'beschreibung'
+ }, {
+ name: 'ebene'
+ }, {
+ name: 'id'
+ }, {
+ name: 'sn'
+ }, {
+ name: 'sXx'
+ }],
+
+ idProperty: 'id',
+
+ proxy: {
+ type: 'rest',
+ url: 'lada-server/deskriptor',
+ reader: {
+ type: 'json',
+ root: 'data',
+ totalProperty: 'totalCount'
+ }
+ }
+});
diff -r 380edfecac67 -r 274a843caf44 app/store/Deskriptoren.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/store/Deskriptoren.js Tue May 12 15:10:52 2015 +0200
@@ -0,0 +1,15 @@
+/* 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.
+ */
+
+/**
+ * Store for Datenbasis
+ */
+Ext.define('Lada.store.Deskriptoren', {
+ extend: 'Ext.data.Store',
+ model: 'Lada.model.Deskriptor'
+});
More information about the Lada-commits
mailing list