Daily.js 885 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Ext.define('erp.view.oa.persontask.workDaily.Daily',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. region: 'south',
  10. xtype:'erpDatalistGridPanel',
  11. anchor: '100% 100%',
  12. selModel: Ext.create('Ext.selection.CheckboxModel',{
  13. }),
  14. tbar:[ {
  15. iconCls: 'group-add',
  16. id: 'ok',
  17. text: '确 定'
  18. },{
  19. iconCls: 'x-button-icon-close',
  20. text: '关 闭',
  21. id: 'close',
  22. handler: function(){
  23. var win = parent.Ext.ComponentQuery.query('window');
  24. if(win){
  25. Ext.each(win, function(){
  26. this.close();
  27. });
  28. } else {
  29. window.close();
  30. }
  31. }
  32. }]
  33. }]
  34. });
  35. me.callParent(arguments);
  36. }
  37. });