comparison app/view/proben/Edit.js @ 121:c05fda928b82

Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 21 Jun 2013 16:55:23 +0200
parents b91d5376db19
children a7bfaeb1655d
comparison
equal deleted inserted replaced
120:19eab475bbe5 121:c05fda928b82
10 autoShow: true, 10 autoShow: true,
11 autoScroll: true, 11 autoScroll: true,
12 modal: true, 12 modal: true,
13 13
14 requires: [ 14 requires: [
15 'Lada.view.proben.EditForm', 15 //'Lada.view.proben.EditForm',
16 'Lada.view.widgets.Uwb', 16 //'Lada.view.widgets.Uwb',
17 'Lada.view.widgets.Datenbasis', 17 //'Lada.view.kommentare.List',
18 'Lada.view.widgets.Probenart', 18 //'Lada.view.orte.List',
19 'Lada.view.widgets.Betriebsart', 19 //'Lada.view.messungen.List',
20 'Lada.view.widgets.Testdatensatz', 20 //'Lada.view.zusatzwerte.List'
21 'Lada.view.widgets.Netzbetreiber',
22 'Lada.view.kommentare.List',
23 'Lada.view.orte.List',
24 'Lada.view.messungen.List',
25 'Lada.view.zusatzwerte.List'
26 ], 21 ],
27 22
28 initComponent: function() { 23 initComponent: function() {
29 // InitialConfig is the config object passed to the constructor on 24 // InitialConfig is the config object passed to the constructor on
30 // creation of this window. We need to pass it throuh to the form as 25 // creation of this window. We need to pass it throuh to the form as
31 // we need the "modelId" param to load the correct item. 26 // we need the "modelId" param to load the correct item.
32 var form = Ext.create('Lada.view.proben.EditForm', this.initialConfig); 27 var form = Ext.create('Lada.view.proben.EditForm', this.initialConfig);
33 // Load kommentare 28 /// Load kommentare
34 //var record = form.getRecord(); 29 ////var record = form.getRecord();
35 var kommentare = form.down('kommentarelist'); //form.down('kommentare'); 30 //var kommentare = form.down('kommentarelist'); //form.down('kommentare');
36 var kstore = kommentare.getStore(); 31 //var kstore = kommentare.getStore();
37 kstore.load({ 32 //kstore.load({
38 params: { 33 // params: {
39 probe: this.initialConfig['modelId'] 34 // probe: this.initialConfig['modelId']
40 //probe: record.data['probeId'] 35 // //probe: record.data['probeId']
41 } 36 // }
42 }); 37 //});
43 // Load Orte 38 //// Load Orte
44 var orte = form.down('ortelist'); 39 //var orte = form.down('ortelist');
45 var ostore = orte.getStore(); 40 //var ostore = orte.getStore();
46 ostore.load({ 41 //ostore.load({
47 params: { 42 // params: {
48 probe: this.initialConfig['modelId'] 43 // probe: this.initialConfig['modelId']
49 //probe: record.data['probeId'] 44 // //probe: record.data['probeId']
50 } 45 // }
51 }); 46 //});
52 // Load Zusatzwerte 47 //// Load Zusatzwerte
53 var zwerte = form.down('zusatzwertelist'); 48 //var zwerte = form.down('zusatzwertelist');
54 var zstore = zwerte.getStore(); 49 //var zstore = zwerte.getStore();
55 zstore.load({ 50 //zstore.load({
56 params: { 51 // params: {
57 probe: this.initialConfig['modelId'] 52 // probe: this.initialConfig['modelId']
58 //probe: record.data['probeId'] 53 // //probe: record.data['probeId']
59 } 54 // }
60 }); 55 //});
61 // Load Messungen 56 //// Load Messungen
62 var messungen = form.down('messungenlist'); 57 //var messungen = form.down('messungenlist');
63 var mstore = messungen.getStore(); 58 //var mstore = messungen.getStore();
64 mstore.load({ 59 //mstore.load({
65 params: { 60 // params: {
66 probe: this.initialConfig['modelId'] 61 // probe: this.initialConfig['modelId']
67 //probe: record.data['probeId'] 62 // //probe: record.data['probeId']
68 } 63 // }
69 }); 64 //});
70 this.items = [form]; 65 this.items = [form];
71 this.buttons = [ 66 this.buttons = [
72 { 67 {
73 text: 'Speichern', 68 text: 'Speichern',
74 handler: form.commit, 69 handler: form.commit,

http://lada.wald.intevation.org