annotate app/model/Probe.js @ 539:31a770c6a9a9

Merge
author Roland Geider <roland.geider@intevation.de>
date Wed, 17 Dec 2014 15:42:55 +0100
parents 850ccfe5f3c4
children
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',
187
ef7b8499c924 Added readonly attribute.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 156
diff changeset
15
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
16 fields: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
17 name: "id"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
18 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
19 name: "probeIdAlt"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
20 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
21 name: "hauptprobenNr"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
22 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
23 name: "test"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
24 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
25 name: "netzbetreiberId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
26 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
27 name: "mstId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
28 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
29 name: "datenbasisId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
30 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
31 name: "baId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
32 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
33 name: "probenartId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
34 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
35 name: "mediaDesk"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
36 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
37 name: "media"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
38 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
39 name: "umwId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
40 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
41 name: "probeentnahmeBeginn",
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
42 type: 'date',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
43 convert: Lada.lib.Helpers.ts2date,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
44 defaultValue: new Date()
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
45 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
46 name: "probeentnahmeEnde",
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
47 type: 'date',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
48 convert: Lada.lib.Helpers.ts2date,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
49 defaultValue: new Date()
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
50 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
51 name: "mittelungsdauer"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
52 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
53 name: "letzteAenderung",
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
54 type: 'date',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
55 convert: Lada.lib.Helpers.ts2date,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
56 defaultValue: new Date()
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
57 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
58 name: "erzeugerId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
59 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
60 name: "probeNehmerId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
61 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
62 name: "mpKat"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
63 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
64 name: "mplId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
65 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
66 name: "mprId"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
67 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
68 name: "solldatumBeginn",
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
69 type: 'date',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
70 convert: Lada.lib.Helpers.ts2date,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
71 defaultValue: new Date()
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
72 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
73 name: "solldatumEnde",
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
74 type: 'date',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
75 convert: Lada.lib.Helpers.ts2date,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
76 defaultValue: new Date()
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
77 }, {
187
ef7b8499c924 Added readonly attribute.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 156
diff changeset
78 // 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
79 // model)
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
80 name: "readonly"
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
81 }],
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
82
488
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
83 idProperty: "id",
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 488
diff changeset
84
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
85 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
86 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
87 appendId: true, //default
488
f7446ebfe5d0 Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
88 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
89 reader: {
77
c846a2e37289 Set default date in Proben to today.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
90 type: 'json',
c846a2e37289 Set default date in Proben to today.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 65
diff changeset
91 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
92 }
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
93 }
13
a8efc4b96888 Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
94 });

http://lada.wald.intevation.org