Mercurial > lada > lada-client
annotate app/view/form/Probe.js @ 924:9265637fe6c0
changed layout of Probe form
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Wed, 26 Aug 2015 15:29:29 +0200 |
parents | a1d72228af00 |
children | c75f13578315 |
rev | line source |
---|---|
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
3 * |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 */ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
9 /* |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
10 * Formular to edit a Probe |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 */ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.view.form.Probe', { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.form.Panel', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 alias: 'widget.probeform', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 requires: [ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 'Lada.view.widget.Datenbasis', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
17 'Lada.view.widget.base.CheckBox', |
555
7f8e64c5bd2e
Fixed typo in messstelle widget.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
548
diff
changeset
|
18 'Lada.view.widget.Messstelle', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 'Lada.view.widget.Netzbetreiber', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 'Lada.view.widget.Betriebsart', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 'Lada.view.widget.Probenart', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
22 'Lada.view.widget.Umwelt', |
771
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
23 'Lada.view.widget.Deskriptor', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 'Lada.view.widget.base.TextField', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 'Lada.view.widget.base.Datetime', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 'Lada.view.widget.base.FieldSet', |
646
d945cfeeebeb
Im Probeform den Custom-Datetimepicker durch den Standard Datepicker ersetzt. So funktioniert die Lokalisierung besser
Dustin Demuth <dustin@intevation.de>
parents:
623
diff
changeset
|
27 'Lada.view.widget.base.DateField', |
771
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
28 'Lada.model.Probe' |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
29 ], |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
30 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
31 model: 'Lada.model.Probe', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 minWidth: 650, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 margin: 5, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 border: 0, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 recordId: null, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
37 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
38 trackResetOnLoad: true, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
39 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
40 initComponent: function() { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
41 var me = this; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
42 this.items = [{ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
43 xtype: 'fieldset', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
44 title: 'Allgemein', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
45 items: [{ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
46 border: 0, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
47 margin: '0, 0, 10, 0', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
48 dockedItems: [{ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
49 xtype: 'toolbar', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
50 dock: 'bottom', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
51 border: '0, 1, 1, 1', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
52 style: { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
53 borderBottom: '1px solid #b5b8c8 !important', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
54 borderLeft: '1px solid #b5b8c8 !important', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
55 borderRight: '1px solid #b5b8c8 !important' |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
56 }, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
57 items: ['->', { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
58 text: 'Speichern', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
59 qtip: 'Daten speichern', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
60 icon: 'resources/img/dialog-ok-apply.png', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
61 action: 'save', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
62 disabled: true |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
63 }, { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
64 text: 'Verwerfen', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
65 qtip: 'Änderungen verwerfen', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
66 icon: 'resources/img/dialog-cancel.png', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
67 action: 'discard', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
68 disabled: true |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
69 }] |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
70 }], |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
71 items: [{ |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
72 layout: 'vbox', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
73 border: 0, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
74 items: [{ |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
75 layout: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
76 type: 'hbox', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
77 align: 'stretch' |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
78 }, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
79 border: 0, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
80 width: '100%', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
81 items: [{ |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
82 xtype: 'messstelle', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
83 name: 'mstId', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
84 fieldLabel: 'Messstelle', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
85 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
86 width: '35%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
87 labelWidth: 90, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
88 allowBlank: false, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
89 editable: true |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
90 }, { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
91 xtype: 'netzbetreiber', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
92 name: 'netzbetreiberId', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
93 editable: false, |
847
95d40ca7bb70
Netbetreiber Combobox shall be readonly
Dustin Demuth <dustin@intevation.de>
parents:
838
diff
changeset
|
94 readOnly: true, |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
95 fieldLabel: 'Netzbetreiber', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
96 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
97 width: '35%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
98 labelWidth: 80, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
99 allowBlank: false |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
100 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
101 xtype: 'datenbasis', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
102 editable: false, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
103 name: 'datenbasisId', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
104 fieldLabel: 'Datenbasis', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
105 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
106 width: '20%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
107 labelWidth: 65 |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
108 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
109 xtype: 'chkbox', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
110 name: 'test', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
111 fieldLabel: 'Test', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
112 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
113 width: '10%', |
623
19d81c9aa97f
anchored all elements, to make them the same size, added a margin of 1px to the frame around the fieldset to prevent the cuttoff on the right side
Dustin Demuth <dustin@intevation.de>
parents:
611
diff
changeset
|
114 anchor: '100%', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
115 labelWidth: 30 |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
116 }] |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
117 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
118 layout: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
119 type: 'hbox', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
120 align: 'stretch' |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
121 }, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
122 border: 0, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
123 width: '100%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
124 items: [{ |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
125 xtype: 'tfield', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
126 name: 'hauptprobenNr', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
127 fieldLabel: 'Hauptprobennr.', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
128 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
129 width: '35%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
130 labelWidth: 90, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
131 maxLength: 20, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
132 allowBlank: true |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
133 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
134 xtype: 'betriebsart', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
135 name: 'baId', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
136 fieldLabel: 'Messregime', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
137 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
138 width: '35%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
139 labelWidth: 80 |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
140 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
141 xtype: 'probenart', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
142 editable: false, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
143 name: 'probenartId', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
144 fieldLabel: 'Probenart', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
145 margin: '0, 15, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
146 width: '20%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
147 labelWidth: 65, |
718
7f11b75e0188
Trailing Commas, editable: false for Umwelt und Messstelle widget
Dustin Demuth <dustin@intevation.de>
parents:
717
diff
changeset
|
148 allowBlank: false |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
149 }] |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
150 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
151 layout: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
152 type: 'hbox', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
153 align: 'stretch' |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
154 }, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
155 border: 0, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
156 width: '100%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
157 items: [{ |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
158 xtype: 'numberfield', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
159 allowDecimals: false, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
160 name: 'probeNehmerId', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
161 fieldLabel: 'Probennehmer', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
162 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
163 width: '50%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
164 minValue: 0, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
165 anchor: '100%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
166 labelWidth: 90 |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
167 }, { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
168 xtype: 'tfield', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
169 name: 'x11', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
170 fieldLabel: 'Datensatzerzeuger', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
171 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
172 width: '50%', |
623
19d81c9aa97f
anchored all elements, to make them the same size, added a margin of 1px to the frame around the fieldset to prevent the cuttoff on the right side
Dustin Demuth <dustin@intevation.de>
parents:
611
diff
changeset
|
173 anchor: '100%', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
174 labelWidth: 90 |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
175 }] |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
176 }] |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
177 }, { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
178 // Zeit |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
179 xtype: 'fieldset', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
180 title: 'Zeit', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
181 layout: { |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
182 type: 'vbox', |
646
d945cfeeebeb
Im Probeform den Custom-Datetimepicker durch den Standard Datepicker ersetzt. So funktioniert die Lokalisierung besser
Dustin Demuth <dustin@intevation.de>
parents:
623
diff
changeset
|
183 align: 'stretch' |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
184 }, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
185 items: [{ |
717
f124d24c8ade
Datevalidation. When editing a timeperiod in a Probeform it is validated wheter begindate is before enddate. This only happens when the blur-event is fired. ToDo: Listen to Events from the Übernehmen Button of the DateTimePicker, ToDo: Somehow the ErrorMessages are not Cleared correctly when the form is restored.
Dustin Demuth <dustin@intevation.de>
parents:
685
diff
changeset
|
186 xtype: 'fset', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
187 name: 'sollzeitPeriod', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
188 width: '100%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
189 border: 0, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
190 margin: 0, |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
191 layout: { |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
192 type: 'hbox', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
193 }, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
194 items: [{ |
650
67963fcb7739
Removed old DateTimeField and replaced them with the new one.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
646
diff
changeset
|
195 xtype: 'datetime', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
196 fieldLabel: 'Sollzeitraum von', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
197 labelWidth: 120, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
198 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
199 name: 'solldatumBeginn', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
200 format: 'd.m.Y H:i', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
201 period: 'start' |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
202 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
203 xtype: 'datetime', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
204 fieldLabel: 'bis', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
205 labelWidth: 10, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
206 margin: '0, 5, 5, 5', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
207 name: 'solldatumEnde', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
208 format: 'd.m.Y H:i', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
209 period: 'end' |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
210 }] |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
211 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
212 xtype: 'fset', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
213 name: 'entnahmePeriod', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
214 width: '100%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
215 border: 0, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
216 margin: 0, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
217 layout: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
218 type: 'hbox', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
219 }, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
220 items: [{ |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
221 xtype: 'datetime', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
222 fieldLabel: 'Probenentnahme von', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
223 labelWidth: 120, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
224 margin: '0, 5, 5, 5', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
225 name: 'probeentnahmeBeginn', |
717
f124d24c8ade
Datevalidation. When editing a timeperiod in a Probeform it is validated wheter begindate is before enddate. This only happens when the blur-event is fired. ToDo: Listen to Events from the Übernehmen Button of the DateTimePicker, ToDo: Somehow the ErrorMessages are not Cleared correctly when the form is restored.
Dustin Demuth <dustin@intevation.de>
parents:
685
diff
changeset
|
226 format: 'd.m.Y H:i', |
f124d24c8ade
Datevalidation. When editing a timeperiod in a Probeform it is validated wheter begindate is before enddate. This only happens when the blur-event is fired. ToDo: Listen to Events from the Übernehmen Button of the DateTimePicker, ToDo: Somehow the ErrorMessages are not Cleared correctly when the form is restored.
Dustin Demuth <dustin@intevation.de>
parents:
685
diff
changeset
|
227 period: 'start' |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
228 }, { |
650
67963fcb7739
Removed old DateTimeField and replaced them with the new one.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
646
diff
changeset
|
229 xtype: 'datetime', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
230 fieldLabel: 'bis', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
231 labelWidth: 10, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
232 margin: '0, 5, 5, 5', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
233 name: 'probeentnahmeEnde', |
717
f124d24c8ade
Datevalidation. When editing a timeperiod in a Probeform it is validated wheter begindate is before enddate. This only happens when the blur-event is fired. ToDo: Listen to Events from the Übernehmen Button of the DateTimePicker, ToDo: Somehow the ErrorMessages are not Cleared correctly when the form is restored.
Dustin Demuth <dustin@intevation.de>
parents:
685
diff
changeset
|
234 format: 'd.m.Y H:i', |
f124d24c8ade
Datevalidation. When editing a timeperiod in a Probeform it is validated wheter begindate is before enddate. This only happens when the blur-event is fired. ToDo: Listen to Events from the Übernehmen Button of the DateTimePicker, ToDo: Somehow the ErrorMessages are not Cleared correctly when the form is restored.
Dustin Demuth <dustin@intevation.de>
parents:
685
diff
changeset
|
235 period: 'end' |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
236 }] |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
237 }] |
838
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
238 }, { |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
239 // Medium |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
240 xtype: 'fieldset', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
241 title: 'Medium', |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
242 width: '100%', |
838
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
243 items: [{ |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
244 border: 0, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
245 layout: { |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
246 type: 'vbox', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
247 align: 'stretch' |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
248 }, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
249 width: '100%', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
250 items: [{ |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
251 xtype: 'umwelt', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
252 name: 'umwId', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
253 fieldLabel: 'Umweltbereich', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
254 labelWidth: 125, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
255 allowBlank: false, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
256 editable: true, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
257 listeners: { |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
258 dirtychange: { |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
259 fn: this.updateOnChange, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
260 scope: me |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
261 } |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
262 } |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
263 }, { |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
264 border: 0, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
265 layout: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
266 type: 'hbox', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
267 align: 'stretch' |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
268 }, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
269 width: '100%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
270 items: [{ |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
271 xtype: 'tfield', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
272 maxLength: 38, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
273 enforceMaxLength: true, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
274 name: 'mediaDesk', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
275 width: '60%', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
276 minWidth: 290, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
277 labelWidth: 125, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
278 fieldLabel: 'Deskriptoren', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
279 regex: new RegExp('(?:D: ){1}(?:[0-9]{2} ){11}[0-9]{2}'), |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
280 regexText: 'Die Deskriptoren haben das falsche Format.<br />'+ |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
281 'Richtig wäre: D: 99 99 99 99 99 99 99 99 99 99 99 99', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
282 listeners: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
283 dirtychange: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
284 fn: this.updateOnChange, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
285 scope: me |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
286 } |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
287 } |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
288 }, { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
289 xtype: 'textfield', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
290 name: 'media', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
291 margin: '0, 10, 5, 10', |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
292 enforceMaxLength: true, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
293 editable: false, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
294 readOnly: true, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
295 listeners: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
296 dirtychange: { |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
297 fn: this.updateOnChange, |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
298 scope: me |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
299 } |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
300 } |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
301 }] |
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
302 }, { |
838
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
303 xtype: 'fieldset', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
304 title: 'Details Deskriptoren', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
305 collapsible: true, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
306 collapsed: true, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
307 layout: { |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
308 type: 'table', |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
309 columns: 3 |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
310 }, |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
311 items: this.buildDescriptors() |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
312 }] |
bbbccdb103cf
Display Time in Proben over Medium
Dustin Demuth <dustin@intevation.de>
parents:
817
diff
changeset
|
313 }] |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
314 }] |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
315 }] |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
316 }]; |
681
f373446325b4
a probe can not be edited when the readonly flag was sent by the server
Dustin Demuth <dustin@intevation.de>
parents:
671
diff
changeset
|
317 this.callParent(arguments); |
816
e25fcc9269df
Removed a Bug where Datetimepickler errormessages where not reset on Form Discard
Dustin Demuth <dustin@intevation.de>
parents:
783
diff
changeset
|
318 this.clearMessages(); |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
319 }, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
320 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
321 setRecord: function(record) { |
717
f124d24c8ade
Datevalidation. When editing a timeperiod in a Probeform it is validated wheter begindate is before enddate. This only happens when the blur-event is fired. ToDo: Listen to Events from the Übernehmen Button of the DateTimePicker, ToDo: Somehow the ErrorMessages are not Cleared correctly when the form is restored.
Dustin Demuth <dustin@intevation.de>
parents:
685
diff
changeset
|
322 this.clearMessages(); |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
323 this.getForm().loadRecord(record); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
324 }, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
325 |
771
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
326 setMediaDesk: function(record) { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
327 var media = record.get('mediaDesk').split(' '); |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
328 this.setMediaSN(0, media); |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
329 }, |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
330 |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
331 setMediaSN: function(ndx, media) { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
332 if (ndx >= 12) { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
333 return; |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
334 } |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
335 var me = this; |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
336 var current = this.down('deskriptor[layer=' + ndx + ']'); |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
337 var cbox = current.down('combobox'); |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
338 if (ndx === 0) { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
339 cbox.store.proxy.extraParams = { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
340 'layer': ndx |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
341 }; |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
342 } |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
343 else { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
344 var parents = current.getParents(current.down('combobox')); |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
345 if (parents.length === 0) { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
346 return; |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
347 } |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
348 cbox.store.proxy.extraParams = { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
349 'layer': ndx, |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
350 'parents': parents |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
351 }; |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
352 } |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
353 cbox.store.load(function(records, op, success) { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
354 if (!success) { |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
355 return; |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
356 } |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
357 cbox.select(cbox.store.findRecord('sn', parseInt(media[ndx + 1], 10))); |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
358 me.setMediaSN(++ndx, media); |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
359 }); |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
360 }, |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
361 |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
362 setMessages: function(errors, warnings) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
363 var key; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
364 var element; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
365 var content; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
366 var i18n = Lada.getApplication().bundle; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
367 if (warnings) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
368 for (key in warnings) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
369 element = this.down('component[name=' + key + ']'); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
370 if (!element) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
371 continue; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
372 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
373 content = warnings[key]; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
374 var warnText = ''; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
375 for (var i = 0; i < content.length; i++) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
376 warnText += i18n.getMsg(content[i].toString()) + '\n'; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
377 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
378 element.showWarnings(warnText); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
379 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
380 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
381 if (errors) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
382 for (key in errors) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
383 element = this.down('component[name=' + key + ']'); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
384 if (!element) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
385 continue; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
386 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
387 content = errors[key]; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
388 var errorText = ''; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
389 for (var i = 0; i < content.length; i++) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
390 errorText += i18n.getMsg(content[i].toString()) + '\n'; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
391 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
392 element.showErrors(errorText); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
393 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
394 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
395 }, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
396 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
397 clearMessages: function() { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
398 this.down('cbox[name=mstId]').clearWarningOrError(); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
399 this.down('tfield[name=hauptprobenNr]').clearWarningOrError(); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
400 this.down('cbox[name=datenbasisId]').clearWarningOrError(); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
401 this.down('cbox[name=baId]').clearWarningOrError(); |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
402 this.down('chkbox[name=test]').clearWarningOrError(); |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
403 this.down('cbox[name=probenartId]').clearWarningOrError(); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
404 this.down('cbox[name=netzbetreiberId]').clearWarningOrError(); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
405 this.down('tfield[name=x11]').clearWarningOrError(); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
406 this.down('cbox[name=umwId]').clearWarningOrError(); |
652
05e4ad93d021
Fixed field names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
650
diff
changeset
|
407 this.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError(); |
05e4ad93d021
Fixed field names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
650
diff
changeset
|
408 this.down('datetime[name=probeentnahmeEnde]').clearWarningOrError(); |
05e4ad93d021
Fixed field names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
650
diff
changeset
|
409 this.down('datetime[name=solldatumBeginn]').clearWarningOrError(); |
05e4ad93d021
Fixed field names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
650
diff
changeset
|
410 this.down('datetime[name=solldatumEnde]').clearWarningOrError(); |
681
f373446325b4
a probe can not be edited when the readonly flag was sent by the server
Dustin Demuth <dustin@intevation.de>
parents:
671
diff
changeset
|
411 //this.down('numberfield[name=probeNehmerId]').clearWarningOrError(); |
717
f124d24c8ade
Datevalidation. When editing a timeperiod in a Probeform it is validated wheter begindate is before enddate. This only happens when the blur-event is fired. ToDo: Listen to Events from the Übernehmen Button of the DateTimePicker, ToDo: Somehow the ErrorMessages are not Cleared correctly when the form is restored.
Dustin Demuth <dustin@intevation.de>
parents:
685
diff
changeset
|
412 this.down('fset[name=entnahmePeriod]').clearMessages(); |
f124d24c8ade
Datevalidation. When editing a timeperiod in a Probeform it is validated wheter begindate is before enddate. This only happens when the blur-event is fired. ToDo: Listen to Events from the Übernehmen Button of the DateTimePicker, ToDo: Somehow the ErrorMessages are not Cleared correctly when the form is restored.
Dustin Demuth <dustin@intevation.de>
parents:
685
diff
changeset
|
413 this.down('fset[name=sollzeitPeriod]').clearMessages(); |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
414 }, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
415 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
416 setReadOnly: function(value) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
417 this.down('cbox[name=mstId]').setReadOnly(value); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
418 this.down('tfield[name=hauptprobenNr]').setReadOnly(value); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
419 this.down('cbox[name=datenbasisId]').setReadOnly(value); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
420 this.down('cbox[name=baId]').setReadOnly(value); |
924
9265637fe6c0
changed layout of Probe form
Michael Stanko <mstanko@bfs.de>
parents:
894
diff
changeset
|
421 this.down('chkbox[name=test]').setReadOnly(value); |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
422 this.down('cbox[name=probenartId]').setReadOnly(value); |
847
95d40ca7bb70
Netbetreiber Combobox shall be readonly
Dustin Demuth <dustin@intevation.de>
parents:
838
diff
changeset
|
423 //this.down('cbox[name=netzbetreiberId]').setReadOnly(value); |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
424 this.down('tfield[name=x11]').setReadOnly(value); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
425 this.down('textfield[name=media]').setReadOnly(value); |
783
afdbe3770b99
Exclude deskriptor fields from form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
771
diff
changeset
|
426 this.down('tfield[name=mediaDesk]').setReadOnly(value); |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
427 this.down('cbox[name=umwId]').setReadOnly(value); |
652
05e4ad93d021
Fixed field names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
650
diff
changeset
|
428 this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value); |
05e4ad93d021
Fixed field names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
650
diff
changeset
|
429 this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value); |
05e4ad93d021
Fixed field names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
650
diff
changeset
|
430 this.down('datetime[name=solldatumBeginn]').setReadOnly(value); |
05e4ad93d021
Fixed field names.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
650
diff
changeset
|
431 this.down('datetime[name=solldatumEnde]').setReadOnly(value); |
681
f373446325b4
a probe can not be edited when the readonly flag was sent by the server
Dustin Demuth <dustin@intevation.de>
parents:
671
diff
changeset
|
432 this.down('numberfield[name=probeNehmerId]').setReadOnly(value); |
685
0391425689ed
Also Deskriptoren must be set to readonly
Dustin Demuth <dustin@intevation.de>
parents:
684
diff
changeset
|
433 |
0391425689ed
Also Deskriptoren must be set to readonly
Dustin Demuth <dustin@intevation.de>
parents:
684
diff
changeset
|
434 //Deskriptoren |
0391425689ed
Also Deskriptoren must be set to readonly
Dustin Demuth <dustin@intevation.de>
parents:
684
diff
changeset
|
435 for (var i = 0; i < 12; i++) { |
783
afdbe3770b99
Exclude deskriptor fields from form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
771
diff
changeset
|
436 this.down('deskriptor[layer='+i+']').setReadOnly(value); |
685
0391425689ed
Also Deskriptoren must be set to readonly
Dustin Demuth <dustin@intevation.de>
parents:
684
diff
changeset
|
437 } |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
438 }, |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
439 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
440 buildDescriptors: function() { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
441 var fields = []; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
442 for (var i = 0; i < 12; i++) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
443 fields[i] = { |
771
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
444 xtype: 'deskriptor', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
445 fieldLabel: 'S' + i, |
783
afdbe3770b99
Exclude deskriptor fields from form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
771
diff
changeset
|
446 //name: 's' + i, |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
447 labelWidth: 25, |
771
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
448 width: 190, |
dd6925ef6028
Load, set and parse deskriptoren in probe form.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
740
diff
changeset
|
449 layer: i, |
718
7f11b75e0188
Trailing Commas, editable: false for Umwelt und Messstelle widget
Dustin Demuth <dustin@intevation.de>
parents:
717
diff
changeset
|
450 margin: '0, 10, 5, 0' |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
451 }; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
452 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
453 return fields; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
454 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
455 }); |