diff app/view/window/Messprogramm.js @ 1289:bfdc00c24baf

Ortszuordnung for messprogramm and probe using same form
author Maximilian Krambach <mkrambach@intevation.de>
date Wed, 01 Feb 2017 14:52:51 +0100
parents f3945506a4c5
children 1a2cd9bef6d7
line wrap: on
line diff
--- a/app/view/window/Messprogramm.js	Fri Jan 27 13:25:14 2017 +0100
+++ b/app/view/window/Messprogramm.js	Wed Feb 01 14:52:51 2017 +0100
@@ -94,6 +94,16 @@
                 xtype: 'messprogrammform',
                 recordId: this.record ? this.record.get('id') : null
             }, {
+                xtype: 'fset',
+                name: 'orte',
+                title: 'Ortsangaben',
+                padding: '5, 5',
+                margin: 5,
+                items: [{
+                    xtype: 'ortszuordnunggrid',
+                    recordId: me.record ? me.record.get('id') : null
+                }]
+            }, {
                 //Messmethoden
                 xtype: 'fieldset',
                 padding: '5, 5',
@@ -159,11 +169,11 @@
                     // If the Messprogramm is ReadOnly, disable Inputfields and grids
                     if (this.record.get('readonly') === true) {
                         this.down('messprogrammform').setReadOnly(true);
-                        //this.disableChildren();
+                        this.disableChildren();
                     }
                     else {
                         this.down('messprogrammform').setReadOnly(false);
-                        //this.enableChildren();
+                        this.enableChildren();
                     }
                     me.setLoading(false);
                 },
@@ -189,11 +199,11 @@
     */
 
     disableChildren: function() {
-        // there are no children....
+        this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(true);
     },
 
     enableChildren: function() {
-        // there are no children....
+        this.down('fset[name=orte]').down('ortszuordnunggrid').setReadOnly(false);
     },
 
     /**

http://lada.wald.intevation.org