comparison app/view/Viewport.js @ 180:133df8f75a12

Added missing file.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 04 Jul 2013 12:21:51 +0200
parents 1a11ae666f11
children cfa4ed3b62b5
comparison
equal deleted inserted replaced
179:f1f0351b6e2f 180:133df8f75a12
7 'Lada.view.proben.List' 7 'Lada.view.proben.List'
8 ], 8 ],
9 9
10 initComponent: function() { 10 initComponent: function() {
11 console.log('Setting up Viewport'); 11 console.log('Setting up Viewport');
12 this.initSearch(); 12 //this.initSearch();
13 13
14 // Development related: 14 // Development related:
15 // Disable "initSearch" call and enable one of the following init 15 // Disable "initSearch" call and enable one of the following init
16 // methods to get a dialog directly without the need to click through 16 // methods to get a dialog directly without the need to click through
17 // the whole application. 17 // the whole application.
18 //this.initMessung(); 18 this.initMessung();
19 //this.initOrt();
19 20
20 this.callParent(arguments); 21 this.callParent(arguments);
21 }, 22 },
23 initMesswert: function() {
24 var store = Ext.getStore('Messwerte');
25 store.load({
26 params: {
27 probeId: "000007575853X",
28 messungsId: "1"
29 }
30 });
31 },
32 initOrt: function() {
33 var ort = Ext.create('Lada.model.Ort');
34 var win = Ext.create('Lada.view.orte.Create', {model: ort});
35 },
22 initMessung: function() { 36 initMessung: function() {
23 var messung = Ext.create('Lada.model.Messung'); 37 var store = Ext.getStore('Messungen');
24 var win = Ext.create('Lada.view.messungen.Create', {model: messung}); 38 var kstore = Ext.getStore('MKommentare');
39 probeId = "000007578314X";
40 store.load({
41 params: {
42 probeId: probeId
43 },
44 callback: function () {
45 console.log(store);
46 var messung = store.data.items[0];
47 console.log(store.data.items[0]);
48 kstore.load({
49 params: {
50 probeId: probeId,
51 messungsId: messung.get('messungsId')
52 },
53 callback: function() {
54 console.log('Creating Messung window');
55 //var messung = Ext.create('Lada.model.Messung');
56 var win = Ext.create('Lada.view.messungen.Create', {model: messung});
57 }
58 });
59 }
60 });
25 }, 61 },
26 initSearch: function() { 62 initSearch: function() {
27 this.items = { 63 this.items = {
28 xtype: 'panel', 64 xtype: 'panel',
29 title: '<center>Probenauswahlmaske</center>', 65 title: '<center>Probenauswahlmaske</center>',

http://lada.wald.intevation.org