annotate app/view/proben/CreateForm.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
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 create a Probe
6007d11b81c2 Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 278
diff changeset
11 */
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.proben.CreateForm', {
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 extend: 'Lada.view.widgets.LadaForm',
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: 91
diff changeset
14 requires: [
498
c1b77fb96b01 Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 497
diff changeset
15 'Lada.view.widgets.Mst',
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: 91
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: 91
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: 91
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: 91
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: 91
diff changeset
20 'Lada.view.widgets.Probenart',
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: 91
diff changeset
21 'Lada.view.widgets.Uwb'
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: 91
diff changeset
22 ],
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
23
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
24 model: 'Lada.model.Probe',
506
2b5aa0e6e641 Moved min width from lada form superclass to concrete form classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 505
diff changeset
25 minWidth: 650,
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
26
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 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
28 this.items = [{
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
29 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
30 title: 'Probenangaben',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
31 defaults: {
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
32 labelWidth: 160
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
33 },
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
34 items: [{
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
35 layout: 'hbox',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
36 border: 0,
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
37 items: [{
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
38 border: 0,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
39 width: '43%',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
40 minWidth: 290,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
41 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
42 xtype: 'mst',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
43 name: 'mstId',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
44 labelWidth: 125,
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
45 fieldLabel: 'Messstelle',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
46 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
47 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
48 xtype: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
49 name: 'hauptprobenNr',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
50 labelWidth: 125,
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
51 maxLength: 20,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
52 fieldLabel: 'Hauptprobennr.'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
53 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
54 }, {
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
55 border: 0,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
56 width: '52%',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
57 minWidth: 300,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
58 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
59 xtype: 'fieldset',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
60 title: 'Erweiterte Probenangaben',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
61 collapsible: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
62 collapsed: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
63 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
64 xtype: 'datenbasis',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
65 id: 'datenbasis',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
66 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
67 name: 'datenbasisId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
68 fieldLabel: 'Datenbasis'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
69 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
70 xtype: 'betriebsart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
71 name: 'baId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
72 fieldLabel: 'Betriebsart'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
73 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
74 xtype: 'testdatensatz',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
75 name: 'test',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
76 fieldLabel: 'Testdatensatz',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
77 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
78 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
79 xtype: 'probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
80 id: 'probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
81 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
82 name: 'probenartId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
83 fieldLabel: 'Probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
84 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
85 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
86 xtype: 'numberfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
87 allowDecimals: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
88 name: 'probeNehmerId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
89 fieldLabel: 'Probennehmer'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
90 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
91 xtype: 'netzbetreiber',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
92 name: 'netzbetreiberId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
93 fieldLabel: 'Netzbetreiber',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
94 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
95 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
96 }]
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
97 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
98 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
99 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
100 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
101 // Medium
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
102 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
103 title: 'Medium',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
104 items: [{
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
105 border: 0,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
106 layout: {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
107 type: 'vbox',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
108 align: 'stretch'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
109 },
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
110 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
111 xtype: 'uwb',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
112 name: 'umwId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
113 fieldLabel: 'Umweltbereich',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
114 labelWidth: 125,
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
115 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
116 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
117 xtype: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
118 maxLength: 100,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
119 name: 'media',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
120 labelWidth: 125,
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
121 fieldLabel: 'Medienbezeichnung'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
122 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
123 xtype: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
124 maxLength: 100,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
125 name: 'mediaDesk',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
126 labelWidth: 125,
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
127 fieldLabel: 'Deskriptoren'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
128 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
129 xtype: 'fieldset',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
130 title: 'Details Deskriptoren',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
131 collapsible: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
132 collapsed: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
133 defaultType: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
134 layout: {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
135 type: 'table',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
136 columns: 3
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
137 },
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
138 items: this.buildDescriptors()
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
139 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
140 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
141 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
142 // Zeit
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
143 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
144 title: 'Zeit',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
145 defaultType: 'datetime',
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
146 layout: {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
147 type: 'table',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
148 columns: 2
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
149 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
150 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
151 fieldLabel: 'Probennahme Beginn',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
152 name: 'probeentnahmeBeginn',
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
153 margin: '0, 10, 5, 0',
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
154 labelWidth: 125
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
155 }, {
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
156 fieldLabel: 'Sollzeit Von',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
157 name: 'solldatumBeginn',
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
158 margin: '0, 10, 5, 0',
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
159 labelWidth: 100
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
160 }, {
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
161 fieldLabel: 'Probennahme Ende',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
162 name: 'probeentnahmeEnde',
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
163 margin: '0, 10, 5, 0',
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
164 labelWidth: 125
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
165 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
166 fieldLabel: 'Sollzeit Bis',
532
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
167 name: 'solldatumEnde',
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
168 margin: '0, 10, 5, 0',
91a1a88ee353 some resizing and layout.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 506
diff changeset
169 labelWidth: 100
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
170 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
171 }];
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
172 this.callParent(arguments);
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
173 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
174
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
175 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
176 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
177 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
178 fields[i] = {
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
179 fieldLabel: 'S' + i, name: 's' + i
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
180 };
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
181 }
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
182 return fields;
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
183 }
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
184 });

http://lada.wald.intevation.org