Ext.define('erp.view.ma.logic.masterManage',{ extend: 'Ext.Viewport', layout: 'border', hideBorders: true, initComponent : function(){ var me = this; Ext.apply(me, { items: [{ xtype: "form", autoShow: true, region:'center', bodyStyle:'background:#ffffff', layout:'column', margin:'100% 100% 100% 100%', title:'禁用/启用账套(√为已启用帐套,*标记为主账套)', id:'master', bbar: ['->',{xtype: 'erpConfirmButton'},{ xtype: 'erpCloseButton'},'->'] }] }); me.callParent(arguments); this.show(); this.showMasters(); }, showMasters: function() { Ext.Ajax.request({ async:true, url : basePath + 'common/getMasters.action', method : 'post', callback : function(opt,s,res){ var data = Ext.decode(res.responseText); var form=Ext.getCmp('master'); var check=true; var disabled=true; for(var i=0;i