view app/view/form/OrtInfo.js @ 1404:9712170c5150 release-2.5

Fix return value for missing value. Deserialising failed with an empty string here, which prevented creating a new Messung in the client.
author Tom Gottfried <tom@intevation.de>
date Mon, 20 Mar 2017 15:20:20 +0100
parents 5dfd5798cbcc
children
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.
 */

/**
 * Form used to display the data of an Ort record.
 */
Ext.define('Lada.view.form.OrtInfo', {
    extend: 'Ext.form.Panel',
    alias: 'widget.ortinfo',
    model: 'Lada.model.Ort',
    border: 0,
    flex: 1,
    margin: '0, 10, 0, 0',
    record: null,
    initComponent: function() {
        var i18n = Lada.getApplication().bundle;
        this.items = [{
            layout: 'vbox',
            flex: 1,
            border: 0,
            defaults: {
                xtype: 'displayfield',
                labelWidth: 125,
                submitValue: false
            },
            items: [{
                fieldLabel: i18n.getMsg('orte.ortId'),
                name: 'ortId'
            },
            {
                fieldLabel: i18n.getMsg('orte.kurztext'),
                name: 'kurztext'
            }, {
                fieldLabel: i18n.getMsg('orte.langtext'),
                name: 'langtext'
            }, {
                fieldLabel: i18n.getMsg('staat'),
                name: 'staat'
            }, {
                fieldLabel: i18n.getMsg('orte.verwaltungseinheit'),
                name: 'gemeinde'
            }, {
                fieldLabel: i18n.getMsg('orte.gemId'),
                name: 'gemId'
            },
           {
                fieldLabel: i18n.getMsg('orte.kda'),
                name: 'kdaId'
            }, {
                fieldLabel: i18n.getMsg('orte.koordx'),
                name: 'koordXExtern'
            }, {
                fieldLabel: i18n.getMsg('orte.koordy'),
                name: 'koordYExtern'
            }]
        }];
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org