annotate app/view/messungen/CreateForm.js @ 473:b2501a488480

Added license text
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 17 Jan 2014 11:39:46 +0100
parents debfcc7713e3
children 850ccfe5f3c4
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 343
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: 343
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 343
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 343
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: 343
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: 343
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: 343
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 343
diff changeset
8
343
eccf58d3b106 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 278
diff changeset
9 /*
eccf58d3b106 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 278
diff changeset
10 * Formular to create a Messung
eccf58d3b106 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 278
diff changeset
11 */
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.messungen.CreateForm', {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 extend: 'Lada.view.widgets.LadaForm',
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 model: 'Lada.model.Messung',
176
74fc25979b51 Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 174
diff changeset
15 requires: [
179
f1f0351b6e2f Show List of Messungskommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 177
diff changeset
16 'Lada.view.widgets.Messmethode',
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 209
diff changeset
17 'Lada.view.widgets.Testdatensatz'
176
74fc25979b51 Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 174
diff changeset
18 ],
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 initComponent: function() {
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 this.items = [
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
21 {
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
22 xtype: 'textfield',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
23 name: 'nebenprobenNr',
209
a9a7d8abc45e Set maxlength of NPR to 10
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 196
diff changeset
24 maxLength: 10,
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
25 fieldLabel: 'NPR'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
26 },
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
27 {
177
311065a9e6df Use Messmethodewidget.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 176
diff changeset
28 xtype: 'messmethode',
176
74fc25979b51 Require messmethode widget. Fix fieldname.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 174
diff changeset
29 name: 'mmtId',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
30 fieldLabel: 'MMT'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
31 },
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
32 {
276
dee3e54a61b1 Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 231
diff changeset
33 xtype: 'datetime',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
34 name: 'messzeitpunkt',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
35 fieldLabel: 'Messzeitpunkt'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
36 },
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
37 {
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
38 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
39 allowDecimals: false,
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
40 minValue: 0,
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
41 name: 'messdauer',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
42 fieldLabel: 'Messdauer'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
43 },
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
44 {
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
45 xtype: 'testdatensatz',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
46 name: 'fertig',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
47 fieldLabel: 'Fertig'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
48 },
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
49 {
181
062aa9001eb6 Completed Messwertelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 179
diff changeset
50 xtype: 'testdatensatz',
174
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
51 name: 'geplant',
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
52 fieldLabel: 'Geplant'
b0dcaaadb079 Added basic fields for Messungen.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 108
diff changeset
53 }
108
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
54 ];
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
55 this.callParent();
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
56 }
6c69bbb61c65 Added Forms to add Messungen
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
57 });

http://lada.wald.intevation.org