Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/model/Ort.js Mon Jul 01 14:20:08 2013 +0200 +++ b/app/model/Ort.js Mon Jul 01 17:05:03 2013 +0200 @@ -1,23 +1,15 @@ Ext.define('Lada.model.Ort', { extend: 'Ext.data.Model', fields: [ - {name: "ort"}, - {name: "ortId", mapping:"ort.ortId", type: 'int'}, - {name: "otyp", mapping:"ort.otyp"}, - {name: "bezeichnung", mapping:"ort.bezeichnung"}, - {name: "beschreibung", mapping:"ort.beschreibung"}, - {name: "gemId", mapping:"ort.gemId"}, - {name: "staatId", mapping:"ort.staatId"}, - {name: "unscharf", mapping:"ort.unscharf"}, - {name: "nutsCode", mapping:"ort.nutsCode"}, - {name: "koordXExtern", mapping:"ort.koordXExtern"}, - {name: "koordYExtern", mapping:"ort.koordYExtern"}, - {name: "hoeheLand", mapping:"ort.hoeheLand", type: 'float'}, - {name: "letzteAenderung", mapping:"ort.letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()}, - {name: "latitude", mapping:"ort.latitude", type: 'float'}, - {name: "longitude", mapping:"ort.longitude", type: 'float'} + // Field from the l_ort table + {name: "portId", type: 'int'}, + {name: "ortId", type: 'int'}, + {name: "probeId"}, + {name: "ortsTyp"}, + {name: "ortzusatztext"}, + {name: "letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()} ], - idProperty: "ortId", + idProperty: "portId", proxy: { type: 'rest', appendId: true, //default