comparison app/model/StaOrt.js @ 488:f7446ebfe5d0

Added and updated models.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:10:35 +0100
parents
children 850ccfe5f3c4
comparison
equal deleted inserted replaced
487:a05cbc6e63cb 488:f7446ebfe5d0
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 Ort Stammdaten
11 */
12 Ext.define('Lada.model.StaOrt', {
13 extend: 'Lada.model.Base',
14 fields: [
15 {name: "id"},
16 {name: "bezeichnung"},
17 {name: "beschreibung"},
18 {name: "unscharf"},
19 {name: "nutsCode"},
20 {name: "koordXExtern"},
21 {name: "koordYExtern"},
22 {name: "hoeheLand"},
23 {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
24 {name: "longitude", type: 'float'},
25 {name: "latitude", type: 'float'},
26 {name: "staatId"},
27 {name: "gemId"},
28 {name: "otyp"}
29 ],
30 idProperty: "id",
31 proxy: {
32 type: 'rest',
33 url: 'server/rest/sta_ort',
34 reader: {
35 type: 'json',
36 root: 'data'
37 }
38 }
39 });
40

http://lada.wald.intevation.org