comparison app/model/Location.js @ 548:d47ee7439f44

Added new js files.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Mar 2015 12:43:52 +0100
parents
children f4eb53ba63fc
comparison
equal deleted inserted replaced
547:f172b35a3b92 548:d47ee7439f44
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.Location', {
13 extend: 'Ext.data.Model',
14
15 fields: [{
16 name: 'id'
17 }, {
18 name: 'bezeichnung'
19 }, {
20 name: 'beschreibung'
21 }, {
22 name: 'unscharf'
23 }, {
24 name: 'nutsCode'
25 }, {
26 name: 'koordXExtern'
27 }, {
28 name: 'koordYExtern'
29 }, {
30 name: 'hoeheLand'
31 }, {
32 name: 'letzteAenderung',
33 type: 'date',
34 convert: function(v) {
35 if (!v) {
36 return v;
37 }
38 return new Date(v);
39 },
40 defaultValue: new Date()
41 }, {
42 name: 'longitude',
43 type: 'float'
44 }, {
45 name: 'latitude',
46 type: 'float'
47 }, {
48 name: 'staatId'
49 }, {
50 name: 'verwaltungseinheitId'
51 }, {
52 name: 'otyp'
53 }],
54
55 idProperty: 'id',
56
57 proxy: {
58 type: 'rest',
59 url: 'lada-server/location',
60 reader: {
61 type: 'json',
62 root: 'data'
63 }
64 }
65 });

http://lada.wald.intevation.org