annotate app/view/messungen/EditForm.js @ 546:43951e42590c

Added tag mockup-1.1 for changeset 7c9475119861
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 18 Dec 2014 16:52:45 +0100
parents 97a428548a24
children
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() {
518
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
27 var me = this;
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
28 this.items = [{
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
29 xtype: 'fieldset',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
30 title: 'Allgemein',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
31 items: [{
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
32 layout: {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
33 type: 'table',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
34 columns: 2
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
35 },
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
36 border: 0,
518
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
37 margin: '0, 0, 10, 0',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
38 dockedItems: [{
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
39 xtype: 'toolbar',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
40 dock: 'bottom',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
41 border: '0, 1, 1, 1',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
42 style: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
43 borderBottom: '1px solid #b5b8c8 !important',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
44 borderLeft: '1px solid #b5b8c8 !important',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
45 borderRight: '1px solid #b5b8c8 !important'
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
46 },
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
47 items: ['->', {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
48 text: 'Speichern',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
49 qtip: 'Daten speichern',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
50 icon: 'gfx/dialog-ok-apply.png',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
51 action: 'save',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
52 scope: me,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
53 handler: this.commit
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
54 }, {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
55 text: 'Verwerfen',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
56 qtip: 'Ă„nderungen verwerfen',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
57 icon: 'gfx/dialog-cancel.png',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
58 action: 'discard',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
59 disabled: true,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
60 scope: me,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
61 handler: this.reset
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
62 }]
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
63 }],
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
64 items: [{
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
65 xtype: 'textfield',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
66 name: 'nebenprobenNr',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
67 maxLength: 10,
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
68 margin: '0, 10, 5, 0',
518
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
69 fieldLabel: 'Nebenprobennr.',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
70 listeners: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
71 dirtychange: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
72 fn: this.updateOnChange,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
73 scope: me
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
74 }
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
75 }
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
76 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
77 xtype: 'messmethode',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
78 name: 'mmtId',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
79 margin: '0, 10, 5, 0',
518
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
80 fieldLabel: 'Messmethode',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
81 listeners: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
82 dirtychange: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
83 fn: this.updateOnChange,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
84 scope: me
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
85 }
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
86 }
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
87 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
88 xtype: 'datetime',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
89 name: 'messzeitpunkt',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
90 margin: '0, 10, 5, 0',
518
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
91 fieldLabel: 'Messzeitpunkt',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
92 listeners: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
93 dirtychange: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
94 fn: this.updateOnChange,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
95 scope: me
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
96 }
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
97 }
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
98 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
99 xtype: 'numberfield',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
100 allowDecimals: false,
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
101 minValue: 0,
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
102 name: 'messdauer',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
103 margin: '0, 10, 5, 0',
518
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
104 fieldLabel: 'Messdauer',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
105 listeners: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
106 dirtychange: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
107 fn: this.updateOnChange,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
108 scope: me
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
109 }
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
110 }
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
111 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
112 xtype: 'testdatensatz',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
113 name: 'fertig',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
114 margin: '0, 10, 5, 0',
518
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
115 fieldLabel: 'Fertig',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
116 listeners: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
117 dirtychange: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
118 fn: this.updateOnChange,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
119 scope: me
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
120 }
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
121 }
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
122 }, {
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
123 xtype: 'testdatensatz',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
124 name: 'geplant',
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
125 margin: '0, 10, 5, 0',
518
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
126 fieldLabel: 'Geplant',
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
127 listeners: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
128 dirtychange: {
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
129 fn: this.updateOnChange,
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
130 scope: me
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
131 }
97a428548a24 Added save and discard button to messung edit head and listen for change event to enable/disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 508
diff changeset
132 }
508
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
133 }]
ae8582b4f207 Refactored messung edit window layout (LSB 3.8).
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
134 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
135 }, {
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
136 // Messwerte
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
137 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
138 title: 'Messwerte',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
139 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
140 collapsed: false,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
141 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
142 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
143 xtype: 'messwertelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
144 parentId: this.model.get('messungsId'),
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
145 probeId: this.model.get('probeId')
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
146 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
147 }, {
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
148 // Status
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
149 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
150 title: 'Messungsstatus',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
151 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
152 collapsed: false,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
153 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
154 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
155 xtype: 'statuslist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
156 parentId: this.model.get('messungsId'),
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
157 probeId: this.model.get('probeId')
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
158 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
159 }, {
231
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
160 // Messungskommentare
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
161 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
162 title: 'Messungskommentare',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
163 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
164 collapsed: false,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
165 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
166 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
167 xtype: 'mkommentarelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
168 parentId: this.model.get('messungsId'),
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
169 probeId: this.model.get('probeId')
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
170 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
171 }];
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
172 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
173 }
edb2b636319f Modified create dialogs to only contain fields to create a messung (without,
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
174 });

http://lada.wald.intevation.org