torsten@472: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
torsten@472:  * Software engineering by Intevation GmbH
torsten@472:  *
torsten@472:  * This file is Free Software under the GNU GPL (v>=3)
torsten@472:  * and comes with ABSOLUTELY NO WARRANTY! Check out
raimund@497:  * the documentation coming with IMIS-Labordaten-Application for details.
torsten@472:  */
torsten@472: 
torsten@343: /*
torsten@343:  * Formular to create a Messung
torsten@343:  */
torsten@108: Ext.define('Lada.view.messungen.CreateForm', {
torsten@108:     extend: 'Lada.view.widgets.LadaForm',
torsten@176:     requires: [
raimund@498:         'Lada.view.widgets.Datetime',
torsten@179:         'Lada.view.widgets.Messmethode',
torsten@231:         'Lada.view.widgets.Testdatensatz'
torsten@176:     ],
raimund@491: 
raimund@491:     model: 'Lada.model.Messung',
raimund@491: 
torsten@108:     initComponent: function() {
raimund@491:         this.items = [{
raimund@491:             xtype: 'textfield',
raimund@491:             name: 'nebenprobenNr',
raimund@491:             maxLength: 10,
raimund@491:             fieldLabel: 'NPR'
raimund@491:         }, {
raimund@491:             xtype: 'messmethode',
raimund@491:             name: 'mmtId',
raimund@491:             fieldLabel: 'MMT'
raimund@491:         }, {
raimund@491:             xtype: 'datetime',
raimund@491:             name: 'messzeitpunkt',
raimund@491:             fieldLabel: 'Messzeitpunkt'
raimund@491:         }, {
raimund@491:             xtype: 'numberfield',
raimund@491:             allowDecimals: false,
raimund@491:             minValue: 0,
raimund@491:             name: 'messdauer',
raimund@491:             fieldLabel: 'Messdauer'
raimund@491:         }, {
raimund@491:             xtype: 'testdatensatz',
raimund@491:             name: 'fertig',
raimund@491:             fieldLabel: 'Fertig'
raimund@491:         }, {
raimund@491:             xtype: 'testdatensatz',
raimund@491:             name: 'geplant',
raimund@491:             fieldLabel: 'Geplant'
raimund@491:         }];
raimund@491:         this.callParent(arguments);
torsten@108:     }
torsten@108: });