annotate app/model/MKommentar.js @ 426:c95c9831675c

Set flex to true for the probenlist. Remove minheigt and maxheigt from panel as the size is now set automatically (flex)
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 08 Nov 2013 12:32:59 +0100
parents dec076f1c3ae
children debfcc7713e3
rev   line source
316
7de16725d251 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
1 /**
7de16725d251 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
2 * Model class for Kommentare on Messungen
7de16725d251 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
3 */
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 Ext.define('Lada.model.MKommentar', {
329
dec076f1c3ae Inherit form model.base. Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 316
diff changeset
5 extend: 'Lada.model.Base',
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 fields: [
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 161
diff changeset
7 {name: "id"},
227
d3f4a39bf89e Set IdProperty and fix creating and updating mkommentar
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 203
diff changeset
8 {name: "kid"},
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 {name: "messungsId"},
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 {name: "probeId"},
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 {name: "erzeuger"},
301
7b30c20ad1aa Use ts2date function from lib.Helpers. Remove old code
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 227
diff changeset
12 {name: "kdatum", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 {name: "ktext"}
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 ],
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 161
diff changeset
15 idProperty: "id",
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 proxy: {
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 type: 'rest',
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 appendId: true, //default
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 url: 'server/rest/messkommentare',
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 reader: {
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 type: 'json',
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 root: 'data'
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 }
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 },
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 getEidi: function() {
227
d3f4a39bf89e Set IdProperty and fix creating and updating mkommentar
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 203
diff changeset
26 var kid = this.get('kid');
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 var messId = this.get('messungsId');
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 var probeId = this.get('probeId');
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 return "/" + kid + "/" + messId + "/" + probeId;
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 }
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 });

http://lada.wald.intevation.org