annotate app/view/messungen/EditForm.js @ 521:7a20e3054c9e

Rename button to 'Details'
author Roland Geider <roland.geider@intevation.de>
date Tue, 16 Dec 2014 14:50:30 +0100
parents ae8582b4f207
children 97a428548a24
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
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
472
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',
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
14
231
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 ],
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
22
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
23 model: 'Lada.model.Messung',
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
24 minWidth: 650,
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
25
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 initComponent: function() {
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
27 this.items = [{
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
28 xtype: 'fieldset',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
29 title: 'Allgemein',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
30 items: [{
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
31 layout: {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
32 type: 'table',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
33 columns: 2
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
34 },
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
35 border: 0,
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
36 items: [{
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
37 xtype: 'textfield',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
38 name: 'nebenprobenNr',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
39 maxLength: 10,
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
40 margin: '0, 10, 5, 0',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
41 fieldLabel: 'Nebenprobennr.'
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
42 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
43 xtype: 'messmethode',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
44 name: 'mmtId',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
45 margin: '0, 10, 5, 0',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
46 fieldLabel: 'Messmethode'
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
47 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
48 xtype: 'datetime',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
49 name: 'messzeitpunkt',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
50 margin: '0, 10, 5, 0',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
51 fieldLabel: 'Messzeitpunkt'
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
52 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
53 xtype: 'numberfield',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
54 allowDecimals: false,
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
55 minValue: 0,
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
56 name: 'messdauer',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
57 margin: '0, 10, 5, 0',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
58 fieldLabel: 'Messdauer'
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
59 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
60 xtype: 'testdatensatz',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
61 name: 'fertig',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
62 margin: '0, 10, 5, 0',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
63 fieldLabel: 'Fertig'
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
64 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
65 xtype: 'testdatensatz',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
66 name: 'geplant',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
67 margin: '0, 10, 5, 0',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
68 fieldLabel: 'Geplant'
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
69 }]
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
70 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
71 }, {
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
72 // Messwerte
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
73 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
74 title: 'Messwerte',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
75 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
76 collapsed: false,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
77 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
78 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
79 xtype: 'messwertelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
80 parentId: this.model.get('messungsId'),
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
81 probeId: this.model.get('probeId')
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
82 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
83 }, {
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
84 // Status
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
85 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
86 title: 'Messungsstatus',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
87 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
88 collapsed: false,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
89 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
90 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
91 xtype: 'statuslist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
92 parentId: this.model.get('messungsId'),
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
93 probeId: this.model.get('probeId')
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
94 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
95 }, {
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
96 // Messungskommentare
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
97 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
98 title: 'Messungskommentare',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
99 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
100 collapsed: false,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
101 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
102 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
103 xtype: 'mkommentarelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
104 parentId: this.model.get('messungsId'),
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
105 probeId: this.model.get('probeId')
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
106 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
107 }];
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
108 this.callParent(arguments);
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
109 }
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
110 });

http://lada.wald.intevation.org