Mercurial > lada > lada-client
changeset 492:fbcf6ef3b6f6
Added missing model for verwaltungseinheit.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Sat, 01 Nov 2014 13:12:16 +0100 |
parents | 850ccfe5f3c4 |
children | 9fec6df13be8 |
files | app/model/StaVerwaltungseinheit.js |
diffstat | 1 files changed, 66 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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' + } + } +});