Mercurial > lada > lada-client
comparison app/view/messungen/EditForm.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 edit a Messung | 10 * Formular to edit a Messung |
11 */ | 11 */ |
12 Ext.define('Lada.view.messungen.EditForm', { | 12 Ext.define('Lada.view.messungen.EditForm', { |
13 extend: 'Lada.view.widgets.LadaForm', | 13 extend: 'Lada.view.widgets.LadaForm', |
14 model: 'Lada.model.Messung', | 14 |
15 requires: [ | 15 requires: [ |
16 'Lada.view.widgets.Messmethode', | 16 'Lada.view.widgets.Messmethode', |
17 'Lada.view.widgets.Testdatensatz', | 17 'Lada.view.widgets.Testdatensatz', |
18 'Lada.view.mkommentare.List', | 18 'Lada.view.mkommentare.List', |
19 'Lada.view.status.List', | 19 'Lada.view.status.List', |
20 'Lada.view.messwerte.List' | 20 'Lada.view.messwerte.List' |
21 ], | 21 ], |
22 | |
23 model: 'Lada.model.Messung', | |
24 | |
22 initComponent: function() { | 25 initComponent: function() { |
23 this.items = [ | 26 this.items = [{ |
24 { | 27 xtype: 'textfield', |
25 xtype: 'textfield', | 28 name: 'nebenprobenNr', |
26 name: 'nebenprobenNr', | 29 maxLength: 10, |
27 maxLength: 10, | 30 fieldLabel: 'NPR' |
28 fieldLabel: 'NPR' | 31 }, { |
29 }, | 32 xtype: 'messmethode', |
30 { | 33 name: 'mmtId', |
31 xtype: 'messmethode', | 34 fieldLabel: 'MMT' |
32 name: 'mmtId', | 35 }, { |
33 fieldLabel: 'MMT' | 36 xtype: 'datetime', |
34 }, | 37 name: 'messzeitpunkt', |
35 { | 38 fieldLabel: 'Messzeitpunkt' |
36 xtype: 'datetime', | 39 }, { |
37 name: 'messzeitpunkt', | 40 xtype: 'numberfield', |
38 fieldLabel: 'Messzeitpunkt' | 41 allowDecimals: false, |
39 }, | 42 minValue: 0, |
40 { | 43 name: 'messdauer', |
41 xtype: 'numberfield', | 44 fieldLabel: 'Messdauer' |
42 allowDecimals: false, | 45 }, { |
43 minValue: 0, | 46 xtype: 'testdatensatz', |
44 name: 'messdauer', | 47 name: 'fertig', |
45 fieldLabel: 'Messdauer' | 48 fieldLabel: 'Fertig' |
46 }, | 49 }, { |
47 { | 50 xtype: 'testdatensatz', |
48 xtype: 'testdatensatz', | 51 name: 'geplant', |
49 name: 'fertig', | 52 fieldLabel: 'Geplant' |
50 fieldLabel: 'Fertig' | 53 }, { |
51 }, | |
52 { | |
53 xtype: 'testdatensatz', | |
54 name: 'geplant', | |
55 fieldLabel: 'Geplant' | |
56 }, | |
57 // Messwerte | 54 // Messwerte |
58 { | 55 xtype: 'fieldset', |
59 xtype: 'fieldset', | 56 title: 'Messwerte', |
60 title: 'Messwerte', | 57 collapsible: true, |
61 collapsible: true, | 58 collapsed: false, |
62 collapsed: false, | 59 padding: '10 10', |
63 padding: '10 10', | 60 items: [{ |
64 items: [ | 61 xtype: 'messwertelist', |
65 { | 62 parentId: this.model.get('messungsId'), |
66 xtype: 'messwertelist', | 63 probeId: this.model.get('probeId') |
67 parentId: this.model.get('messungsId'), | 64 }] |
68 probeId: this.model.get('probeId') | 65 }, { |
69 } | |
70 ] | |
71 }, | |
72 // Status | 66 // Status |
73 { | 67 xtype: 'fieldset', |
74 xtype: 'fieldset', | 68 title: 'Messungsstatus', |
75 title: 'Messungsstatus', | 69 collapsible: true, |
76 collapsible: true, | 70 collapsed: false, |
77 collapsed: false, | 71 padding: '10 10', |
78 padding: '10 10', | 72 items: [{ |
79 items: [ | 73 xtype: 'statuslist', |
80 { | 74 parentId: this.model.get('messungsId'), |
81 xtype: 'statuslist', | 75 probeId: this.model.get('probeId') |
82 parentId: this.model.get('messungsId'), | 76 }] |
83 probeId: this.model.get('probeId') | 77 }, { |
84 } | |
85 ] | |
86 }, | |
87 // Messungskommentare | 78 // Messungskommentare |
88 { | 79 xtype: 'fieldset', |
89 xtype: 'fieldset', | 80 title: 'Messungskommentare', |
90 title: 'Messungskommentare', | 81 collapsible: true, |
91 collapsible: true, | 82 collapsed: false, |
92 collapsed: false, | 83 padding: '10 10', |
93 padding: '10 10', | 84 items: [{ |
94 items: [ | 85 xtype: 'mkommentarelist', |
95 { | 86 parentId: this.model.get('messungsId'), |
96 xtype: 'mkommentarelist', | 87 probeId: this.model.get('probeId') |
97 parentId: this.model.get('messungsId'), | 88 }] |
98 probeId: this.model.get('probeId') | 89 }]; |
99 } | 90 this.callParent(arguments); |
100 ] | |
101 } | |
102 ]; | |
103 this.callParent(); | |
104 } | 91 } |
105 }); | 92 }); |