Mercurial > lada > lada-client
comparison app/model/Zusatzwert.js @ 137:a7eea094d3d6
Removed id property from Zusatzwerte model. Do not set Probenzusatz when
saving the Zusatzwert.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 26 Jun 2013 10:23:55 +0200 |
parents | 4dc84682110d |
children | 4287f29b5b81 |
comparison
equal
deleted
inserted
replaced
136:4dc84682110d | 137:a7eea094d3d6 |
---|---|
1 Ext.define('Lada.model.Zusatzwert', { | 1 Ext.define('Lada.model.Zusatzwert', { |
2 extend: 'Ext.data.Model', | 2 extend: 'Ext.data.Model', |
3 fields: [ | 3 fields: [ |
4 {name: "id"}, | |
5 {name: "pzsId", mapping: "id.pzsId"}, | 4 {name: "pzsId", mapping: "id.pzsId"}, |
6 {name: "probeId", mapping: "id.probeId"}, | 5 {name: "probeId", mapping: "id.probeId"}, |
7 {name: "nwgZuMesswert", type: 'float'}, | 6 {name: "nwgZuMesswert", type: 'float'}, |
8 {name: "messwertPzs", type: 'float'}, | 7 {name: "messwertPzs", type: 'float'}, |
9 {name: "messfehler", type: 'float'}, | 8 {name: "messfehler", type: 'float'}, |
10 {name: "letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()} | 9 {name: "letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()} |
11 ], | 10 ], |
12 idProperty: "id", | 11 idProperty: "pzsId", |
13 proxy: { | 12 proxy: { |
14 type: 'rest', | 13 type: 'rest', |
15 appendId: true, //default | 14 appendId: true, //default |
16 url: 'server/rest/zusatzwert', | 15 url: 'server/rest/zusatzwert', |
17 reader: { | 16 reader: { |