DOCManage.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Ext.define('erp.view.plm.document.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. items: [{
  12. xtype:'erpDocumentTreePanel',
  13. region:'west',
  14. tbar: [{
  15. xtype: 'button',
  16. iconCls: 'tree-add',
  17. id:'treeadd',
  18. //disabled:true,
  19. text:'创建'
  20. } ,'-',{
  21. xtype:'button',
  22. text:'编辑',
  23. id:'treeupdate',
  24. //disabled:true,
  25. iconCls:'x-button-icon-change'
  26. },'-',{
  27. xtype: 'button',
  28. id:'treedelete',
  29. iconCls: 'tree-delete',
  30. //disabled:true,
  31. text:'删除'
  32. }],
  33. },{
  34. xtype:'erpDatalistGridPanel',
  35. region:'center',
  36. selModel: Ext.create('Ext.selection.CheckboxModel',{
  37. }),
  38. tbar: [{
  39. xtype: 'button',
  40. iconCls: 'x-button-icon-move',
  41. id:'move',
  42. text: '转移',
  43. style:'margin-left:10px'
  44. } ,{
  45. xtype: 'button',
  46. id:'update',
  47. iconCls: 'x-button-icon-change',
  48. text: $I18N.common.button.erpUpdateButton,
  49. style:'margin-left:10px'
  50. } , {
  51. xtype:'button',
  52. id:'delete',
  53. iconCls:'x-button-icon-delete',
  54. text: $I18N.common.button.erpDeleteButton,
  55. style:'margin-left:10px'
  56. },{
  57. xtype:'button',
  58. id:'print',
  59. iconCls:'x-button-icon-print',
  60. text: $I18N.common.button.erpPrintButton,
  61. style:'margin-left:10px'
  62. }],
  63. }]
  64. }]
  65. });
  66. me.callParent(arguments);
  67. }
  68. });