comparison app/model/MKommentar.js @ 227:d3f4a39bf89e

Set IdProperty and fix creating and updating mkommentar
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 17 Jul 2013 10:58:03 +0200
parents 8970cbad6cae
children 7b30c20ad1aa
comparison
equal deleted inserted replaced
226:2794341bfc8a 227:d3f4a39bf89e
1 Ext.define('Lada.model.MKommentar', { 1 Ext.define('Lada.model.MKommentar', {
2 extend: 'Ext.data.Model', 2 extend: 'Ext.data.Model',
3 fields: [ 3 fields: [
4 {name: "id"}, 4 {name: "id"},
5 {name: "kid"},
5 {name: "messungsId"}, 6 {name: "messungsId"},
6 {name: "probeId"}, 7 {name: "probeId"},
7 {name: "erzeuger"}, 8 {name: "erzeuger"},
8 {name: "kdatum", type: 'date', convert: ts2date, defaultValue: new Date()}, 9 {name: "kdatum", type: 'date', convert: ts2date, defaultValue: new Date()},
9 {name: "ktext"} 10 {name: "ktext"}
17 type: 'json', 18 type: 'json',
18 root: 'data' 19 root: 'data'
19 } 20 }
20 }, 21 },
21 getEidi: function() { 22 getEidi: function() {
22 var kid = this.get('id').kid; 23 var kid = this.get('kid');
23 var messId = this.get('messungsId'); 24 var messId = this.get('messungsId');
24 var probeId = this.get('probeId'); 25 var probeId = this.get('probeId');
25 return "/" + kid + "/" + messId + "/" + probeId; 26 return "/" + kid + "/" + messId + "/" + probeId;
26 } 27 }
27 }); 28 });

http://lada.wald.intevation.org