Mercurial > lada > lada-client
comparison app/model/StaVerwaltungseinheit.js @ 492:fbcf6ef3b6f6
Added missing model for verwaltungseinheit.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Sat, 01 Nov 2014 13:12:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
491:850ccfe5f3c4 | 492:fbcf6ef3b6f6 |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /** | |
10 * Model class for Verwaltungseinheit Stammdaten. | |
11 */ | |
12 Ext.define('Lada.model.StaVerwaltungseinheit', { | |
13 extend: 'Ext.data.Model', | |
14 | |
15 /** | |
16 * Fields are: | |
17 * - id: The unique identifer (Primary key) | |
18 * - beschreibung: The long description. | |
19 * - umweltBereich: | |
20 * - mehId: | |
21 */ | |
22 fields: [{ | |
23 name: 'id' | |
24 }, { | |
25 name: 'bundeland' | |
26 }, { | |
27 name: 'kdaId' | |
28 }, { | |
29 name: 'kreis' | |
30 }, { | |
31 name: 'nuts' | |
32 }, { | |
33 name: 'regbezirk' | |
34 }, { | |
35 name: 'bezeichnung' | |
36 }, { | |
37 name: 'isBundeland' | |
38 }, { | |
39 name: 'isGemeinde' | |
40 }, { | |
41 name: 'isLandkreis' | |
42 }, { | |
43 name: 'isRegbezirk' | |
44 }, { | |
45 name: 'koordXExtern' | |
46 }, { | |
47 name: 'koordYExtern' | |
48 }, { | |
49 name: 'plz' | |
50 }, { | |
51 name: 'longitude' | |
52 }, { | |
53 name: 'latitude' | |
54 }], | |
55 | |
56 idProperty: 'id', | |
57 | |
58 proxy: { | |
59 type: 'rest', | |
60 url: 'server/rest/sta_verwaltungseinheit', | |
61 reader: { | |
62 type: 'json', | |
63 root: 'data' | |
64 } | |
65 } | |
66 }); |