Mercurial > lada > lada-client
comparison app/controller/FilterResult.js @ 759:b7484c7da2d4
Unified the Messprogramm windows. Unfortunately the Roweditor of Messmethodengrid is broken in this commit. This is due to the fact that the Mmt store is noit autoloaded anymore
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 07 May 2015 10:55:44 +0200 |
parents | 3637c453f67d |
children | 3bc19188fc3a |
comparison
equal
deleted
inserted
replaced
758:b2fcbdc4969d | 759:b7484c7da2d4 |
---|---|
11 */ | 11 */ |
12 Ext.define('Lada.controller.FilterResult', { | 12 Ext.define('Lada.controller.FilterResult', { |
13 extend: 'Ext.app.Controller', | 13 extend: 'Ext.app.Controller', |
14 requires: [ | 14 requires: [ |
15 'Lada.view.window.ProbeEdit', | 15 'Lada.view.window.ProbeEdit', |
16 'Lada.view.window.MessprogrammEdit' | 16 'Lada.view.window.Messprogramm' |
17 ], | 17 ], |
18 | 18 |
19 /** | 19 /** |
20 * Initialize the Controller with 4 listeners | 20 * Initialize the Controller with 4 listeners |
21 */ | 21 */ |
56 //Based upon the Model that was loaded, act differently | 56 //Based upon the Model that was loaded, act differently |
57 if (mname == 'Lada.model.ProbeList'){ | 57 if (mname == 'Lada.model.ProbeList'){ |
58 winname = 'Lada.view.window.ProbeEdit'; | 58 winname = 'Lada.view.window.ProbeEdit'; |
59 } | 59 } |
60 else if (mname == 'Lada.model.MessprogrammList'){ | 60 else if (mname == 'Lada.model.MessprogrammList'){ |
61 winname = 'Lada.view.window.MessprogrammEdit'; | 61 winname = 'Lada.view.window.Messprogramm'; |
62 } | 62 } |
63 if (winname){ | 63 if (winname){ |
64 var win = Ext.create(winname, { | 64 var win = Ext.create(winname, { |
65 record: record | 65 record: record |
66 }); | 66 }); |
88 /** | 88 /** |
89 * This function opens a new window to create a Probe | 89 * This function opens a new window to create a Probe |
90 * {@link Lada.view.window.MessprogrammCreate} | 90 * {@link Lada.view.window.MessprogrammCreate} |
91 */ | 91 */ |
92 addMessprogrammItem: function() { | 92 addMessprogrammItem: function() { |
93 var win = Ext.create('Lada.view.window.MessprogrammCreate'); | 93 var win = Ext.create('Lada.view.window.Messprogramm'); |
94 win.show(); | 94 win.show(); |
95 win.initData(); | 95 win.initData(); |
96 }, | 96 }, |
97 | 97 |
98 /** | 98 /** |