view app/model/Probe.js @ 29:1fdef170d5a5

Changed MLP to MPL. It seems that this one was a typo.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 16 May 2013 18:24:09 +0200
parents 4caf4c8c694a
children 2fbd53b944fc
line wrap: on
line source
Ext.define('Lada.model.Probe', {
    extend: 'Ext.data.Model',
    fields: [
        {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"}
    ]
});

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

http://lada.wald.intevation.org