Pman.Tab.XtuplePurchaseRecv.bjs
authorEdward <edward@roojs.com>
Wed, 4 Dec 2013 05:34:14 +0000 (13:34 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Dec 2013 05:34:14 +0000 (13:34 +0800)
Pman.Tab.XtuplePurchaseRecv.js

Pman.Tab.XtuplePurchaseRecv.bjs
Pman.Tab.XtuplePurchaseRecv.js

index fd9d7f0..6c6cee7 100644 (file)
@@ -47,7 +47,7 @@
                                         "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.ppanel.active) {\n       this.footer.onClick('first');\n    }\n}",
                                         "|rowdblclick": "function (_self, rowIndex, e)\n{\n    var r = _this.grid.ds.getAt(rowIndex);\n    \n    Pman.Dialog.XtuplePurchaseOrder.show( { pohead_id : r.data.pohead_id }, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n}\n",
                                         "cellclick": "function (_self, rowIndex, columnIndex, e)\n{\n    var di = _this.grid.getColumnModel().getDataIndex(columnIndex);\n    if(di == 'pohead_vouchered' || di == 'pohead_paid'){\n        return;\n    }\n    _this.rggrid.ds.load({});\n}",
-                                        "celldblclick": "function (_self, rowIndex, columnIndex, e)\n{\n    var di = _this.grid.getColumnModel().getDataIndex(columnIndex);\n    if(di == 'pohead_vouchered' || di == 'pohead_paid'){\n        return;\n    }\n    \n}"
+                                        "celldblclick": "function (_self, rowIndex, columnIndex, e)\n{\n    var di = _this.grid.getColumnModel().getDataIndex(columnIndex);\n    if(di == 'pohead_vouchered' || di == 'pohead_paid'){\n        return;\n    }\n    \n    var r = _this.grid.ds.getAt(rowIndex);\n    \n    Pman.Dialog.XtuplePurchaseOrder.show( { pohead_id : r.data.pohead_id }, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n}"
                                     },
                                     "*prop": "grid",
                                     "autoExpandColumn": "pohead_vend_id_vend_name",
index c36f8b5..4f70c96 100644 (file)
@@ -76,6 +76,11 @@ Pman.Tab.XtuplePurchaseRecv = new Roo.XComponent({
                                         return;
                                     }
                                     
+                                    var r = _this.grid.ds.getAt(rowIndex);
+                                    
+                                    Pman.Dialog.XtuplePurchaseOrder.show( { pohead_id : r.data.pohead_id }, function() {
+                                        _this.grid.footer.onClick('refresh');
+                                    }); 
                                 }
                             },
                             autoExpandColumn : 'pohead_vend_id_vend_name',