Mercurial > lada > lada-client
annotate app/view/proben/CreateForm.js @ 484:dfb9c0c34271
Fixed INSTALL doc.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 24 Feb 2014 13:22:12 +0100 |
parents | debfcc7713e3 |
children | 850ccfe5f3c4 |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
348
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
348
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
348
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
348
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
348
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
348
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
348
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
348
diff
changeset
|
8 |
348
6007d11b81c2
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
278
diff
changeset
|
9 /* |
6007d11b81c2
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
278
diff
changeset
|
10 * Formular to create a Probe |
6007d11b81c2
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
278
diff
changeset
|
11 */ |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.view.proben.CreateForm', { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 extend: 'Lada.view.widgets.LadaForm', |
121
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
14 requires: [ |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
15 'Lada.view.widgets.Datenbasis', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
16 'Lada.view.widgets.Netzbetreiber', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
17 'Lada.view.widgets.Betriebsart', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
18 'Lada.view.widgets.Testdatensatz', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
19 'Lada.view.widgets.Probenart', |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
20 'Lada.view.widgets.Uwb' |
c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
91
diff
changeset
|
21 ], |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 model: 'Lada.model.Probe', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 initComponent: function() { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 this.items = [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 title: 'Probenangaben', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 defaults: { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 labelWidth: 150 |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 { |
82
679dedddb688
Change fieldtype of Messstelle to combobox.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
81
diff
changeset
|
33 xtype: 'mst', |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 name: 'mstId', |
80
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
35 fieldLabel: 'Messstelle', |
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
36 allowBlank: false |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
39 xtype: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
40 name: 'hauptprobenNr', |
269
eda619ad45b0
Set maxlength to 20
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
267
diff
changeset
|
41 maxLength: 20, |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
42 fieldLabel: 'Hauptprobennr.' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
44 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
45 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
46 title: 'Erweiterte Probenangaben', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
47 collapsible: true, |
81
1279baefd61a
Do not collapse the fields, as required field should be visible on creation.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
80
diff
changeset
|
48 collapsed: false, |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
49 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
50 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
51 xtype: 'datenbasis', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
52 id: 'datenbasis', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
53 editable: false, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
54 name: 'datenbasisId', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
55 fieldLabel: 'Datenbasis' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
56 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
57 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
58 xtype: 'betriebsart', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
59 name: 'baId', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
60 fieldLabel: 'Betriebsart' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
61 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
62 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
63 xtype: 'testdatensatz', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
64 name: 'test', |
128
9b14742a8117
Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
65 fieldLabel: 'Testdatensatz', |
9b14742a8117
Added allowBlanks to the Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
121
diff
changeset
|
66 allowBlank: false |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
67 }, |
79
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
68 { |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
69 xtype: 'probenart', |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
70 id: 'probenart', |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
71 editable: false, |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
72 name: 'probenartId', |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
73 fieldLabel: 'Probenart', |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
74 allowBlank: false |
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
75 }, |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
76 { |
278
d6d74718a102
Clientseitige Überprüfung der Datenfelder hinzugefügt: Nutzung von "numberfields" bei Zahlenwerten, maxLength, min/maxValue
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
77 xtype: 'numberfield', |
d6d74718a102
Clientseitige Überprüfung der Datenfelder hinzugefügt: Nutzung von "numberfields" bei Zahlenwerten, maxLength, min/maxValue
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
78 allowDecimals: false, |
79
9eeddf6e40f7
Fixed fieldnaming.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
78
diff
changeset
|
79 name: 'probeNehmerId', |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
80 fieldLabel: 'Probennehmer' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
81 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
82 { |
91
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
87
diff
changeset
|
83 xtype: 'netzbetreiber', |
87
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
84 name: 'netzbetreiberId', |
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
85 fieldLabel: 'Netzbetreiber', |
91
95b08b96f5c9
Added new widget for the netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
87
diff
changeset
|
86 editable: false, |
87
ee1d1305dcff
Added field for netzbetreiber. Is needed because of FK constraints.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
82
diff
changeset
|
87 allowBlank: false |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
88 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
89 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
90 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
91 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
92 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
93 // Medium |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
94 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
95 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
96 title: 'Medium', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
97 defaults: { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
98 labelWidth: 150 |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
99 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
100 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
101 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
102 xtype: 'uwb', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
103 name: 'umwId', |
80
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
104 fieldLabel: 'Umweltbereich', |
9dda938db216
Mark field as required.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
79
diff
changeset
|
105 allowBlank: false |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
106 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
107 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
108 xtype: 'textfield', |
278
d6d74718a102
Clientseitige Überprüfung der Datenfelder hinzugefügt: Nutzung von "numberfields" bei Zahlenwerten, maxLength, min/maxValue
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
109 maxLength: 100, |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
110 name: 'media', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
111 fieldLabel: 'Medienbezeichnung' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
112 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
113 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
114 xtype: 'textfield', |
278
d6d74718a102
Clientseitige Überprüfung der Datenfelder hinzugefügt: Nutzung von "numberfields" bei Zahlenwerten, maxLength, min/maxValue
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
276
diff
changeset
|
115 maxLength: 100, |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
116 name: 'mediaDesk', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
117 fieldLabel: 'Deskriptoren' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
118 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
119 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
120 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
121 title: 'Details Deskriptoren', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
122 collapsible: true, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
123 collapsed: true, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
124 defaultType: 'textfield', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
125 items: this.buildDescriptors() |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
126 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
127 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
128 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
129 // Zeit |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
130 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
131 xtype: 'fieldset', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
132 title: 'Zeit', |
276
dee3e54a61b1
Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
269
diff
changeset
|
133 defaultType: 'datetime', |
67
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
134 defaults: { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
135 labelWidth: 150 |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
136 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
137 items: [ |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
138 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
139 fieldLabel: 'Probennahme Beginn', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
140 name: 'probeentnahmeBeginn' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
141 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
142 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
143 fieldLabel: 'Probennahme Ende', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
144 name: 'probeentnahmeEnde' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
145 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
146 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
147 fieldLabel: 'Sollzeit Von', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
148 name: 'solldatumBeginn' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
149 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
150 { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
151 fieldLabel: 'Sollzeit Bis', |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
152 name: 'solldatumEnde' |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
153 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
154 ] |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
155 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
156 ]; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
157 this.callParent(); |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
158 }, |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
159 buildDescriptors: function() { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
160 var fields = new Array(); |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
161 for ($i=0; $i<12; $i++) { |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
162 fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i}; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
163 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
164 return fields; |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
165 } |
7ea76e760fc2
Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
166 }); |