comparison app/controller/grid/Ortszuordnung.js @ 1013:75ce503ab296 stammdatengrids

Added a Ortszuordnungwindow and Form
author Dustin Demuth <dustin@intevation.de>
date Tue, 26 Jan 2016 12:29:59 +0100
parents 2adc329d90fe
children 6d33a84979e4
comparison
equal deleted inserted replaced
1012:2adc329d90fe 1013:75ce503ab296
11 */ 11 */
12 Ext.define('Lada.controller.grid.Ortszuordnung', { 12 Ext.define('Lada.controller.grid.Ortszuordnung', {
13 extend: 'Ext.app.Controller', 13 extend: 'Ext.app.Controller',
14 14
15 requires: [ 15 requires: [
16 'Lada.view.window.OrtEdit', 16 'Lada.view.window.Ortszuordnung',
17 'Lada.view.window.OrtCreate'
18 ], 17 ],
19 18
20 /** 19 /**
21 * Inhitialize the controller 20 * Inhitialize the controller
22 * It has 3 listeners 21 * It has 3 listeners
34 } 33 }
35 }); 34 });
36 }, 35 },
37 36
38 /** 37 /**
39 * When open is called, a {@link Lada.view.window.OrtEdit} 38 * When open is called, a {@link Lada.view.window.Ortszuordnung}
40 * is created which allows to edit the Orte 39 * is created which allows to edit the Orte
41 */ 40 */
42 open: function(grid, record) { 41 open: function(grid, record) {
43 var probe = grid.up('window').record; 42 var probe = grid.up('window').record;
44 var win = Ext.create('Lada.view.window.OrtEdit', { 43 var win = Ext.create('Lada.view.window.Ortszuordnung', {
45 parentWindow: grid.up('window'), 44 parentWindow: grid.up('window'),
46 probe: probe, 45 probe: grid.up('window').down('probeform').record,
47 record: record, 46 record: record,
48 grid: grid 47 grid: grid
49 }); 48 });
50 win.show(); 49 win.show();
51 win.initData(); 50 win.initData();
54 /** 53 /**
55 * This function adds a new row to add an Ort 54 * This function adds a new row to add an Ort
56 */ 55 */
57 add: function(button) { 56 add: function(button) {
58 var probe = button.up('window').record; 57 var probe = button.up('window').record;
59 var win = Ext.create('Lada.view.window.OrtCreate', { 58 var win = Ext.create('Lada.view.window.Ortszuordnung', {
60 record: probe, 59 parentWindow: button.up('window'),
60 probe: probe,
61 record: null,
61 grid: button.up('ortszuordnung') 62 grid: button.up('ortszuordnung')
62 }); 63 });
63 win.show(); 64 win.show();
64 win.initData(); 65 win.initData();
65 }, 66 },

http://lada.wald.intevation.org