Panel.js 725 B

123456789101112131415161718192021222324
  1. /**
  2. * ERP项目gridpanel通用样式1
  3. */
  4. Ext.define('erp.view.core.grid.Panel',{
  5. extend: 'Ext.grid.Panel',
  6. alias: 'widget.erpGridPanel',
  7. region: 'south',
  8. layout : 'fit',
  9. id: 'grid1',
  10. emptyText : $I18N.common.grid.emptyText,
  11. columnLines : true,
  12. autoScroll : true,
  13. store: [],
  14. columns: [],
  15. GridUtil: Ext.create('erp.util.GridUtil'),
  16. plugins: Ext.create('Ext.grid.plugin.CellEditing', {
  17. clicksToEdit: 1
  18. }),
  19. initComponent : function(){
  20. var gridParam = {caller: caller + "!Child", condition: ""};
  21. this.GridUtil.getGridColumnsAndStore(this, 'common/singleGridPanel.action', gridParam, "");//从后台拿到gridpanel的配置及数据
  22. this.callParent(arguments);
  23. }
  24. });