DOCManage.js.svn-base 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Ext.define('erp.view.oa.doc.DOCManage',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. id:'desk',
  10. layout: 'border',
  11. bodyBorder:false,
  12. items: [{
  13. region: 'north',
  14. xtype : 'pageHeader'
  15. },{
  16. region:'center',
  17. layout:'border',
  18. items: [{
  19. width: 250,
  20. bodyPadding: 5,
  21. region:'west',
  22. xtype:'erpDocumentTreePanel',
  23. bodyStyle:'background-color:#FAFAFA;',
  24. tbar:[{
  25. xtype:'buttongroup',
  26. columns:4,
  27. cls:'button-group',
  28. width: 250,
  29. border:0,
  30. items:[{
  31. xtype:'button',
  32. cls:"button primary",
  33. id:'treeadd',
  34. text:' 创建 '
  35. },{
  36. xtype:'button',
  37. cls:"button",
  38. text:' 编辑 ',
  39. id:'treeupdate'
  40. },{
  41. xtype:'button',
  42. cls:"button",
  43. id:'treedelete',
  44. text:' 删除 '
  45. }]
  46. }]
  47. }, {
  48. xtyle:'border:none;',
  49. flex: 1,
  50. region:'center',
  51. layout:'border',
  52. items:[{
  53. region: 'center',
  54. xtype:'erpDocPanel',
  55. },{
  56. xtype:'erpDocTabPanel',
  57. region:'south'
  58. }]
  59. }
  60. ]},
  61. {
  62. xtype: 'pageBottom',
  63. region: 'south',
  64. height: 13
  65. }]
  66. }]
  67. });
  68. me.callParent(arguments);
  69. }
  70. });