annotate app/model/MKommentar.js @ 476:584003637a6b

Texte zwischen README und INSTALL verschoben
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 20 Jan 2014 15:16:14 +0100
parents debfcc7713e3
children
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 329
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 329
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 329
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 329
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 329
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 329
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 329
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 329
diff changeset
8
316
7de16725d251 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
9 /**
7de16725d251 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
10 * Model class for Kommentare on Messungen
7de16725d251 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 301
diff changeset
11 */
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.model.MKommentar', {
329
dec076f1c3ae Inherit form model.base. Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 316
diff changeset
13 extend: 'Lada.model.Base',
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 fields: [
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 161
diff changeset
15 {name: "id"},
227
d3f4a39bf89e Set IdProperty and fix creating and updating mkommentar
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 203
diff changeset
16 {name: "kid"},
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 {name: "messungsId"},
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 {name: "probeId"},
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 {name: "erzeuger"},
301
7b30c20ad1aa Use ts2date function from lib.Helpers. Remove old code
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 227
diff changeset
20 {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
21 {name: "ktext"}
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 ],
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 161
diff changeset
23 idProperty: "id",
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 proxy: {
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25 type: 'rest',
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 appendId: true, //default
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 url: 'server/rest/messkommentare',
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 reader: {
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 type: 'json',
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 root: 'data'
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 }
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 },
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 getEidi: function() {
227
d3f4a39bf89e Set IdProperty and fix creating and updating mkommentar
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 203
diff changeset
34 var kid = this.get('kid');
161
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 var messId = this.get('messungsId');
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 var probeId = this.get('probeId');
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 return "/" + kid + "/" + messId + "/" + probeId;
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
38 }
0b635b836903 Added model and store for Messungskommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
39 });

http://lada.wald.intevation.org