annotate app/view/proben/EditForm.js @ 540:99e738c17b81

Add detail button to tables
author Roland Geider <roland.geider@intevation.de>
date Wed, 17 Dec 2014 16:59:45 +0100
parents 91a1a88ee353
children 0a948bb99b60
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,
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
70 width: '47%',
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
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',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
76 labelWidth: 135,
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
77 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
78 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
79 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
80 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
81 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
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 }, {
66f3c5d258e2 Added save and discard 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 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
86 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
87 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
88 fieldLabel: 'Hauptprobennr.',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
89 labelWidth: 135,
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
90 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
91 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
92 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
93 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
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 }]
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 border: 0,
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
99 width: '50%',
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
100 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
101 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
102 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
103 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
104 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
105 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
106 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
107 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
108 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
109 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
110 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
111 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
112 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
113 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
114 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
115 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
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 }
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 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
120 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
121 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
122 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
123 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
124 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
125 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
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 }
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 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
130 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
131 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
132 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
133 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
134 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
135 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
136 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
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 }
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 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
141 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
142 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
143 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
144 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
145 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
146 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
147 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
148 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
149 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
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 }
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 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
154 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
155 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
156 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
157 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
158 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
159 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
160 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
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 }
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 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
165 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
166 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
167 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
168 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
169 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
170 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
171 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
172 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
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 }
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 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
177 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
178 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
179 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
180 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
181 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
182 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
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 }]
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 // 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
190 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
191 title: 'Medium',
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
192 items: [{
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
193 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
194 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
195 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
196 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
197 },
66f3c5d258e2 Added save and discard 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 width: '100%',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
199 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
200 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
201 name: 'media',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
202 labelWidth: 125,
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
203 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
204 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
205 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
206 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
207 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
208 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
209 }
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
210 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
211 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
212 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
213 name: 'mediaDesk',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
214 labelWidth: 125,
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
215 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
216 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
217 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
218 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
219 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
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 }
66f3c5d258e2 Added save and discard 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 }, {
66f3c5d258e2 Added save and discard 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 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
224 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
225 fieldLabel: 'Umweltbereich',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
226 labelWidth: 125,
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
227 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
228 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
229 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
230 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
231 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
232 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
233 }
66f3c5d258e2 Added save and discard 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 }, {
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
235 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
236 title: 'Details Deskriptoren',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
237 collapsible: true,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
238 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
239 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
240 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
241 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
242 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
243 },
66f3c5d258e2 Added save and discard 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 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
245 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
246 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
247 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
248 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
249 }
66f3c5d258e2 Added save and discard buttons to proben header fields and listen to changes to enable or disable buttons.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
250 }
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
251 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
252 }]
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
253 }, {
66f3c5d258e2 Added save and discard 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 // 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 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
256 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
257 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
258 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
259 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
260 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
261 },
66f3c5d258e2 Added save and discard 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 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
263 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
264 margin: '0, 10, 5, 0',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
265 labelWidth: 125,
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
266 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
267 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
268 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
269 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
270 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
271 }
66f3c5d258e2 Added save and discard 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 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
275 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
276 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
277 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
278 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
279 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
280 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
281 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
282 }
66f3c5d258e2 Added save and discard 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 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
286 margin: '0, 10, 5, 0',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 519
diff changeset
287 labelWidth: 125,
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
288 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
289 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
290 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
291 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
292 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
293 }
66f3c5d258e2 Added save and discard 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 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
297 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
298 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
299 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
300 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
301 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
302 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
303 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
304 }
66f3c5d258e2 Added save and discard 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 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
307 }]
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
308 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
309 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
310 // Ortsangaben
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
311 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
312 title: 'Ortsangaben',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
313 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
314 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
315 xtype: 'ortelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
316 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
317 }]
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 // Probenzusatzwerte
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
320 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
321 title: 'Probenzusatzwerte',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
322 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
323 collapsed: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
324 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
325 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
326 xtype: 'zusatzwertelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
327 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
328 }]
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 // Probenkommentar
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
331 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
332 title: 'Probenkommentare',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
333 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
334 collapsed: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
335 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
336 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
337 xtype: 'kommentarelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
338 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
339 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
340 }, {
160
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
341 // Messungsangaben
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
342 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
343 title: 'Messungsangaben',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
344 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
345 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
346 xtype: 'messungenlist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
347 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
348 }]
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 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
351 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
352
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
353 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
354 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
355 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
356 fields[i] = {
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
357 fieldLabel: 'S' + i,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
358 name: 's' + i,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
359 labelWidth: 25,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
360 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
361 };
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
362 }
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 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
364 }
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 });

http://lada.wald.intevation.org