comparison app/view/messungen/CreateForm.js @ 491:850ccfe5f3c4

Code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 23:23:32 +0100
parents debfcc7713e3
children 7c0653e8d9f7
comparison
equal deleted inserted replaced
490:446e99cfd425 491:850ccfe5f3c4
9 /* 9 /*
10 * Formular to create a Messung 10 * Formular to create a Messung
11 */ 11 */
12 Ext.define('Lada.view.messungen.CreateForm', { 12 Ext.define('Lada.view.messungen.CreateForm', {
13 extend: 'Lada.view.widgets.LadaForm', 13 extend: 'Lada.view.widgets.LadaForm',
14 model: 'Lada.model.Messung',
15 requires: [ 14 requires: [
16 'Lada.view.widgets.Messmethode', 15 'Lada.view.widgets.Messmethode',
17 'Lada.view.widgets.Testdatensatz' 16 'Lada.view.widgets.Testdatensatz'
18 ], 17 ],
18
19 model: 'Lada.model.Messung',
20
19 initComponent: function() { 21 initComponent: function() {
20 this.items = [ 22 this.items = [{
21 { 23 xtype: 'textfield',
22 xtype: 'textfield', 24 name: 'nebenprobenNr',
23 name: 'nebenprobenNr', 25 maxLength: 10,
24 maxLength: 10, 26 fieldLabel: 'NPR'
25 fieldLabel: 'NPR' 27 }, {
26 }, 28 xtype: 'messmethode',
27 { 29 name: 'mmtId',
28 xtype: 'messmethode', 30 fieldLabel: 'MMT'
29 name: 'mmtId', 31 }, {
30 fieldLabel: 'MMT' 32 xtype: 'datetime',
31 }, 33 name: 'messzeitpunkt',
32 { 34 fieldLabel: 'Messzeitpunkt'
33 xtype: 'datetime', 35 }, {
34 name: 'messzeitpunkt', 36 xtype: 'numberfield',
35 fieldLabel: 'Messzeitpunkt' 37 allowDecimals: false,
36 }, 38 minValue: 0,
37 { 39 name: 'messdauer',
38 xtype: 'numberfield', 40 fieldLabel: 'Messdauer'
39 allowDecimals: false, 41 }, {
40 minValue: 0, 42 xtype: 'testdatensatz',
41 name: 'messdauer', 43 name: 'fertig',
42 fieldLabel: 'Messdauer' 44 fieldLabel: 'Fertig'
43 }, 45 }, {
44 { 46 xtype: 'testdatensatz',
45 xtype: 'testdatensatz', 47 name: 'geplant',
46 name: 'fertig', 48 fieldLabel: 'Geplant'
47 fieldLabel: 'Fertig' 49 }];
48 }, 50 this.callParent(arguments);
49 {
50 xtype: 'testdatensatz',
51 name: 'geplant',
52 fieldLabel: 'Geplant'
53 }
54 ];
55 this.callParent();
56 } 51 }
57 }); 52 });

http://lada.wald.intevation.org