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

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

index 208f7c2..027eefa 100644 (file)
                         {
                             "*prop": "footer",
                             "displayInfo": true,
-                            "emptyMsg": "No Item found",
-                            "pageSize": 100,
+                            "emptyMsg": "No Metric found",
+                            "pageSize": 50,
                             "xtype": "PagingToolbar",
-                            "|updateSummary": "function() {\n\r\n    var f = this;\r\n    new Pman.Request({\r\n        url : baseURL + '/Xtuple/Roo/Poitem',\r\n        method : 'GET',\r\n        params : {\n            _roo_office : _this.data.office ? _this.data.office : baseURL.split('/').pop().substr(0,2),\r\n            _totals : 1,\r\n            poitem_pohead_id : _this.form.findField('pohead_id').getValue()\r\n        },\r\n        success : function(d) {\n            Roo.log(d);\r\n            f.displayEl.update(String.format(\r\n                \"{0} items | Total : {1} {2}\",\r\n                d.data[0].count_item,\r\n                _this.form.findField('pohead_curr_id').el.dom.value,\r\n                d.data[0].totals\r\n            ));\r\n                \r\n        }\r\n    });\r\n\n}\n",
                             "|xns": "Roo"
                         },
                         {
index 3ca8c69..6b5ae94 100644 (file)
@@ -179,32 +179,8 @@ Pman.Tab.XtupleMetric = new Roo.XComponent({
                     xtype: 'PagingToolbar',
                     xns: Roo,
                     displayInfo : true,
-                    emptyMsg : "No Item found",
-                    pageSize : 100,
-                    updateSummary : function() {
-                    \r
-                        var f = this;\r
-                        new Pman.Request({\r
-                            url : baseURL + '/Xtuple/Roo/Poitem',\r
-                            method : 'GET',\r
-                            params : {
-                                _roo_office : _this.data.office ? _this.data.office : baseURL.split('/').pop().substr(0,2),\r
-                                _totals : 1,\r
-                                poitem_pohead_id : _this.form.findField('pohead_id').getValue()\r
-                            },\r
-                            success : function(d) {
-                                Roo.log(d);\r
-                                f.displayEl.update(String.format(\r
-                                    "{0} items | Total : {1} {2}",\r
-                                    d.data[0].count_item,\r
-                                    _this.form.findField('pohead_curr_id').el.dom.value,\r
-                                    d.data[0].totals\r
-                                ));\r
-                                    \r
-                            }\r
-                        });\r
-                    
-                    }
+                    emptyMsg : "No Metric found",
+                    pageSize : 50
                 },
                 colModel : [
                     {