annotate app/view/proben/EditForm.js @ 504:44e054626bdd

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

http://lada.wald.intevation.org