Pman.Tab.XtupleDashboard.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 8 May 2014 03:45:15 +0000 (11:45 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 8 May 2014 03:45:15 +0000 (11:45 +0800)
Pman.Tab.XtupleDashboard.js

Pman.Tab.XtupleDashboard.bjs
Pman.Tab.XtupleDashboard.js

index 977230b..b1a2586 100644 (file)
                                                             "valueField": "ftype",
                                                             "width": 150,
                                                             "xtype": "ComboBox",
-                                                            "|dateRange": "function() {\n    \n}\n",
+                                                            "|dateRange": "function() {\n    return {\n                   date_from : _this.mfrom.getValue(),\n                    date_to :Date.parseDate(_this.mfrom.getValue(), 'Y-n-d').add(Date.YEAR, 1).format('Y-m-d')\n         \n                };\n}\n",
                                                             "|xns": "Roo.form",
                                                             "items": [
                                                                 {
index 8ddde0f..6ea2bab 100644 (file)
@@ -317,7 +317,11 @@ Pman.Tab.XtupleDashboard = new Roo.XComponent({
                                                 valueField : 'ftype',
                                                 width : 150,
                                                 dateRange : function() {
-                                                    
+                                                    return {
+                                                                   date_from : _this.mfrom.getValue(),
+                                                                    date_to :Date.parseDate(_this.mfrom.getValue(), 'Y-n-d').add(Date.YEAR, 1).format('Y-m-d')
+                                                         
+                                                                };
                                                 },
                                                 store : {
                                                     xtype: 'SimpleStore',