comparison app/model/Probe.js @ 491:850ccfe5f3c4

Code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 23:23:32 +0100
parents f7446ebfe5d0
children
comparison
equal deleted inserted replaced
490:446e99cfd425 491:850ccfe5f3c4
10 * A Probe. 10 * A Probe.
11 * This class represents and defines the model of a "Probe" 11 * This class represents and defines the model of a "Probe"
12 **/ 12 **/
13 Ext.define('Lada.model.Probe', { 13 Ext.define('Lada.model.Probe', {
14 extend: 'Lada.model.Base', 14 extend: 'Lada.model.Base',
15 fields: [
16 {name: "id"},
17 {name: "probeIdAlt"},
18 {name: "hauptprobenNr"},
19 {name: "test"},
20 {name: "netzbetreiberId"},
21 {name: "mstId"},
22 {name: "datenbasisId"},
23 {name: "baId"},
24 {name: "probenartId"},
25 {name: "mediaDesk"},
26 {name: "media"},
27 {name: "umwId"},
28 {name: "probeentnahmeBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
29 {name: "probeentnahmeEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
30 {name: "mittelungsdauer"},
31 {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
32 {name: "erzeugerId"},
33 {name: "probeNehmerId"},
34 {name: "mpKat"},
35 {name: "mplId"},
36 {name: "mprId"},
37 {name: "solldatumBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
38 {name: "solldatumEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
39 15
16 fields: [{
17 name: "id"
18 }, {
19 name: "probeIdAlt"
20 }, {
21 name: "hauptprobenNr"
22 }, {
23 name: "test"
24 }, {
25 name: "netzbetreiberId"
26 }, {
27 name: "mstId"
28 }, {
29 name: "datenbasisId"
30 }, {
31 name: "baId"
32 }, {
33 name: "probenartId"
34 }, {
35 name: "mediaDesk"
36 }, {
37 name: "media"
38 }, {
39 name: "umwId"
40 }, {
41 name: "probeentnahmeBeginn",
42 type: 'date',
43 convert: Lada.lib.Helpers.ts2date,
44 defaultValue: new Date()
45 }, {
46 name: "probeentnahmeEnde",
47 type: 'date',
48 convert: Lada.lib.Helpers.ts2date,
49 defaultValue: new Date()
50 }, {
51 name: "mittelungsdauer"
52 }, {
53 name: "letzteAenderung",
54 type: 'date',
55 convert: Lada.lib.Helpers.ts2date,
56 defaultValue: new Date()
57 }, {
58 name: "erzeugerId"
59 }, {
60 name: "probeNehmerId"
61 }, {
62 name: "mpKat"
63 }, {
64 name: "mplId"
65 }, {
66 name: "mprId"
67 }, {
68 name: "solldatumBeginn",
69 type: 'date',
70 convert: Lada.lib.Helpers.ts2date,
71 defaultValue: new Date()
72 }, {
73 name: "solldatumEnde",
74 type: 'date',
75 convert: Lada.lib.Helpers.ts2date,
76 defaultValue: new Date()
77 }, {
40 // Readonly-Flag (sent additionaly by the server, not part of the 78 // Readonly-Flag (sent additionaly by the server, not part of the
41 // model) 79 // model)
42 {name: "readonly"} 80 name: "readonly"
43 ], 81 }],
82
44 idProperty: "id", 83 idProperty: "id",
84
45 proxy: { 85 proxy: {
46 type: 'rest', 86 type: 'rest',
47 appendId: true, //default 87 appendId: true, //default
48 url: 'server/rest/probe', 88 url: 'server/rest/probe',
49 reader: { 89 reader: {

http://lada.wald.intevation.org