comparison 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
comparison
equal deleted inserted replaced
487:a05cbc6e63cb 488:f7446ebfe5d0
7 */ 7 */
8 8
9 /** 9 /**
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: [ 15 fields: [
16 {name: "probeId"}, 16 {name: "id"},
17 {name: "probeIdAlt"},
18 {name: "hauptprobenNr"},
19 {name: "test"},
20 {name: "netzbetreiberId"},
21 {name: "mstId"},
22 {name: "datenbasisId"},
17 {name: "baId"}, 23 {name: "baId"},
18 {name: "datenbasisId"}, 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()},
19 {name: "erzeugerId"}, 32 {name: "erzeugerId"},
20 {name: "hauptprobenNr"}, 33 {name: "probeNehmerId"},
21 {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
22 {name: "media"},
23 {name: "mediaDesk"},
24 {name: "mittelungsdauer"},
25 {name: "mpKat"}, 34 {name: "mpKat"},
26 {name: "mplId"}, 35 {name: "mplId"},
27 {name: "mprId"}, 36 {name: "mprId"},
28 {name: "mstId"},
29 {name: "netzbetreiberId"},
30 {name: "probeNehmerId"},
31 {name: "probeentnahmeBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
32 {name: "probeentnahmeEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
33 {name: "probenartId"},
34 {name: "solldatumBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, 37 {name: "solldatumBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
35 {name: "solldatumEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, 38 {name: "solldatumEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
36 {name: "test"},
37 {name: "umwId"},
38 39
39 // Readonly-Flag (sent additionaly by the server, not part of the 40 // Readonly-Flag (sent additionaly by the server, not part of the
40 // model) 41 // model)
41 {name: "readonly"} 42 {name: "readonly"}
42 ], 43 ],
43 idProperty: "probeId", 44 idProperty: "id",
44 proxy: { 45 proxy: {
45 type: 'rest', 46 type: 'rest',
46 appendId: true, //default 47 appendId: true, //default
47 url: 'server/rest/proben', 48 url: 'server/rest/probe',
48 reader: { 49 reader: {
49 type: 'json', 50 type: 'json',
50 root: 'data' 51 root: 'data'
51 } 52 }
52 } 53 }

http://lada.wald.intevation.org