comparison app/model/Ortdetail.js @ 153:e9fb4814153a

Added files for Staat, Ort and Verwaltungseinheiten.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 02 Jul 2013 14:08:18 +0200
parents
children 16ba7e2465fd
comparison
equal deleted inserted replaced
152:30aae7295cd0 153:e9fb4814153a
1 Ext.define('Lada.model.Ortdetail', {
2 extend: 'Ext.data.Model',
3 fields: [
4 {name: "ortId"},
5 {name: "bezeichnung"},
6 {name: "beschreibung"},
7 {name: "usnscharf"},
8 {name: "nutsCode"},
9 {name: "koordXExtern"},
10 {name: "koordYExtern"},
11 {name: "hoeheLand"},
12 {name: "letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()},
13 {name: "longitude", type: 'float'},
14 {name: "latitude", type: 'float'},
15 {name: "staatId"},
16 {name: "gemId"},
17 {name: "oTyp"}
18 ],
19 idProperty: "ortId",
20 proxy: {
21 type: 'rest',
22 appendId: true, //default
23 url: 'server/rest/ortinfo',
24 api: {
25 },
26 reader: {
27 type: 'json',
28 root: 'data'
29 }
30 }
31 });
32
33 function ts2date(v, record){
34 // Converts a timestamp into a date object.
35 return new Date(v);
36 }
37

http://lada.wald.intevation.org