comparison app/view/messungen/EditForm.js @ 231:edb2b636319f

Modified create dialogs to only contain fields to create a messung (without, messwerte, status, kommentare). Added Editdialog with all fields.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 17 Jul 2013 12:09:01 +0200
parents
children dee3e54a61b1
comparison
equal deleted inserted replaced
230:7bea6974fb5b 231:edb2b636319f
1 Ext.define('Lada.view.messungen.EditForm', {
2 extend: 'Lada.view.widgets.LadaForm',
3 model: 'Lada.model.Messung',
4 requires: [
5 'Lada.view.widgets.Messmethode',
6 'Lada.view.widgets.Testdatensatz',
7 'Lada.view.mkommentare.List',
8 'Lada.view.status.List',
9 'Lada.view.messwerte.List'
10 ],
11 initComponent: function() {
12 this.items = [
13 {
14 xtype: 'textfield',
15 name: 'nebenprobenNr',
16 maxLength: 10,
17 fieldLabel: 'NPR'
18 },
19 {
20 xtype: 'messmethode',
21 name: 'mmtId',
22 fieldLabel: 'MMT'
23 },
24 {
25 xtype: 'datefield',
26 name: 'messzeitpunkt',
27 fieldLabel: 'Messzeitpunkt'
28 },
29 {
30 xtype: 'textfield',
31 name: 'messdauer',
32 fieldLabel: 'Messdauer'
33 },
34 {
35 xtype: 'testdatensatz',
36 name: 'fertig',
37 fieldLabel: 'Fertig'
38 },
39 {
40 xtype: 'testdatensatz',
41 name: 'geplant',
42 fieldLabel: 'Geplant'
43 },
44 // Messwerte
45 {
46 xtype: 'fieldset',
47 title: 'Messwerte',
48 collapsible: true,
49 collapsed: false,
50 padding: '10 10',
51 items: [
52 {
53 xtype: 'messwertelist',
54 parentId: this.model.get('messungsId'),
55 probeId: this.model.get('probeId')
56 }
57 ]
58 },
59 // Status
60 {
61 xtype: 'fieldset',
62 title: 'Messungsstatus',
63 collapsible: true,
64 collapsed: false,
65 padding: '10 10',
66 items: [
67 {
68 xtype: 'statuslist',
69 parentId: this.model.get('messungsId'),
70 probeId: this.model.get('probeId')
71 }
72 ]
73 },
74 // Messungskommentare
75 {
76 xtype: 'fieldset',
77 title: 'Messungskommentare',
78 collapsible: true,
79 collapsed: false,
80 padding: '10 10',
81 items: [
82 {
83 xtype: 'mkommentarelist',
84 parentId: this.model.get('messungsId'),
85 probeId: this.model.get('probeId')
86 }
87 ]
88 }
89 ];
90 this.callParent();
91 }
92 });

http://lada.wald.intevation.org