Viewport.js 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Ext.define('erp.view.common.batchUpdate.Viewport',{
  2. extend: 'Ext.Viewport',
  3. hideBorders: true,
  4. initComponent : function(){
  5. var me = this;
  6. var width = Ext.isIE ? screen.width*0.7*0.8 : '70%',
  7. height = Ext.isIE ? screen.height*0.6 : '65%';
  8. Ext.apply(me, {
  9. items: [{
  10. xtype: "window",
  11. title:'批量更新',
  12. autoShow: true,
  13. closable: false,
  14. maximizable : true,
  15. width: width,
  16. height: height,
  17. layout: 'anchor',
  18. items: [{
  19. xtype: 'erpBatchUpdateFormPanel',
  20. anchor:'100% 100%'
  21. },{
  22. xtype:'erpGridPanel2',
  23. hidden:true
  24. }],
  25. buttonAlign:'center',
  26. buttons:[{
  27. text: $I18N.common.button.erpCloseButton,
  28. iconCls: 'x-button-icon-close',
  29. cls: 'x-btn-gray',
  30. width: 60,
  31. handler: function(btn){
  32. var main = parent.Ext.getCmp("content-panel");
  33. if(main){
  34. main.getActiveTab().close();
  35. }
  36. }
  37. }]
  38. }]
  39. });
  40. me.callParent(arguments);
  41. }
  42. });