view app/model/Status.js @ 576:0d4137e0fe36

Added a blank window to edit a Messung
author Dustin Demuth <dustin@intevation.de>
date Tue, 10 Mar 2015 15:26:47 +0100
parents d9593b520b3b
children 9b3adfb7b1ae
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU GPL (v>=3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out
 * the documentation coming with IMIS-Labordaten-Application for details.
 */

/**
 * Model class for Status
 */
Ext.define('Lada.model.Status', {
    extend: 'Ext.data.Model',

    fields: [{
        name: 'id'
    }, {
        name: 'messungsId'
    }, {
        name: 'status'
    }, {
        name: 'sdatum'
    }, {
        name: 'skommentar'
    }],

    idProperty: 'id',

    proxy: {
        type: 'rest',
        url: 'lada-server/status',
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

http://lada.wald.intevation.org