view app/model/Ortdetail.js @ 325:4c4f03c87d49

Inherit from model.Base
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 08:47:01 +0200
parents 18e090d09023
children 9b9e98dacb7c
line wrap: on
line source
/**
 * Model class for Ortdetail
 */
Ext.define('Lada.model.Ortdetail', {
    extend: 'Ext.data.Model',
    requires: ['Lada.lib.Helpers'],
    fields: [
        {name: "ortId"},
        {name: "bezeichnung"},
        {name: "beschreibung"},
        {name: "unscharf"},
        {name: "nutsCode"},
        {name: "koordXExtern"},
        {name: "koordYExtern"},
        {name: "hoeheLand"},
        {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()},
        {name: "longitude", type: 'float'},
        {name: "latitude", type: 'float'},
        {name: "staatId"},
        {name: "gemId"},
        {name: "otyp"}
    ],
    idProperty: "ortId",
    proxy: {
        type: 'rest',
        appendId: true, //default
        url: 'server/rest/ortinfo',
        api: {
        },
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

http://lada.wald.intevation.org