Mercurial > lada > lada-client
view app/model/Probe.js @ 91:95b08b96f5c9
Added new widget for the netzbetreiber.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 11 Jun 2013 15:04:18 +0200 |
parents | c846a2e37289 |
children | 0a104617a700 |
line wrap: on
line source
Ext.define('Lada.model.Probe', { extend: 'Ext.data.Model', fields: [ {name: "probeId"}, {name: "baId"}, {name: "datenbasisId"}, {name: "erzeugerId"}, {name: "hauptprobenNr"}, {name: "letzteAenderung"}, {name: "media"}, {name: "mediaDesk"}, {name: "mittelungsdauer"}, {name: "mpKat"}, {name: "mplId"}, {name: "mprId"}, {name: "mstId"}, {name: "netzbetreiberId"}, {name: "probeId"}, {name: "probeNehmerId"}, {name: "probeentnahmeBeginn", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "probeentnahmeEnde", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "probenartId"}, {name: "solldatumBeginn", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "solldatumEnde", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "test"}, {name: "umwId"} ], idProperty: "probeId", proxy: { type: 'rest', appendId: true, //default url: 'server/rest/proben', api: { }, reader: { type: 'json', root: 'data' } } }); function ts2date(v, record){ // Converts a timestamp into a date object. return new Date(v); }