Ext.define('erp.view.fa.gs.BillAPChange',{ extend: 'Ext.Viewport', layout: 'fit', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ id:'BillAPChangeViewport', layout: 'anchor', items: [{ xtype: 'erpFormPanel', anchor: '100% 35%', saveUrl: 'fa/gs/saveBillAPChange.action', deleteUrl: 'fa/gs/deleteBillAPChange.action', updateUrl: 'fa/gs/updateBillAPChange.action', auditUrl: 'fa/gs/auditBillAPChange.action', resAuditUrl: 'fa/gs/resAuditBillAPChange.action', submitUrl: 'fa/gs/submitBillAPChange.action', resSubmitUrl: 'fa/gs/resSubmitBillAPChange.action', accountedUrl: 'fa/gs/accountBillAPChange.action', resAccountedUrl: 'fa/gs/resAccountBillAPChange.action', getIdUrl: 'common/getId.action?seq=BILLAPCHANGE_SEQ', codeField: 'bpc_code', keyField: 'bpc_id', statusField: 'bpc_statuscode' },{ xtype: 'erpGridPanel2', anchor: '100% 65%', detno: 'bpd_detno', necessaryField: 'bpd_bapcode', keyField: 'bpd_id', mainField: 'bpd_bpcid' }] }] }); me.callParent(arguments); } });