MakeCostUnClose.js 848 B

123456789101112131415161718192021222324252627282930313233343536
  1. Ext.define('erp.view.co.cost.MakeCostUnClose',{
  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. xtype: "window",
  12. autoShow: true,
  13. closable: false,
  14. maximizable : true,
  15. width: w,
  16. height: h,
  17. layout: 'anchor',
  18. items: [{
  19. xtype: 'form',
  20. anchor: '100% 100%',
  21. title: '主营成本结转凭证取消',
  22. bodyStyle: 'background:#f1f1f1',
  23. buttonAlign: 'center',
  24. buttons: [{
  25. cls: 'x-btn-gray',
  26. id: 'unclose',
  27. text: '取消凭证'
  28. },{
  29. xtype:'erpCloseButton'
  30. }]
  31. }]
  32. }]
  33. });
  34. me.callParent(arguments);
  35. }
  36. });