UnWriteVoucher.js 751 B

1234567891011121314151617181920212223242526272829303132
  1. Ext.define('erp.view.fa.gla.UnWriteVoucher', {
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. anchor: '100% 10%',
  10. xtype: 'toolbar',
  11. items: ['期间:', {
  12. xtype: 'tbtext',
  13. id: 'yearmonth'
  14. },'->', {
  15. xtype: 'erpResAccountedButton'
  16. },'-',{
  17. text: $I18N.common.button.erpCloseButton,
  18. iconCls: 'x-button-icon-close',
  19. cls: 'x-btn-gray',
  20. handler: function(){
  21. var main = parent.Ext.getCmp("content-panel");
  22. main.getActiveTab().close();
  23. }
  24. }]
  25. },{
  26. anchor: '100% 90%',
  27. xtype: 'erpGridPanel2'
  28. }]
  29. });
  30. me.callParent(arguments);
  31. }
  32. });