annotate app/view/proben/EditForm.js @ 528:8b4ec83ddca3

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 16 Dec 2014 18:28:58 +0100
parents 48593a6181c9
children 91a1a88ee353
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
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: 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 edit a Probe
6007d11b81c2 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 278
diff changeset
11 */
268
a191ab267e5f Fixed Syntax.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 267
diff changeset
12 Ext.define('Lada.view.proben.EditForm', {
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 extend: 'Lada.view.widgets.LadaForm',
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
14 alias: 'widget.probeneditform',
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: 106
diff changeset
15 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: 106
diff changeset
16 '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: 106
diff changeset
17 '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: 106
diff changeset
18 '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: 106
diff changeset
19 '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: 106
diff changeset
20 'Lada.view.widgets.Probenart',
122
a7bfaeb1655d Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 121
diff changeset
21 'Lada.view.widgets.Uwb',
144
7b1140bd8b3d Re-Added Kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 128
diff changeset
22 'Lada.view.zusatzwerte.List',
150
13869814cdb8 Renabled ortelist
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 144
diff changeset
23 'Lada.view.kommentare.List',
160
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
24 'Lada.view.orte.List',
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
25 'Lada.view.messungen.List'
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: 106
diff changeset
26 ],
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
27
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 model: 'Lada.model.Probe',
506
2b5aa0e6e641 Moved min width from lada form superclass to concrete form classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 503
diff changeset
29 minWidth: 650,
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 initComponent: function() {
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
32 var me = this;
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
33 this.items = [{
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
34 xtype: 'fieldset',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
35 title: 'Allgemein',
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
36 items: [{
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
37 border: 0,
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
38 margin: '0, 0, 10, 0',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
39 dockedItems: [{
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
40 xtype: 'toolbar',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
41 dock: 'bottom',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
42 border: '0, 1, 1, 1',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
43 style: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
44 borderBottom: '1px solid #b5b8c8 !important',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
45 borderLeft: '1px solid #b5b8c8 !important',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
46 borderRight: '1px solid #b5b8c8 !important'
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
47 },
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
48 items: ['->', {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
49 text: 'Speichern',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
50 qtip: 'Daten speichern',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
51 icon: 'gfx/dialog-ok-apply.png',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
52 action: 'save',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
53 scope: me,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
54 handler: this.commit
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
55 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
56 text: 'Verwerfen',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
57 qtip: 'Ă„nderungen verwerfen',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
58 icon: 'gfx/dialog-cancel.png',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
59 action: 'discard',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
60 disabled: true,
519
48593a6181c9 minor scope fix.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 515
diff changeset
61 scope: me,
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
62 handler: this.reset
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
63 }]
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
64 }],
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
65 items: [{
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
66 layout: 'hbox',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
67 border: 0,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
68 items: [{
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
69 border: 0,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
70 width: '43%',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
71 minWidth: 290,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
72 items: [{
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
73 xtype: 'mst',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
74 name: 'mstId',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
75 fieldLabel: 'Messstelle',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
76 allowBlank: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
77 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
78 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
79 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
80 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
81 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
82 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
83 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
84 xtype: 'textfield',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
85 name: 'hauptprobenNr',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
86 maxLength: 20,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
87 fieldLabel: 'Hauptprobennr.',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
88 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
89 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
90 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
91 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
92 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
93 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
94 }]
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
95 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
96 border: 0,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
97 width: '52%',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
98 minWidth: 300,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
99 items: [{
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
100 xtype: 'fieldset',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
101 title: 'Erweiterte Angaben',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
102 collapsible: true,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
103 collapsed: true,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
104 items: [{
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
105 xtype: 'datenbasis',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
106 id: 'datenbasis',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
107 editable: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
108 name: 'datenbasisId',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
109 fieldLabel: 'Datenbasis',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
110 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
111 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
112 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
113 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
114 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
115 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
116 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
117 xtype: 'betriebsart',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
118 name: 'baId',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
119 fieldLabel: 'Betriebsart',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
120 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
121 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
122 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
123 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
124 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
125 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
126 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
127 xtype: 'testdatensatz',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
128 name: 'test',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
129 fieldLabel: 'Testdatensatz',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
130 allowBlank: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
131 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
132 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
133 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
134 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
135 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
136 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
137 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
138 xtype: 'probenart',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
139 id: 'probenart',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
140 editable: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
141 name: 'probenartId',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
142 fieldLabel: 'Probenart',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
143 allowBlank: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
144 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
145 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
146 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
147 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
148 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
149 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
150 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
151 xtype: 'numberfield',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
152 allowDecimals: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
153 name: 'probeNehmerId',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
154 fieldLabel: 'Probennehmer',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
155 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
156 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
157 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
158 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
159 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
160 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
161 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
162 xtype: 'netzbetreiber',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
163 name: 'netzbetreiberId',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
164 editable: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
165 fieldLabel: 'Netzbetreiber',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
166 allowBlank: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
167 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
168 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
169 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
170 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
171 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
172 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
173 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
174 xtype: 'textfield',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
175 name: 'x11',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
176 fieldLabel: 'Datensatzerzeuger',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
177 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
178 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
179 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
180 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
181 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
182 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
183 }]
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
184 }]
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
185 }]
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
186 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
187 // Medium
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
188 xtype: 'fieldset',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
189 title: 'Medium',
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
190 items: [{
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
191 border: 0,
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
192 layout: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
193 type: 'vbox',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
194 align: 'stretch'
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
195 },
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
196 width: '100%',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
197 items: [{
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
198 xtype: 'textfield',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
199 name: 'media',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
200 labelWidth: 110,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
201 fieldLabel: 'Medienbezeichnung',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
202 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
203 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
204 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
205 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
206 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
207 }
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
208 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
209 xtype: 'textfield',
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
210 maxLength: 100,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
211 name: 'mediaDesk',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
212 labelWidth: 110,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
213 fieldLabel: 'Deskriptoren',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
214 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
215 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
216 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
217 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
218 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
219 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
220 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
221 xtype: 'uwb',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
222 name: 'umwId',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
223 fieldLabel: 'Umweltbereich',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
224 labelWidth: 110,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
225 allowBlank: false,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
226 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
227 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
228 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
229 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
230 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
231 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
232 }, {
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
233 xtype: 'fieldset',
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
234 title: 'Details Deskriptoren',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
235 collapsible: true,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
236 collapsed: true,
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
237 defaultType: 'textfield',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
238 layout: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
239 type: 'table',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
240 columns: 3
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
241 },
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
242 items: this.buildDescriptors(),
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
243 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
244 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
245 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
246 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
247 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
248 }
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
249 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
250 }]
515
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
251 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
252 // Zeit
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
253 xtype: 'fieldset',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
254 title: 'Zeit',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
255 defaultType: 'datetime',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
256 defaults: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
257 labelWidth: 150
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
258 },
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
259 layout: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
260 type: 'table',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
261 columns: 2
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
262 },
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
263 items: [{
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
264 fieldLabel: 'Probennahme Beginn',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
265 margin: '0, 10, 5, 0',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
266 labelWidth: 130,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
267 name: 'probeentnahmeBeginn',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
268 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
269 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
270 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
271 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
272 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
273 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
274 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
275 fieldLabel: 'Sollzeit Von',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
276 margin: '0, 10, 5, 0',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
277 labelWidth: 100,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
278 name: 'solldatumBeginn',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
279 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
280 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
281 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
282 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
283 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
284 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
285 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
286 fieldLabel: 'Probennahme Ende',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
287 margin: '0, 10, 5, 0',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
288 labelWidth: 130,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
289 name: 'probeentnahmeEnde',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
290 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
291 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
292 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
293 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
294 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
295 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
296 }, {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
297 fieldLabel: 'Sollzeit Bis',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
298 margin: '0, 10, 5, 0',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
299 labelWidth: 100,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
300 name: 'solldatumEnde',
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
301 listeners: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
302 dirtychange: {
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
303 fn: this.updateOnChange,
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
304 scope: me
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
305 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
306 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
307 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
308 }]
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
309 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
310 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
311 // Ortsangaben
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
312 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
313 title: 'Ortsangaben',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
314 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
315 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
316 xtype: 'ortelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
317 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
318 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
319 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
320 // Probenzusatzwerte
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
321 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
322 title: 'Probenzusatzwerte',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
323 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
324 collapsed: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
325 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
326 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
327 xtype: 'zusatzwertelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
328 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
329 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
330 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
331 // Probenkommentar
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
332 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
333 title: 'Probenkommentare',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
334 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
335 collapsed: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
336 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
337 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
338 xtype: 'kommentarelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
339 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
340 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
341 }, {
160
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
342 // Messungsangaben
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
343 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
344 title: 'Messungsangaben',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
345 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
346 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
347 xtype: 'messungenlist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
348 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
349 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
350 }];
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
351 this.callParent(arguments);
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
352 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
353
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
354 buildDescriptors: function() {
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
355 var fields = [];
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
356 for (var i = 0; i < 12; i++) {
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
357 fields[i] = {
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
358 fieldLabel: 'S' + i,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
359 name: 's' + i,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
360 labelWidth: 25,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
361 margin: '0, 10, 5, 0'
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
362 };
71
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
363 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
364 return fields;
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
365 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
366 });

http://lada.wald.intevation.org