VendorKind.js 931 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Ext.define('erp.view.scm.purchase.VendorKind',{
  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: '62%',
  14. saveUrl: 'scm/purchase/saveVendorKind.action',
  15. deleteUrl: 'scm/purchase/deleteVendorKind.action',
  16. updateUrl: 'scm/purchase/updateVendorKind.action',
  17. getIdUrl: 'common/getId.action?seq=VENDORKIND_SEQ',
  18. keyField: 'vk_id',
  19. codeField: 'vk_code',
  20. },{
  21. region: 'east',
  22. width: '38%',
  23. xtype: 'vendkindtree',
  24. tbar: [{
  25. iconCls: 'tree-add',
  26. name: 'add',
  27. text: $I18N.common.button.erpAddButton
  28. },{
  29. iconCls: 'tree-delete',
  30. name: 'delete',
  31. text: $I18N.common.button.erpDeleteButton
  32. }]
  33. }]
  34. }]
  35. });
  36. me.callParent(arguments);
  37. }
  38. });