comparison app/model/Ort.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 Ort 10 * Model class for Ort
11 */ 11 */
12 Ext.define('Lada.model.Ort', { 12 Ext.define('Lada.model.Ort', {
13 extend: 'Lada.model.Base', 13 extend: 'Lada.model.Base',
14 fields: [ 14
15 {name: "id", type: 'int'}, 15 fields: [{
16 {name: "ortId", type: 'int'}, 16 name: "id",
17 {name: "probeId"}, 17 type: 'int'
18 {name: "ortsTyp"}, 18 }, {
19 {name: "ortszusatztext"}, 19 name: "ortId",
20 {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()} 20 type: 'int'
21 ], 21 }, {
22 name: "probeId"
23 }, {
24 name: "ortsTyp"
25 }, {
26 name: "ortszusatztext"
27 }, {
28 name: "letzteAenderung",
29 type: 'date',
30 convert: Lada.lib.Helpers.ts2date,
31 defaultValue: new Date()
32 }],
33
22 idProperty: "id", 34 idProperty: "id",
35
23 proxy: { 36 proxy: {
24 type: 'rest', 37 type: 'rest',
25 url: 'server/rest/ort', 38 url: 'server/rest/ort',
26 reader: { 39 reader: {
27 type: 'json', 40 type: 'json',

http://lada.wald.intevation.org