Pman.Tab.XtupleMetric.bjs
authorEdward <edward@roojs.com>
Tue, 5 Aug 2014 05:12:56 +0000 (13:12 +0800)
committerEdward <edward@roojs.com>
Tue, 5 Aug 2014 05:12:56 +0000 (13:12 +0800)
Pman.Tab.XtupleMetric.js

Pman.Tab.XtupleMetric.bjs
Pman.Tab.XtupleMetric.js

index 105192c..e82904d 100644 (file)
@@ -32,7 +32,7 @@
                     "items": [
                         {
                             "listeners": {
-                                "beforeload": "function (_self, o){\n    o.params = o.params || {};\n    var hid = _this.form.findField('pohead_id').getValue();\n    \n    if(!hid.length){\n        return false;\n    }\n    \n    o.params.poitem_pohead_id = hid;\n    o.params._with_item = 1;\n    o.params._roo_office = _this.data.office ? _this.data.office : baseURL.split('/').pop().substr(0,2);\n\n}\n",
+                                "beforeload": "function (_self, o){\n    o.params = o.params || {};\n    \n}\n",
                                 "load": "function (_self, records, options)\n{\n    _this.grid.footer.updateSummary();\n}"
                             },
                             "*prop": "dataSource",
index e5c2ca9..b93f73b 100644 (file)
@@ -70,16 +70,7 @@ Pman.Tab.XtupleMetric = new Roo.XComponent({
                     listeners : {
                         beforeload : function (_self, o){
                             o.params = o.params || {};
-                            var hid = _this.form.findField('pohead_id').getValue();
                             
-                            if(!hid.length){
-                                return false;
-                            }
-                            
-                            o.params.poitem_pohead_id = hid;
-                            o.params._with_item = 1;
-                            o.params._roo_office = _this.data.office ? _this.data.office : baseURL.split('/').pop().substr(0,2);
-                        
                         },
                         load : function (_self, records, options)
                         {