AddrBook.js 891 B

12345678910111213141516171819202122232425262728293031323334353637
  1. Ext.define('erp.view.oa.addrBook.AddrBook',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'border',
  10. items: [{
  11. xtype: 'erpFormPanel',
  12. region: 'center',
  13. width: '80%',
  14. saveUrl: 'oa/addrBook/saveAddrBook.action',
  15. deleteUrl: 'oa/addrBook/deleteAddrBook.action',
  16. updateUrl: 'oa/addrBook/updateAddrBook.action',
  17. getIdUrl: 'common/getId.action?seq=EMPLOYEEMAIL_SEQ',
  18. keyField: 'emm_id'
  19. },{
  20. region: 'west',
  21. width: '20%',
  22. xtype: 'addrbooktree',
  23. tbar: [{
  24. iconCls: 'tree-add',
  25. name: 'add',
  26. text: $I18N.common.button.erpAddButton
  27. },{
  28. iconCls: 'tree-delete',
  29. name: 'delete',
  30. text: $I18N.common.button.erpDeleteButton
  31. }]
  32. }]
  33. }]
  34. });
  35. me.callParent(arguments);
  36. }
  37. });