Mercurial > lada > lada-client
annotate app/view/messungen/EditForm.js @ 476:584003637a6b
Texte zwischen README und INSTALL verschoben
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 20 Jan 2014 15:16:14 +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 edit a Messung |
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
278
diff
changeset
|
11 */ |
231
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.view.messungen.EditForm', { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 extend: 'Lada.view.widgets.LadaForm', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 model: 'Lada.model.Messung', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 requires: [ |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 'Lada.view.widgets.Messmethode', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 'Lada.view.widgets.Testdatensatz', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 'Lada.view.mkommentare.List', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 'Lada.view.status.List', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 'Lada.view.messwerte.List' |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 ], |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 initComponent: function() { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 this.items = [ |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 xtype: 'textfield', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 name: 'nebenprobenNr', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 maxLength: 10, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 fieldLabel: 'NPR' |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 }, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 xtype: 'messmethode', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 name: 'mmtId', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 fieldLabel: 'MMT' |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 }, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 { |
276
dee3e54a61b1
Use datetimepicker for all datefields
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
231
diff
changeset
|
36 xtype: 'datetime', |
231
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 name: 'messzeitpunkt', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 fieldLabel: 'Messzeitpunkt' |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
39 }, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
40 { |
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
|
41 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
|
42 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
|
43 minValue: 0, |
231
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
44 name: 'messdauer', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
45 fieldLabel: 'Messdauer' |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
46 }, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
47 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
48 xtype: 'testdatensatz', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
49 name: 'fertig', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
50 fieldLabel: 'Fertig' |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
51 }, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
52 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
53 xtype: 'testdatensatz', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
54 name: 'geplant', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
55 fieldLabel: 'Geplant' |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
56 }, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
57 // Messwerte |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
58 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
59 xtype: 'fieldset', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
60 title: 'Messwerte', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
61 collapsible: true, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
62 collapsed: false, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
63 padding: '10 10', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
64 items: [ |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
65 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
66 xtype: 'messwertelist', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
67 parentId: this.model.get('messungsId'), |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
68 probeId: this.model.get('probeId') |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
69 } |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
70 ] |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
71 }, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
72 // Status |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
73 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
74 xtype: 'fieldset', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
75 title: 'Messungsstatus', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
76 collapsible: true, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
77 collapsed: false, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
78 padding: '10 10', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
79 items: [ |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
80 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
81 xtype: 'statuslist', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
82 parentId: this.model.get('messungsId'), |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
83 probeId: this.model.get('probeId') |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
84 } |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
85 ] |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
86 }, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
87 // Messungskommentare |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
88 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
89 xtype: 'fieldset', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
90 title: 'Messungskommentare', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
91 collapsible: true, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
92 collapsed: false, |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
93 padding: '10 10', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
94 items: [ |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
95 { |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
96 xtype: 'mkommentarelist', |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
97 parentId: this.model.get('messungsId'), |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
98 probeId: this.model.get('probeId') |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
99 } |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
100 ] |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
101 } |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
102 ]; |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
103 this.callParent(); |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
104 } |
edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
105 }); |