eas左树右表基础资料界面引用为左树右表F7的简单方法
age:
/**
* 加载配件F7(左树右表)
* @param F7Filed 要加载的F7控件
* @param ctx 界面上下文
* @单据中用法示例
* final KDBizPromptBox kdtEntrys_accessories_PromptBox = new KDBizPromptBox();
* CommonUtil.loadAccessoriesF7PromptBox(kdtEntrys_accessories_PromptBox, this.getUIContext());
* @throws Exception
*/
public static void loadAccessoriesF7PromptBox(final KDBizPromptBox F7Filed, Map ctx) throws Exception {
F7Filed.setQueryInfo("com.kingdee.eas.mydep.assetmanage.database.app.AccessoriesQuery");
F7Filed.setEntityViewInfo(new EntityViewInfo("where state=1"));
F7Filed.setDisplayFormat("$name$");
F7Filed.setEditFormat("$number$");
F7Filed.setCommitFormat("$number$");
F7Filed.addSelectorListener(new SelectorListener() {
AccessoriesListUI accessoriesF7UI = null;
public void willShow(SelectorEvent e) {
if (accessoriesF7UI == null) {
try {
accessoriesF7UI = new AccessoriesListUI();
HashMap ctx = new HashMap();
ctx.put("bizUIOwner", javax.swing.SwingUtilities.getWindowAncestor(accessoriesF7UI));
accessoriesF7UI.setF7Use(true, ctx);
accessoriesF7UI.setFilterForQuery(new FilterInfo("state=1"));
} catch (ParserException e1) {
e1.printStackTrace();
} catch (Exception e2) {
e2.printStackTrace();
}
F7Filed.setSelector(accessoriesF7UI);
}
}
});
}
承接钉钉定制;网站服务定制;
联系qq:1655119603