zoukankan      html  css  js  c++  java
  • 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);  
                    }  
                }  
        });  
  • 相关阅读:
    火狐推荐几个实用的插件
    Ubuntu下安装可视化SVN客户端Rabbitvcs
    thunderbird中如何设置QQ邮箱
    Ubuntu 10.04里安装强大抓图工具Shutter
    cannot start compilation;the output path is not specified for module specify the output path in the project structure dialog
    jrebel+idea 进行热部署配置
    jeecg数据库切换至mysql8.0方式
    com.alibaba.druid.pool.DruidDataSource 使用druid数据源 No supported DataSource type found
    租户的基本信息表
    kettle系列-我的开源kettle调度、管理平台[kettle-manager]介绍
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10964419.html
Copyright © 2011-2022 走看看