Mercurial > lada > lada-client
view app/model/Ortdetail.js @ 302:c7f0bf80761b
Use ts2date function from lib.Helpers. Remove old code
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 15:24:00 +0200 |
parents | 16ba7e2465fd |
children | 18e090d09023 |
line wrap: on
line source
Ext.define('Lada.model.Ortdetail', { extend: 'Ext.data.Model', requires: ['Lada.lib.Helpers'], fields: [ {name: "ortId"}, {name: "bezeichnung"}, {name: "beschreibung"}, {name: "unscharf"}, {name: "nutsCode"}, {name: "koordXExtern"}, {name: "koordYExtern"}, {name: "hoeheLand"}, {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, {name: "longitude", type: 'float'}, {name: "latitude", type: 'float'}, {name: "staatId"}, {name: "gemId"}, {name: "otyp"} ], idProperty: "ortId", proxy: { type: 'rest', appendId: true, //default url: 'server/rest/ortinfo', api: { }, reader: { type: 'json', root: 'data' } } });