Ext.define('erp.view.ma.SysCheckWinGrid',{ extend: 'Ext.grid.Panel', alias: 'widget.erpSysCheckWinGrid', requires: ['erp.view.core.toolbar.Toolbar'], id: 'wingrid', emptyText : $I18N.common.grid.emptyText, columnLines : true, autoScroll : true, store: [], columns: [], bodyStyle: 'background-color:#f1f1f1;', plugins: [Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 })], GridUtil: Ext.create('erp.util.GridUtil'), BaseUtil: Ext.create('erp.util.BaseUtil'), necessaryField: '',//必填字段 detno: '',//编号字段 keyField: '',//主键字段 mainField: '',//对应主表主键的字段 dbfinds: [], caller: null, condition: null, initComponent : function(){ var condition = this.condition; if(!condition){ var urlCondition = this.BaseUtil.getUrlParam('gridCondition'); urlCondition = urlCondition == null || urlCondition == "null" ? "" : urlCondition; gridCondition = (gridCondition == null || gridCondition == "null") ? "" : gridCondition; gridCondition = gridCondition + urlCondition; gridCondition = gridCondition.replace(/IS/g, "="); /*if(gridCondition.search(/!/) != -1){ gridCondition = gridCondition.substring(0, gridCondition.length - 4); }*/ condition = gridCondition; } var gridParam = {caller: this.caller || caller, condition: condition}; this.GridUtil.getGridColumnsAndStore(this, 'common/singleGridPanel.action', gridParam, "");//从后台拿到gridpanel的配置及数据 this.callParent(arguments); }, getEffectiveData: function(){ var me = this; var effective = new Array(); var s = this.store.data.items; for(var i=0;i