Mercurial > lada > lada-client
annotate app/view/proben/Create.js @ 522:de1acaf21db3
Add detail button for 'Orte' table
See LSB 3.5
author | Roland Geider <roland.geider@intevation.de> |
---|---|
date | Tue, 16 Dec 2014 15:58:43 +0100 |
parents | 5d958fb1dd26 |
children | 91a1a88ee353 |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
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:
422
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
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:
422
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:
422
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
422
diff
changeset
|
8 |
348
6007d11b81c2
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
9 /* |
6007d11b81c2
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
10 * Window to create a Probe |
6007d11b81c2
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
271
diff
changeset
|
11 */ |
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.view.proben.Create', { |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.window.Window', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 alias: 'widget.probencreate', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 |
498
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
16 requires: [ |
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
17 'Lada.view.proben.CreateForm' |
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
18 ], |
c1b77fb96b01
Have consistent requires in classes.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
497
diff
changeset
|
19 |
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 title: 'Maske für §3-Proben', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 autoShow: true, |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 autoScroll: true, |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 modal: true, |
505
5d958fb1dd26
Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
24 layout: 'fit', |
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 |
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 initComponent: function() { |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
479
diff
changeset
|
27 this.buttons = [{ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
479
diff
changeset
|
28 text: 'Speichern', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
479
diff
changeset
|
29 action: 'save' |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
479
diff
changeset
|
30 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
479
diff
changeset
|
31 text: 'Abbrechen', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
479
diff
changeset
|
32 scope: this, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
479
diff
changeset
|
33 handler: this.close |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
479
diff
changeset
|
34 }]; |
505
5d958fb1dd26
Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
35 this.width = 700; |
271
11f8a2c1b610
Added Cancel Button to all Windows. Changed order howthe form is initialized.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
270
diff
changeset
|
36 var form = Ext.create('Lada.view.proben.CreateForm'); |
505
5d958fb1dd26
Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
37 this.items = [{ |
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 autoScroll: true, |
5d958fb1dd26
Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
40 items: [form] |
5d958fb1dd26
Refactored proben create window layout. (LSB 3.8)
Raimund Renkert <raimund.renkert@intevation.de>
parents:
498
diff
changeset
|
41 }]; |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
42 this.callParent(arguments); |
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 } |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
44 }); |