comparison app/model/Messung.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
9 /** 9 /**
10 * Model class for Messungen 10 * Model class for Messungen
11 */ 11 */
12 Ext.define('Lada.model.Messung', { 12 Ext.define('Lada.model.Messung', {
13 extend: 'Lada.model.Base', 13 extend: 'Lada.model.Base',
14 fields: [ 14
15 {name: "id"}, 15 fields: [{
16 {name: "messungsId"}, 16 name: "id"
17 {name: "probeId"}, 17 }, {
18 {name: "mmtId"}, 18 name: "messungsId"
19 {name: "nebenprobenNr"}, 19 }, {
20 {name: "messdauer"}, 20 name: "probeId"
21 {name: "messzeitpunkt", convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, 21 }, {
22 {name: "fertig", type: "boolean"}, 22 name: "mmtId"
23 {name: "letzteAenderung", type:"date"}, 23 }, {
24 {name: "geplant", type: "boolean"} 24 name: "nebenprobenNr"
25 ], 25 }, {
26 name: "messdauer"
27 }, {
28 name: "messzeitpunkt",
29 convert: Lada.lib.Helpers.ts2date,
30 defaultValue: new Date()
31 }, {
32 name: "fertig",
33 type: "boolean"
34 }, {
35 name: "letzteAenderung",
36 type:"date"
37 }, {
38 name: "geplant",
39 type: "boolean"
40 }],
41
26 idProperty: "id", 42 idProperty: "id",
43
27 proxy: { 44 proxy: {
28 type: 'rest', 45 type: 'rest',
29 url: 'server/rest/messung', 46 url: 'server/rest/messung',
30 reader: { 47 reader: {
31 type: 'json', 48 type: 'json',

http://lada.wald.intevation.org