EAS DEP左树右表自定义控件脚本

2023-10-17 17:15:19 浏览数 (1)

代码语言:javascript复制
//修改字段名 prmtbizClass,修改FilterItemInfo中group.id为核算项目类别id,还有GeneralAuxacctPromptBox中的核算项目id,可通过自定义核算项目去查询分析器中查询类别id
//构建表头自定义核算项目F7树形目录
 var ui=pluginCtx.getUI();
 var filterInfo = new com.kingdee.bos.metadata.entity.FilterInfo();
 filterInfo.getFilterItems().add(new com.kingdee.bos.metadata.entity.FilterItemInfo("group.id", "HxJqnO7fQuG5 OVFJsch5wXSzQw=",com.kingdee.bos.metadata.query.util.CompareType.EQUALS));
 filterInfo.getFilterItems().add(new com.kingdee.bos.metadata.entity.FilterItemInfo("isEnabled", new java.lang.Integer(1),com.kingdee.bos.metadata.query.util.CompareType.EQUALS));
var gapb = new com.kingdee.eas.basedata.master.auxacct.client.GeneralAuxacctPromptBox(ui, "HxJqnO7fQuG5 OVFJsch5wXSzQw=", filterInfo);
 pluginCtx.getKDBizPromptBox("prmtbizClass").setSelector(gapb);
var scmClientHelper = new com.kingdee.eas.scm.common.client.SCMClientHelper(ui);
 scmClientHelper.setSalePersonDisplay(pluginCtx.getKDBizPromptBox("prmtbizClass"));
 scmClientHelper.initSalePersonDisplay(pluginCtx.getKDBizPromptBox("prmtbizClass"));
//构建表头项目F7树形目录
 pluginCtx.getKDBizPromptBox("prmtproject").setQueryInfo("com.kingdee.eas.basedata.assistant.app.F7ProjectQuery");        
 com.kingdee.eas.fm.common.client.F7SelectorFactory.initProject(ui, pluginCtx.getKDBizPromptBox("prmtproject"));

0 人点赞