Ext.define('erp.view.scm.purchase.VendorKind',{ extend: 'Ext.Viewport', layout: 'fit', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ layout: 'border', items: [{ xtype: 'erpFormPanel', region: 'center', width: '62%', saveUrl: 'scm/purchase/saveVendorKind.action', deleteUrl: 'scm/purchase/deleteVendorKind.action', updateUrl: 'scm/purchase/updateVendorKind.action', getIdUrl: 'common/getId.action?seq=VENDORKIND_SEQ', keyField: 'vk_id', codeField: 'vk_code', },{ region: 'east', width: '38%', xtype: 'vendkindtree', tbar: [{ iconCls: 'tree-add', name: 'add', text: $I18N.common.button.erpAddButton },{ iconCls: 'tree-delete', name: 'delete', text: $I18N.common.button.erpDeleteButton }] }] }] }); me.callParent(arguments); } });