annotate app/view/proben/CreateForm.js @ 510:1643d74a40bb

Make tables editable for 'Orte' See LSB 3.5
author Roland Geider <roland.geider@intevation.de>
date Mon, 15 Dec 2014 10:49:40 +0100
parents 2b5aa0e6e641
children 91a1a88ee353
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: {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
32 labelWidth: 150
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',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
44 fieldLabel: 'Messstelle',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
45 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
46 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
47 xtype: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
48 name: 'hauptprobenNr',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
49 maxLength: 20,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
50 fieldLabel: 'Hauptprobennr.'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
51 }]
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
52 }, {
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
53 border: 0,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
54 width: '52%',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
55 minWidth: 300,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
56 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
57 xtype: 'fieldset',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
58 title: 'Erweiterte Probenangaben',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
59 collapsible: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
60 collapsed: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
61 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
62 xtype: 'datenbasis',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
63 id: 'datenbasis',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
64 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
65 name: 'datenbasisId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
66 fieldLabel: 'Datenbasis'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
67 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
68 xtype: 'betriebsart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
69 name: 'baId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
70 fieldLabel: 'Betriebsart'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
71 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
72 xtype: 'testdatensatz',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
73 name: 'test',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
74 fieldLabel: 'Testdatensatz',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
75 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
76 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
77 xtype: 'probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
78 id: 'probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
79 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
80 name: 'probenartId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
81 fieldLabel: 'Probenart',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
82 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
83 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
84 xtype: 'numberfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
85 allowDecimals: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
86 name: 'probeNehmerId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
87 fieldLabel: 'Probennehmer'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
88 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
89 xtype: 'netzbetreiber',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
90 name: 'netzbetreiberId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
91 fieldLabel: 'Netzbetreiber',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
92 editable: false,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
93 allowBlank: false
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
94 }]
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
95 }]
491
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 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
99 // Medium
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
100 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
101 title: 'Medium',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
102 defaults: {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
103 labelWidth: 150
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
104 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
105 items: [{
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
106 border: 0,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
107 layout: {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
108 type: 'vbox',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
109 align: 'stretch'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
110 },
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
111 items: [{
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
112 xtype: 'uwb',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
113 name: 'umwId',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
114 fieldLabel: 'Umweltbereich',
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',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
120 fieldLabel: 'Medienbezeichnung'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
121 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
122 xtype: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
123 maxLength: 100,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
124 name: 'mediaDesk',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
125 fieldLabel: 'Deskriptoren'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
126 }, {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
127 xtype: 'fieldset',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
128 title: 'Details Deskriptoren',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
129 collapsible: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
130 collapsed: true,
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
131 defaultType: 'textfield',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
132 layout: {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
133 type: 'table',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
134 columns: 3
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
135 },
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
136 items: this.buildDescriptors()
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
137 }]
491
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 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
140 // Zeit
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
141 xtype: 'fieldset',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
142 title: 'Zeit',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
143 defaultType: 'datetime',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
144 defaults: {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
145 labelWidth: 150
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
146 },
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
147 layout: {
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
148 type: 'table',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
149 columns: 2
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
150 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
151 items: [{
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
152 fieldLabel: 'Probennahme Beginn',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
153 name: 'probeentnahmeBeginn'
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
154 }, {
505
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
155 fieldLabel: 'Sollzeit Von',
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
156 name: 'solldatumBeginn'
5d958fb1dd26 Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents: 498
diff changeset
157 }, {
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
158 fieldLabel: 'Probennahme Ende',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
159 name: 'probeentnahmeEnde'
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
160 }, {
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
161 fieldLabel: 'Sollzeit Bis',
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
162 name: 'solldatumEnde'
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 }];
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
165 this.callParent(arguments);
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
166 },
491
850ccfe5f3c4 Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 472
diff changeset
167
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
168 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
169 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
170 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
171 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
172 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
173 };
67
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
174 }
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
175 return fields;
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
176 }
7ea76e760fc2 Added CreateForm for proben
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
177 });

http://lada.wald.intevation.org