comparison app/model/Staat.js @ 153:e9fb4814153a

Added files for Staat, Ort and Verwaltungseinheiten.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 02 Jul 2013 14:08:18 +0200
parents
children 5f373d9d55cd
comparison
equal deleted inserted replaced
152:30aae7295cd0 153:e9fb4814153a
1 Ext.define('Lada.model.Staat', {
2 extend: 'Ext.data.Model',
3 fields: [
4 {name: "staatId", type: 'int'},
5 {name: "staat"},
6 {name: "staatIso"},
7 {name: "staatKurz"}
8 ],
9 idProperty: "staatId",
10 proxy: {
11 type: 'rest',
12 appendId: true, //default
13 url: 'server/rest/staat',
14 api: {
15 },
16 reader: {
17 type: 'json',
18 root: 'data'
19 }
20 }
21 });
22
23 function ts2date(v, record){
24 // Converts a timestamp into a date object.
25 return new Date(v);
26 }

http://lada.wald.intevation.org