Mercurial > lada > lada-client
view app/model/Ort.js @ 152:30aae7295cd0
Return korrekt Messpunkt
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 02 Jul 2013 10:42:51 +0200 |
parents | 26ac4c99f8c4 |
children | 16ba7e2465fd |
line wrap: on
line source
Ext.define('Lada.model.Ort', { extend: 'Ext.data.Model', fields: [ // 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: "portId", proxy: { type: 'rest', appendId: true, //default url: 'server/rest/ort', api: { }, reader: { type: 'json', root: 'data' } } }); function ts2date(v, record){ // Converts a timestamp into a date object. return new Date(v); }