annotate app/model/Probe.js @ 488:f7446ebfe5d0

Added and updated models.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:10:35 +0100
parents debfcc7713e3
children 850ccfe5f3c4
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 438
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: 438
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 438
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 438
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: 438
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: 438
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: 438
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 438
diff changeset
8
279
d18465f7b66a Added documentation (jsduck-tests)
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 187
diff changeset
9 /**
d18465f7b66a Added documentation (jsduck-tests)
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 187
diff changeset
10 * A Probe.
d18465f7b66a Added documentation (jsduck-tests)
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 187
diff changeset
11 * This class represents and defines the model of a "Probe"
488
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
12 **/
13
a8efc4b96888 Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 Ext.define('Lada.model.Probe', {
325
4c4f03c87d49 Inherit from model.Base
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 304
diff changeset
14 extend: 'Lada.model.Base',
21
4caf4c8c694a Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
15 fields: [
488
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
16 {name: "id"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
17 {name: "probeIdAlt"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
18 {name: "hauptprobenNr"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
19 {name: "test"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
20 {name: "netzbetreiberId"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
21 {name: "mstId"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
22 {name: "datenbasisId"},
21
4caf4c8c694a Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
23 {name: "baId"},
488
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
24 {name: "probenartId"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
25 {name: "mediaDesk"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
26 {name: "media"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
27 {name: "umwId"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
28 {name: "probeentnahmeBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
29 {name: "probeentnahmeEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
30 {name: "mittelungsdauer"},
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
31 {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
21
4caf4c8c694a Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
32 {name: "erzeugerId"},
488
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
33 {name: "probeNehmerId"},
21
4caf4c8c694a Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
34 {name: "mpKat"},
4caf4c8c694a Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
35 {name: "mplId"},
4caf4c8c694a Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 13
diff changeset
36 {name: "mprId"},
304
8475a625a773 Use ts2date function from lib.Helpers. Remove old code
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 279
diff changeset
37 {name: "solldatumBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
8475a625a773 Use ts2date function from lib.Helpers. Remove old code
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 279
diff changeset
38 {name: "solldatumEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
187
ef7b8499c924 Added readonly attribute.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 156
diff changeset
39
ef7b8499c924 Added readonly attribute.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 156
diff changeset
40 // Readonly-Flag (sent additionaly by the server, not part of the
ef7b8499c924 Added readonly attribute.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 156
diff changeset
41 // model)
ef7b8499c924 Added readonly attribute.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 156
diff changeset
42 {name: "readonly"}
50
2fbd53b944fc Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 21
diff changeset
43 ],
488
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
44 idProperty: "id",
50
2fbd53b944fc Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 21
diff changeset
45 proxy: {
2fbd53b944fc Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 21
diff changeset
46 type: 'rest',
2fbd53b944fc Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 21
diff changeset
47 appendId: true, //default
488
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
48 url: 'server/rest/probe',
50
2fbd53b944fc Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 21
diff changeset
49 reader: {
77
c846a2e37289 Set default date in Proben to today.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
50 type: 'json',
c846a2e37289 Set default date in Proben to today.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
51 root: 'data'
50
2fbd53b944fc Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 21
diff changeset
52 }
2fbd53b944fc Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 21
diff changeset
53 }
13
a8efc4b96888 Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
54 });

http://lada.wald.intevation.org