annotate app/view/proben/CreateForm.js @ 505:5d958fb1dd26

Refactored proben create window layout. (LSB 3.8)
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 12 Dec 2014 12:19:49 +0100
parents c1b77fb96b01
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 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',
497
7c0653e8d9f7 Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 491
diff changeset
25
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 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
27 this.items = [{
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
28 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
29 title: 'Probenangaben',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
30 defaults: {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
31 labelWidth: 150
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
32 },
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
33 items: [{
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
34 layout: 'hbox',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
35 border: 0,
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
36 items: [{
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
37 border: 0,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
38 width: '43%',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
39 minWidth: 290,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
40 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
41 xtype: 'mst',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
42 name: 'mstId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
43 fieldLabel: 'Messstelle',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
44 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
45 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
46 xtype: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
47 name: 'hauptprobenNr',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
48 maxLength: 20,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
49 fieldLabel: 'Hauptprobennr.'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
50 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
51 }, {
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
52 border: 0,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
53 width: '52%',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
54 minWidth: 300,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
55 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
56 xtype: 'fieldset',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
57 title: 'Erweiterte Probenangaben',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
58 collapsible: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
59 collapsed: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
60 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
61 xtype: 'datenbasis',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
62 id: 'datenbasis',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
63 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
64 name: 'datenbasisId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
65 fieldLabel: 'Datenbasis'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
66 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
67 xtype: 'betriebsart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
68 name: 'baId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
69 fieldLabel: 'Betriebsart'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
70 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
71 xtype: 'testdatensatz',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
72 name: 'test',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
73 fieldLabel: 'Testdatensatz',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
74 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
75 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
76 xtype: 'probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
77 id: 'probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
78 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
79 name: 'probenartId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
80 fieldLabel: 'Probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
81 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
82 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
83 xtype: 'numberfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
84 allowDecimals: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
85 name: 'probeNehmerId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
86 fieldLabel: 'Probennehmer'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
87 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
88 xtype: 'netzbetreiber',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
89 name: 'netzbetreiberId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
90 fieldLabel: 'Netzbetreiber',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
91 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
92 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
93 }]
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
94 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
95 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
96 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
97 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
98 // Medium
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
99 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
100 title: 'Medium',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
101 defaults: {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
102 labelWidth: 150
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
103 },
491
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',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
114 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
115 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
116 xtype: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
117 maxLength: 100,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
118 name: 'media',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
119 fieldLabel: 'Medienbezeichnung'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
120 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
121 xtype: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
122 maxLength: 100,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
123 name: 'mediaDesk',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
124 fieldLabel: 'Deskriptoren'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
125 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
126 xtype: 'fieldset',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
127 title: 'Details Deskriptoren',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
128 collapsible: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
129 collapsed: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
130 defaultType: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
131 layout: {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
132 type: 'table',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
133 columns: 3
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
134 },
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
135 items: this.buildDescriptors()
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
136 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
137 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
138 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
139 // Zeit
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
140 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
141 title: 'Zeit',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
142 defaultType: 'datetime',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
143 defaults: {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
144 labelWidth: 150
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
145 },
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',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
152 name: 'probeentnahmeBeginn'
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
153 }, {
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
154 fieldLabel: 'Sollzeit Von',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
155 name: 'solldatumBeginn'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
156 }, {
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
157 fieldLabel: 'Probennahme Ende',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
158 name: 'probeentnahmeEnde'
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
159 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
160 fieldLabel: 'Sollzeit Bis',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
161 name: 'solldatumEnde'
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
162 }]
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
163 }];
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
164 this.callParent(arguments);
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
165 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
166
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
167 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
168 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
169 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
170 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
171 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
172 };
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
173 }
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
174 return fields;
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
175 }
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
176 });

http://lada.wald.intevation.org