diff 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
line wrap: on
line diff
--- a/app/view/proben/Edit.js	Fri Jun 21 16:53:39 2013 +0200
+++ b/app/view/proben/Edit.js	Fri Jun 21 16:55:23 2013 +0200
@@ -12,17 +12,12 @@
     modal: true,
 
     requires: [
-        'Lada.view.proben.EditForm',
-        'Lada.view.widgets.Uwb',
-        'Lada.view.widgets.Datenbasis',
-        'Lada.view.widgets.Probenart',
-        'Lada.view.widgets.Betriebsart',
-        'Lada.view.widgets.Testdatensatz',
-        'Lada.view.widgets.Netzbetreiber',
-        'Lada.view.kommentare.List',
-        'Lada.view.orte.List',
-        'Lada.view.messungen.List',
-        'Lada.view.zusatzwerte.List'
+        //'Lada.view.proben.EditForm',
+        //'Lada.view.widgets.Uwb',
+        //'Lada.view.kommentare.List',
+        //'Lada.view.orte.List',
+        //'Lada.view.messungen.List',
+        //'Lada.view.zusatzwerte.List'
     ],
 
     initComponent: function() {
@@ -30,43 +25,43 @@
         // creation of this window. We need to pass it throuh to the form as
         // we need the "modelId" param to load the correct item.
         var form = Ext.create('Lada.view.proben.EditForm', this.initialConfig);
-        // Load kommentare
-        //var record = form.getRecord();
-        var kommentare = form.down('kommentarelist'); //form.down('kommentare');
-        var kstore = kommentare.getStore();
-        kstore.load({
-            params: {
-                probe: this.initialConfig['modelId']
-                //probe: record.data['probeId']
-            }
-        });
-        // Load Orte
-        var orte = form.down('ortelist');
-        var ostore = orte.getStore();
-        ostore.load({
-            params: {
-                probe: this.initialConfig['modelId']
-                //probe: record.data['probeId']
-            }
-        });
-        // Load Zusatzwerte
-        var zwerte = form.down('zusatzwertelist');
-        var zstore = zwerte.getStore();
-        zstore.load({
-            params: {
-                probe: this.initialConfig['modelId']
-                //probe: record.data['probeId']
-            }
-        });
-        // Load Messungen 
-        var messungen = form.down('messungenlist');
-        var mstore = messungen.getStore();
-        mstore.load({
-            params: {
-                probe: this.initialConfig['modelId']
-                //probe: record.data['probeId']
-            }
-        });
+        /// Load kommentare
+        ////var record = form.getRecord();
+        //var kommentare = form.down('kommentarelist'); //form.down('kommentare');
+        //var kstore = kommentare.getStore();
+        //kstore.load({
+        //    params: {
+        //        probe: this.initialConfig['modelId']
+        //        //probe: record.data['probeId']
+        //    }
+        //});
+        //// Load Orte
+        //var orte = form.down('ortelist');
+        //var ostore = orte.getStore();
+        //ostore.load({
+        //    params: {
+        //        probe: this.initialConfig['modelId']
+        //        //probe: record.data['probeId']
+        //    }
+        //});
+        //// Load Zusatzwerte
+        //var zwerte = form.down('zusatzwertelist');
+        //var zstore = zwerte.getStore();
+        //zstore.load({
+        //    params: {
+        //        probe: this.initialConfig['modelId']
+        //        //probe: record.data['probeId']
+        //    }
+        //});
+        //// Load Messungen 
+        //var messungen = form.down('messungenlist');
+        //var mstore = messungen.getStore();
+        //mstore.load({
+        //    params: {
+        //        probe: this.initialConfig['modelId']
+        //        //probe: record.data['probeId']
+        //    }
+        //});
         this.items = [form];
         this.buttons = [
             {

http://lada.wald.intevation.org