[Lada-commits] [PATCH 8 of 9] Added missing model for verwaltungseinheit
Wald Commits
scm-commit at wald.intevation.org
Mon Nov 3 10:31:28 CET 2014
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1414843936 -3600
# Node ID fbcf6ef3b6f6b1054dc0d227aae5d890496d689e
# Parent 850ccfe5f3c45faab0ac988b16e92c6284a69cfc
Added missing model for verwaltungseinheit.
diff -r 850ccfe5f3c4 -r fbcf6ef3b6f6 app/model/StaVerwaltungseinheit.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/model/StaVerwaltungseinheit.js Sat Nov 01 13:12:16 2014 +0100
@@ -0,0 +1,66 @@
+/* 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 Verwaltungseinheit Stammdaten.
+ */
+Ext.define('Lada.model.StaVerwaltungseinheit', {
+ extend: 'Ext.data.Model',
+
+ /**
+ * Fields are:
+ * - id: The unique identifer (Primary key)
+ * - beschreibung: The long description.
+ * - umweltBereich:
+ * - mehId:
+ */
+ fields: [{
+ name: 'id'
+ }, {
+ name: 'bundeland'
+ }, {
+ name: 'kdaId'
+ }, {
+ name: 'kreis'
+ }, {
+ name: 'nuts'
+ }, {
+ name: 'regbezirk'
+ }, {
+ name: 'bezeichnung'
+ }, {
+ name: 'isBundeland'
+ }, {
+ name: 'isGemeinde'
+ }, {
+ name: 'isLandkreis'
+ }, {
+ name: 'isRegbezirk'
+ }, {
+ name: 'koordXExtern'
+ }, {
+ name: 'koordYExtern'
+ }, {
+ name: 'plz'
+ }, {
+ name: 'longitude'
+ }, {
+ name: 'latitude'
+ }],
+
+ idProperty: 'id',
+
+ proxy: {
+ type: 'rest',
+ url: 'server/rest/sta_verwaltungseinheit',
+ reader: {
+ type: 'json',
+ root: 'data'
+ }
+ }
+});
More information about the Lada-commits
mailing list