KpiAccount.js 623 B

12345678910111213141516171819202122232425262728
  1. Ext.define('erp.view.hr.kpi.KpiAccount',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. var w = Ext.isIE ? screen.width*0.6*0.45 : '45%',
  8. h = Ext.isIE ? screen.height*0.7*0.45 : '45%';
  9. Ext.apply(me, {
  10. items: [{
  11. id:'KpiAccountView',
  12. xtype: "window",
  13. autoShow: true,
  14. closable: false,
  15. maximizable : true,
  16. width: w,
  17. height: h,
  18. layout: 'border',
  19. items: [{
  20. region: 'center',
  21. xtype: 'erpFormPanel',
  22. enableTools:false
  23. }]
  24. }]
  25. });
  26. me.callParent(arguments);
  27. }
  28. });