Ext.define('erp.view.scm.qc.CheckItem',{ 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% 100%', saveUrl: 'scm/qc/saveCheckItem.action', deleteUrl: 'scm/qc/deleteCheckItem.action', updateUrl: 'scm/qc/updateCheckItem.action', auditUrl: 'scm/qc/auditCheckItem.action', resAuditUrl: 'scm/qc/resAuditCheckItem.action', submitUrl: 'scm/qc/submitCheckItem.action', resSubmitUrl: 'scm/qc/resSubmitCheckItem.action', getIdUrl: 'common/getId.action?seq=CheckItem_SEQ', codeField: 'ci_code', keyField: 'ci_id', statusField: '' }/*,{ xtype: 'erpGridPanel2', anchor: '100% 50%', detno: 'and_detno', necessaryField: 'and_prodcode', keyField: 'and_id', mainField: 'and_anid' }*/] }] }); me.callParent(arguments); } });