comparison app/model/Ort.js @ 149:26ac4c99f8c4

Added Orte.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 01 Jul 2013 17:05:03 +0200
parents 7ad96e3d70c1
children 16ba7e2465fd
comparison
equal deleted inserted replaced
148:ed7fb4fa32dc 149:26ac4c99f8c4
1 Ext.define('Lada.model.Ort', { 1 Ext.define('Lada.model.Ort', {
2 extend: 'Ext.data.Model', 2 extend: 'Ext.data.Model',
3 fields: [ 3 fields: [
4 {name: "ort"}, 4 // Field from the l_ort table
5 {name: "ortId", mapping:"ort.ortId", type: 'int'}, 5 {name: "portId", type: 'int'},
6 {name: "otyp", mapping:"ort.otyp"}, 6 {name: "ortId", type: 'int'},
7 {name: "bezeichnung", mapping:"ort.bezeichnung"}, 7 {name: "probeId"},
8 {name: "beschreibung", mapping:"ort.beschreibung"}, 8 {name: "ortsTyp"},
9 {name: "gemId", mapping:"ort.gemId"}, 9 {name: "ortzusatztext"},
10 {name: "staatId", mapping:"ort.staatId"}, 10 {name: "letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()}
11 {name: "unscharf", mapping:"ort.unscharf"},
12 {name: "nutsCode", mapping:"ort.nutsCode"},
13 {name: "koordXExtern", mapping:"ort.koordXExtern"},
14 {name: "koordYExtern", mapping:"ort.koordYExtern"},
15 {name: "hoeheLand", mapping:"ort.hoeheLand", type: 'float'},
16 {name: "letzteAenderung", mapping:"ort.letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()},
17 {name: "latitude", mapping:"ort.latitude", type: 'float'},
18 {name: "longitude", mapping:"ort.longitude", type: 'float'}
19 ], 11 ],
20 idProperty: "ortId", 12 idProperty: "portId",
21 proxy: { 13 proxy: {
22 type: 'rest', 14 type: 'rest',
23 appendId: true, //default 15 appendId: true, //default
24 url: 'server/rest/ort', 16 url: 'server/rest/ort',
25 api: { 17 api: {

http://lada.wald.intevation.org