view app/view/widget/Status.js @ 1174:6d06ae7c553c schema-update

Updated references for new Database model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 08 Jul 2016 15:36:17 +0200
parents 85acec6c6e6a
children 38599f18c863
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.
 */

var statuswerteStore = Ext.create('Ext.data.Store', {
    fields: ['id', 'wert'],
    data: [{
        'id': 1,
        'wert': 'plausibel'
    }, {
        'id': 2,
        'wert': 'nicht repräsentativ'
    }, {
        'id': 3,
        'wert': 'nicht plausibel'
    }, {
        'id': 4,
        'wert': 'Rückfrage'
    }, {
        'id': 7,
        'wert': 'nicht lieferbar'
    }, {
        'id': 8,
        'wert': 'zurücksetzen'
    }]
});

/**
 * Combobox for Statuswert
 */
Ext.define('Lada.view.widget.Status', {
    extend: 'Lada.view.widget.base.ComboBox',
    alias: 'widget.statuswert',
    store: statuswerteStore,
    displayField: 'wert',
    valueField: 'id',
    emptyText: 'Wählen Sie einen Status',
    // Enable filtering of comboboxes
    autoSelect: false,
    queryMode: 'local',
    triggerAction: 'all',
    typeAhead: false,
    minChars: 0,

    initComponent: function() {
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org