view app/model/Messung.js @ 157:237a4efe715a

Enabled loading Messungen.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 03 Jul 2013 12:27:36 +0200
parents 3552b0ee4526
children 8e7f890dd6f4
line wrap: on
line source
Ext.define('Lada.model.Messung', {
    extend: 'Ext.data.Model',
        fields: [
        {name: "probeId"},
        {name: "mmtId"},
        {name: "nebenprobenNr"},
        {name: "messdauer"},
        {name: "messzeitpunkt"},
        {name: "fertig", type: "boolean"},
        {name: "letzteAenderung", type:"date"},
        {name: "geplant", type: "boolean"}
    ],
    idProperty: "convertedId",
    proxy: {
        type: 'rest',
        appendId: true, //default
        url: 'server/rest/messung',
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

function buildId(v, record){
    return record.get('probeId') + record.get('messungsId');
}

http://lada.wald.intevation.org