Mercurial > lada > lada-client
comparison app/model/Messung.js @ 103:3552b0ee4526
Added Messungenlist to the Proben eddit view.
author | Torsten Irländer <torsten@irlaender.de> |
---|---|
date | Mon, 17 Jun 2013 16:59:04 +0200 |
parents | |
children | 237a4efe715a |
comparison
equal
deleted
inserted
replaced
102:804864f6274c | 103:3552b0ee4526 |
---|---|
1 Ext.define('Lada.model.Messung', { | |
2 extend: 'Ext.data.Model', | |
3 fields: [ | |
4 {name: "id"}, | |
5 {name: "messungsId", mapping: "id.messungsId"}, | |
6 {name: "convertedId", convert: buildId}, | |
7 {name: "lprobeId"}, | |
8 {name: "mmtId"}, | |
9 {name: "nebenprobenNr"}, | |
10 {name: "messdauer"}, | |
11 {name: "messzeitpunkt"}, | |
12 {name: "fertig", type: "boolean"}, | |
13 {name: "letzteAenderung", type:"date"}, | |
14 {name: "geplant", type: "boolean"} | |
15 ], | |
16 idProperty: "convertedId", | |
17 proxy: { | |
18 type: 'rest', | |
19 appendId: true, //default | |
20 url: 'server/rest/messung', | |
21 reader: { | |
22 type: 'json', | |
23 root: 'data' | |
24 } | |
25 } | |
26 }); | |
27 | |
28 function buildId(v, record){ | |
29 return record.get('probeId') + record.get('messungsId'); | |
30 } |