view app/view/grid/MessprogrammeList.js @ 1004:9ac03f461ab4 stammdatengrids

Introduced Orte into Stammdatengrids, Added Ortszuordnung. THIS COMMIT IS WORK IN PROGRESS, Proben will NOT work after this commit. Orte can not be edited.
author Dustin Demuth <dustin@intevation.de>
date Wed, 20 Jan 2016 12:32:42 +0100
parents 56470a075e6e
children 1df6b6210b42
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.
 */

/**
 * Grid to list the result of the Filter
 */
Ext.define('Lada.view.grid.MessprogrammeList', {
    extend: 'Lada.view.widget.DynamicGrid',
    alias: 'widget.messprogrammelistgrid',

    requires: 'Lada.view.window.DeleteProbe',

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

        this.dockedItems = [{
            xtype: 'toolbar',
            dock: 'top',
            items: [{
                xtype: 'tbtext',
                id: 'tbtitle',
                text: i18n.getMsg('messprogramme.gridTitle')
            },
            '->',
            {
                text: i18n.getMsg('messprogramme.button.create'),
                icon: 'resources/img/list-add.png',
                action: 'addMessprogramm'
            }, {
                text: i18n.getMsg('messprogramme.button.generate'),
                icon: 'resources/img/view-time-schedule-insert.png',
                action: 'genProbenFromMessprogramm',
                disabled: true // disabled on startup, will be enabled by controller if necessary
            }]
        }];
        this.columns = [];
        this.callParent(arguments);
    }
});


http://lada.wald.intevation.org