Mercurial > lada > lada-client
view app/model/Zusatzwert.js @ 112:882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 19 Jun 2013 15:55:34 +0200 |
parents | b91d5376db19 |
children | 189a93e31be9 |
line wrap: on
line source
Ext.define('Lada.model.Zusatzwert', { extend: 'Ext.data.Model', fields: [ {name: "id"}, {name: "convertedId", convert:buildId}, {name: "probeId"}, {name: "messwertNwg"}, {name: "messwertPzs"}, {name: "messfehler"}, {name: "mehId"}, {name: "letzteAenderung"}, {name: "sprobenZusatz"}, {name: "pzsId"}, {name: "beschreibung"}, {name: "zusatzwert"}, {name: "eudfKeyword"} ], idProperty: "convertedId", proxy: { type: 'rest', appendId: true, //default url: 'server/rest/zusatzwert', reader: { type: 'json', root: 'data' } } }); function buildId(v, record){ return record.get('probeId') + record.get('pzsId'); }