Ext.define('erp.view.pm.mps.DeviceInApply',{ extend: 'Ext.Viewport', layout: 'fit', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ id:'DeviceInApplyViewport', layout: 'anchor', items: [{ xtype: 'erpFormPanel', anchor: '100% 50%', saveUrl: 'pm/mps/saveDeviceInApply.action', deleteUrl: 'pm/mps/deleteDeviceInApply.action', updateUrl: 'pm/mps/updateDeviceInApply.action', getIdUrl: 'common/getId.action?seq=DeviceInApply_SEQ', submitUrl: 'pm/mps/submitDeviceInApply.action', resSubmitUrl: 'pm/mps/resSubmitDeviceInApply.action', auditUrl: 'pm/mps/auditDeviceInApply.action', resAuditUrl: 'pm/mps/resAuditDeviceInApply.action', keyField: 'de_id', codeField: 'de_code', statusField: 'de_status', statuscodeField: 'de_statuscode' },{ xtype: 'erpGridPanel2', anchor: '100% 50%', detno: 'dep_detno', necessaryField: 'dep_value', keyField: 'dep_id', mainField: 'dep_deid' }] }] }); me.callParent(arguments); } });