view app/model/Probe.js @ 58:26863a7af202

Added action attributes to the buttons in the toolbar of the kommentar list
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 29 May 2013 15:22:38 +0200
parents 2fbd53b944fc
children 9e2e09e819fd
line wrap: on
line source
Ext.define('Lada.model.Probe', {
    extend: 'Ext.data.Model',
    fields: [
        {name: "probeId"},
        {name: "baId"},
        {name: "datenbasisId"},
        {name: "erzeugerId"},
        {name: "hauptprobenNr"},
        {name: "letzteAenderung"},
        {name: "media"},
        {name: "mediaDesk"},
        {name: "mittelungsdauer"},
        {name: "mpKat"},
        {name: "mplId"},
        {name: "mprId"},
        {name: "mstId"},
        {name: "netzbetreiberId"},
        {name: "probeId"},
        {name: "probeNehmerId"},
        {name: "probeentnahmeBeginn", type: 'date', convert: ts2date},
        {name: "probeentnahmeEnde", type: 'date', convert: ts2date},
        {name: "probenartId"},
        {name: "solldatumBeginn", type: 'date', convert: ts2date},
        {name: "solldatumEnde", type: 'date', convert: ts2date},
        {name: "test"},
        {name: "umwId"}
    ],
    proxy: {
        type: 'rest',
        appendId: true, //default
        url: 'server/rest/proben',
        api: {
        },
        reader: {
            type: 'json'
        }
    }
});

function ts2date(v, record){
    // Converts a timestamp into a date object.
    return new Date(v);
}

http://lada.wald.intevation.org