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 edit a Messung torsten@343: */ torsten@231: Ext.define('Lada.view.messungen.EditForm', { torsten@231: extend: 'Lada.view.widgets.LadaForm', raimund@491: torsten@231: requires: [ torsten@231: 'Lada.view.widgets.Messmethode', torsten@231: 'Lada.view.widgets.Testdatensatz', torsten@231: 'Lada.view.mkommentare.List', torsten@231: 'Lada.view.status.List', torsten@231: 'Lada.view.messwerte.List' torsten@231: ], raimund@491: raimund@491: model: 'Lada.model.Messung', raimund@508: minWidth: 650, raimund@491: torsten@231: initComponent: function() { raimund@491: this.items = [{ raimund@508: xtype: 'fieldset', raimund@508: title: 'Allgemein', raimund@508: items: [{ raimund@508: layout: { raimund@508: type: 'table', raimund@508: columns: 2 raimund@508: }, raimund@508: border: 0, raimund@508: items: [{ raimund@508: xtype: 'textfield', raimund@508: name: 'nebenprobenNr', raimund@508: maxLength: 10, raimund@508: margin: '0, 10, 5, 0', raimund@508: fieldLabel: 'Nebenprobennr.' raimund@508: }, { raimund@508: xtype: 'messmethode', raimund@508: name: 'mmtId', raimund@508: margin: '0, 10, 5, 0', raimund@508: fieldLabel: 'Messmethode' raimund@508: }, { raimund@508: xtype: 'datetime', raimund@508: name: 'messzeitpunkt', raimund@508: margin: '0, 10, 5, 0', raimund@508: fieldLabel: 'Messzeitpunkt' raimund@508: }, { raimund@508: xtype: 'numberfield', raimund@508: allowDecimals: false, raimund@508: minValue: 0, raimund@508: name: 'messdauer', raimund@508: margin: '0, 10, 5, 0', raimund@508: fieldLabel: 'Messdauer' raimund@508: }, { raimund@508: xtype: 'testdatensatz', raimund@508: name: 'fertig', raimund@508: margin: '0, 10, 5, 0', raimund@508: fieldLabel: 'Fertig' raimund@508: }, { raimund@508: xtype: 'testdatensatz', raimund@508: name: 'geplant', raimund@508: margin: '0, 10, 5, 0', raimund@508: fieldLabel: 'Geplant' raimund@508: }] raimund@508: }] raimund@491: }, { torsten@231: // Messwerte raimund@491: xtype: 'fieldset', raimund@491: title: 'Messwerte', raimund@491: collapsible: true, raimund@491: collapsed: false, raimund@491: padding: '10 10', raimund@491: items: [{ raimund@491: xtype: 'messwertelist', raimund@491: parentId: this.model.get('messungsId'), raimund@491: probeId: this.model.get('probeId') raimund@491: }] raimund@491: }, { torsten@231: // Status raimund@491: xtype: 'fieldset', raimund@491: title: 'Messungsstatus', raimund@491: collapsible: true, raimund@491: collapsed: false, raimund@491: padding: '10 10', raimund@491: items: [{ raimund@491: xtype: 'statuslist', raimund@491: parentId: this.model.get('messungsId'), raimund@491: probeId: this.model.get('probeId') raimund@491: }] raimund@491: }, { torsten@231: // Messungskommentare raimund@491: xtype: 'fieldset', raimund@491: title: 'Messungskommentare', raimund@491: collapsible: true, raimund@491: collapsed: false, raimund@491: padding: '10 10', raimund@491: items: [{ raimund@491: xtype: 'mkommentarelist', raimund@491: parentId: this.model.get('messungsId'), raimund@491: probeId: this.model.get('probeId') raimund@491: }] raimund@491: }]; raimund@491: this.callParent(arguments); torsten@231: } torsten@231: });