Inventory.js 596 B

123456789101112131415161718192021222324252627
  1. Ext.define('erp.view.scm.reserve.Inventory',{
  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:'InventoryView',
  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: 'Inventory'
  22. }]
  23. }]
  24. });
  25. me.callParent(arguments);
  26. }
  27. });