view app/view/widget/Betriebsart.js @ 800:4b9b1d3ad9f1

Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
author Dustin Demuth <dustin@intevation.de>
date Thu, 21 May 2015 17:59:48 +0200
parents d2ee6858f452
children 6de96799746f
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 betriebsartStore = Ext.create('Ext.data.Store', {
    fields: ['betriebsartId', 'betriebsart'],
    storeId: 'betriebsartStore',
    data: [{
        'betriebsartId': '1',
        'betriebsart': 'Normal-/Routinebetrieb'
    }, {
        'betriebsartId': '2',
        'betriebsart': 'Störfall/Intensivbetrieb'
    }]
});

/**
 * Combobox for Betriebsart
 */
Ext.define('Lada.view.widget.Betriebsart', {
    extend: 'Lada.view.widget.base.ComboBox',
    alias: 'widget.betriebsart',
    store: 'betriebsartStore',
    queryMode: 'local',
    triggerAction: 'all',
    typeAhead: false,

    displayField: 'betriebsart',
    valueField: 'betriebsartId',

    initComponent: function() {
        var i18n = Lada.getApplication().bundle;
        this.emptyText = i18n.getMsg('emptytext.probenart');

        this.store = Ext.data.StoreManager.get('betriebsartStore')
        this.store.clearFilter();
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org