Hopper.js 640 B

123456789101112131415161718192021222324252627
  1. Ext.QuickTips.init();
  2. Ext.define('erp.controller.crm.chance.Hopper', {
  3. extend: 'Ext.app.Controller',
  4. FormUtil: Ext.create('erp.util.FormUtil'),
  5. BaseUtil: Ext.create('erp.util.BaseUtil'),
  6. views:['crm.chance.Hopper','crm.chance.HopperDraw','crm.chance.ChanceGrid'],
  7. init:function(){
  8. var me = this;
  9. this.control({
  10. 'button[id=query]': {
  11. click: function(btn) {
  12. me.showFilterPanel(btn);
  13. }
  14. },
  15. 'chancegrid':{
  16. itemclick:function(view,record,item){
  17. var grid = Ext.getCmp('chanceprocess');
  18. grid.getStore().load({params:{
  19. id:record.get('bc_id')
  20. }});
  21. grid.expand();
  22. }
  23. }
  24. });
  25. }
  26. });