Ext.define('erp.view.scm.qc.AQL',{ extend: 'Ext.Viewport', layout: 'fit', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ id:'checkItemViewport', layout: 'anchor', items: [{ xtype: 'erpFormPanel', anchor: '100% 30%', saveUrl: 'common/saveCommon.action?caller=' +caller, deleteUrl: 'common/deleteCommon.action?caller=' +caller, updateUrl: 'common/updateCommon.action?caller=' +caller, auditUrl: 'scm/qc/auditAQL.action', resAuditUrl: 'common/resAuditCommon.action?caller=' +caller, submitUrl: 'common/submitCommon.action?caller=' +caller, resSubmitUrl: 'common/resSubmitCommon.action?caller=' +caller, getIdUrl: 'common/getCommonId.action?caller=' +caller, codeField: 'al_code', keyField: 'al_id', statusField: 'al_statusocde' },{ xtype: 'erpGridPanel2', anchor: '100% 70%', detno: 'ad_detno', necessaryField: 'ad_qty', keyField: 'ad_id', mainField: 'ad_alid' }] }] }); me.callParent(arguments); } });