annotate app/view/proben/EditForm.js @ 508:ae8582b4f207

Refactored messung edit window layout (LSB 3.8).
author Raimund Renkert <raimund.renkert@intevation.de>
date Sat, 13 Dec 2014 14:11:43 +0100
parents 2b5aa0e6e641
children 66f3c5d258e2
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() {
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
32 this.items = [{
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
33 xtype: 'fieldset',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
34 title: 'Allgemein',
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
35 defaults: {
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
36 labelWidth: 160
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
37 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
38 items: [{
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
39 layout: 'hbox',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
40 border: 0,
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
41 items: [{
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
42 border: 0,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
43 width: '43%',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
44 minWidth: 290,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
45 items: [{
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
46 xtype: 'mst',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
47 name: 'mstId',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
48 fieldLabel: 'Messstelle',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
49 allowBlank: false
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
50 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
51 xtype: 'textfield',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
52 name: 'hauptprobenNr',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
53 maxLength: 20,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
54 fieldLabel: 'Hauptprobennr.'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
55 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
56 }, {
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
57 border: 0,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
58 width: '52%',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
59 minWidth: 300,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
60 items: [{
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
61 xtype: 'fieldset',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
62 title: 'Erweiterte Angaben',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
63 collapsible: true,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
64 collapsed: true,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
65 items: [{
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
66 xtype: 'datenbasis',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
67 id: 'datenbasis',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
68 editable: false,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
69 name: 'datenbasisId',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
70 fieldLabel: 'Datenbasis'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
71 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
72 xtype: 'betriebsart',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
73 name: 'baId',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
74 fieldLabel: 'Betriebsart'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
75 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
76 xtype: 'testdatensatz',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
77 name: 'test',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
78 fieldLabel: 'Testdatensatz',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
79 allowBlank: false
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
80 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
81 xtype: 'probenart',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
82 id: 'probenart',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
83 editable: false,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
84 name: 'probenartId',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
85 fieldLabel: 'Probenart',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
86 allowBlank: false
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
87 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
88 xtype: 'numberfield',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
89 allowDecimals: false,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
90 name: 'probeNehmerId',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
91 fieldLabel: 'Probennehmer'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
92 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
93 xtype: 'netzbetreiber',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
94 name: 'netzbetreiberId',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
95 editable: false,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
96 fieldLabel: 'Netzbetreiber',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
97 allowBlank: false
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
98 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
99 xtype: 'textfield',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
100 name: 'x11',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
101 fieldLabel: 'Datensatzerzeuger'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
102 }]
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
103 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
104 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
105 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
106 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
107 // Medium
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
108 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
109 title: 'Medium',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
110 items: [{
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
111 border: 0,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
112 layout: {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
113 type: 'vbox',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
114 align: 'stretch'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
115 },
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
116 width: '100%',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
117 items: [{
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
118 xtype: 'textfield',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
119 name: 'media',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
120 labelWidth: 110,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
121 fieldLabel: 'Medienbezeichnung'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
122 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
123 xtype: 'textfield',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
124 maxLength: 100,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
125 name: 'mediaDesk',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
126 labelWidth: 110,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
127 fieldLabel: 'Deskriptoren'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
128 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
129 xtype: 'uwb',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
130 name: 'umwId',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
131 fieldLabel: 'Umweltbereich',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
132 labelWidth: 110,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
133 allowBlank: false
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
134 }, {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
135 xtype: 'fieldset',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
136 title: 'Details Deskriptoren',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
137 collapsible: true,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
138 collapsed: true,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
139 defaultType: 'textfield',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
140 layout: {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
141 type: 'table',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
142 columns: 3
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
143 },
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
144 items: this.buildDescriptors()
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
145 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
146 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
147 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
148 // Zeit
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
149 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
150 title: 'Zeit',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
151 defaultType: 'datetime',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
152 defaults: {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
153 labelWidth: 150
160
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
154 },
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
155 layout: {
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
156 type: 'table',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
157 columns: 2
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
158 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
159 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
160 fieldLabel: 'Probennahme Beginn',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
161 margin: '0, 10, 5, 0',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
162 labelWidth: 130,
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
163 name: 'probeentnahmeBeginn'
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
164 }, {
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
165 fieldLabel: 'Sollzeit Von',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
166 margin: '0, 10, 5, 0',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
167 labelWidth: 100,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
168 name: 'solldatumBeginn'
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
169 }, {
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
170 fieldLabel: 'Probennahme Ende',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
171 margin: '0, 10, 5, 0',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
172 labelWidth: 130,
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
173 name: 'probeentnahmeEnde'
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
174 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
175 fieldLabel: 'Sollzeit Bis',
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
176 margin: '0, 10, 5, 0',
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
177 labelWidth: 100,
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
178 name: 'solldatumEnde'
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
179 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
180 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
181 // Ortsangaben
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
182 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
183 title: 'Ortsangaben',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
184 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
185 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
186 xtype: 'ortelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
187 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
188 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
189 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
190 // Probenzusatzwerte
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
191 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
192 title: 'Probenzusatzwerte',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
193 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
194 collapsed: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
195 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
196 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
197 xtype: 'zusatzwertelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
198 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
199 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
200 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
201 // Probenkommentar
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
202 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
203 title: 'Probenkommentare',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
204 collapsible: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
205 collapsed: true,
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
206 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
207 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
208 xtype: 'kommentarelist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
209 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
210 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
211 }, {
160
c932b0b41d2a Reenabled Messungen in ProbenEdit.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 154
diff changeset
212 // Messungsangaben
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
213 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
214 title: 'Messungsangaben',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
215 padding: '10 10',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
216 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
217 xtype: 'messungenlist',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
218 probeId: this.modelId
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
219 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
220 }];
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
221 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
222 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
223
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
224 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
225 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
226 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
227 fields[i] = {
503
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
228 fieldLabel: 'S' + i,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
229 name: 's' + i,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
230 labelWidth: 25,
369917727c86 Refactored proben edit window.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
231 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
232 };
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
233 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
234 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
235 }
db26aeebe521 Added new Form for editing proben. Use this form in the edit window.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
236 });

http://lada.wald.intevation.org