ChanceProcess.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Ext.define('erp.view.crm.chance.ChanceProcess',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'form',
  10. anchor: '100% 5%',
  11. layout: 'column',
  12. bodyStyle: 'background:#f1f1f1;',
  13. buttonAlign: 'center',
  14. bbar:{
  15. xtype: 'toolbar',
  16. dock: 'bottom',
  17. ui: 'footer',
  18. items: ['->',{
  19. name: 'query',
  20. id: 'query',
  21. text: $I18N.common.button.erpQueryButton,
  22. iconCls: 'x-button-icon-query',
  23. margin: '0 4 0 0'
  24. },'-',{
  25. name: 'export',
  26. text: $I18N.common.button.erpExportButton,
  27. iconCls: 'x-button-icon-excel',
  28. margin: '0 4 0 0'
  29. },'-',{
  30. text: $I18N.common.button.erpCloseButton,
  31. iconCls: 'x-button-icon-close',
  32. margin: '0 4 0 0',
  33. handler: function(){
  34. var main = parent.Ext.getCmp("content-panel");
  35. main.getActiveTab().close();
  36. }
  37. },'->']
  38. }
  39. },{
  40. xtype: 'processgrid',
  41. anchor: '100% 95%'
  42. }]
  43. });
  44. me.callParent(arguments);
  45. }
  46. });