/**
* 分录中,F7字段实现数据过滤
* 需要在界面加载onload()方法中调用该方法
*/
public void initEntryF7() throws Exception {
EntityViewInfo view = new EntityViewInfo(); //创建实体视图 1801010200
KDBizPromptBox prmtHfPerson = (KDBizPromptBox) kdtE1.getColumn("yuanliao").getEditor().getComponent(); //获取表格特定列绑定的F7
FilterInfo filter = new FilterInfo(); 过滤条件
filter.getFilterItems().add(new FilterItemInfo("id", " select FMATERIALID from T_BD_MaterialGroupDetial where FMATERIALGROUPSTANDARDID='dR8lnQEPEADgAAWKwKgSxZeb4R8=' and FMATERIALGROUPID in ( select FID from T_BD_MaterialGroup where FPARENTID='10YAAAAARc3Hn8BC') ", CompareType.INNER));
prmtHfPerson.setQueryInfo("com.kingdee.eas.basedata.master.material.app.F7MaterialFIQuery");
filter.getFilterItems().add(new FilterItemInfo( "orgUnit.id",SysContext.getSysContext().getCurrentFIUnit( ).getId().toString(), CompareType.EQUALS));
filter.setMaskString("#0 and #1)"); //2个过滤条件设定关系
view.setFilter(filter);
prmtHfPerson.setEntityViewInfo(view);//将实体视图绑定到F7控件
// prmtHfPerson .getQueryAgent().resetRuntimeEntityView();
}