Mercurial > lada > lada-client
view app/model/Status.js @ 311:d80bb62b7fd4
Required Lada.lib.Helpers
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 16:22:42 +0200 |
parents | 59c1d9ad6555 |
children | 49a42c7f1d1f |
line wrap: on
line source
Ext.define('Lada.model.Status', { extend: 'Ext.data.Model', requires: ['Lada.lib.Helpers'], fields: [ {name: "sid"}, {name: "messungsId"}, {name: "probeId"}, {name: "erzeuger"}, {name: "status", defaultValue: 1}, {name: "sdatum", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, {name: "skommentar"} ], idProperty: "sid", proxy: { type: 'rest', appendId: true, //default url: 'server/rest/status', reader: { type: 'json', root: 'data' } }, getEidi: function() { var sid = this.get('sid'); var messId = this.get('messungsId'); var probeId = this.get('probeId'); return "/" + sid + "/" + messId + "/" + probeId; } });