comparison app/model/Messwert.js @ 488:f7446ebfe5d0

Added and updated models.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:10:35 +0100
parents debfcc7713e3
children 850ccfe5f3c4
comparison
equal deleted inserted replaced
487:a05cbc6e63cb 488:f7446ebfe5d0
11 */ 11 */
12 Ext.define('Lada.model.Messwert', { 12 Ext.define('Lada.model.Messwert', {
13 extend: 'Lada.model.Base', 13 extend: 'Lada.model.Base',
14 fields: [ 14 fields: [
15 {name: "id"}, 15 {name: "id"},
16 {name: "messungsId", mapping:"id.messungsId"}, 16 {name: "messungsId"},
17 {name: "probeId", mapping:"id.probeId"}, 17 {name: "messgroesseId"},
18 {name: "messgroesseId", mapping:"id.messgroesseId"},
19 {name: "messwert", type:"float"}, 18 {name: "messwert", type:"float"},
20 {name: "messwertNwg"}, 19 {name: "messwertNwg"},
21 {name: "messfehler", type:"float"}, 20 {name: "messfehler", type:"float"},
22 {name: "nwgZuMesswert", type:"float"}, 21 {name: "nwgZuMesswert", type:"float"},
23 {name: "mehId"}, 22 {name: "mehId"},
25 {name: "letzteAenderung", type:"date"} 24 {name: "letzteAenderung", type:"date"}
26 ], 25 ],
27 idProperty: "id", 26 idProperty: "id",
28 proxy: { 27 proxy: {
29 type: 'rest', 28 type: 'rest',
30 appendId: true, //default
31 url: 'server/rest/messwert', 29 url: 'server/rest/messwert',
32 reader: { 30 reader: {
33 type: 'json', 31 type: 'json',
34 root: 'data' 32 root: 'data'
35 } 33 }
36 },
37 getEidi: function() {
38 var mid = this.get('messgroesseId');
39 var messId = this.get('messungsId');
40 var probeId = this.get('probeId');
41 return "/" + mid + "/" + messId + "/" + probeId;
42 } 34 }
43 }); 35 });

http://lada.wald.intevation.org