MobileCondition.js 581 B

1234567891011121314151617181920212223
  1. Ext.QuickTips.init();
  2. Ext.define('erp.controller.ma.MobileCondition', {
  3. extend: 'Ext.app.Controller',
  4. requires: ['erp.util.BaseUtil'],
  5. views: ['ma.MobileCondition', 'core.grid.HeaderFilter'],
  6. init:function(){
  7. this.BaseUtil = Ext.create('erp.util.BaseUtil');
  8. var me = this;
  9. this.control({
  10. '#refresh': {
  11. click: function(btn) {
  12. var grid = btn.ownerCt.ownerCt;
  13. grid.store.load();
  14. }
  15. },
  16. '#close': {
  17. click: function() {
  18. this.BaseUtil.getActiveTab().close();
  19. }
  20. }
  21. });
  22. }
  23. });