zoukankan      html  css  js  c++  java
  • 设置查询对话框的F7

    1.定义自己的处理类
    public
    class MyQueryProcessor extends FMDefaultQueryProcessor { @Override public void process() throws Exception{ super.process(); String field = getField(); if(field.equals("company.name")){ Object editor = getEditor(); if(editor instanceof KDBizPromptBox) { KDBizPromptBox prmtBox = (KDBizPromptBox) editor; /*prmtBox.setQueryInfo("com.kingdee.eas.ma.budget.MyCompanyOrgUnitQuery"); EntityViewInfo evi=new EntityViewInfo(); FilterInfo filterInfo=new FilterInfo(); filterInfo.getFilterItems().add(new FilterItemInfo("isCostOrgUnit",1, CompareType.EQUALS)); filterInfo.getFilterItems().add(new FilterItemInfo("isCompanyOrgUnit",1, CompareType.EQUALS)); evi.setFilter(filterInfo); prmtBox.setEntityViewInfo(evi);*/ prmtBox.setSelector(new com.kingdee.eas.ma.budget.client.BgCompanyF7()); } } } }
    2.在ListUI中重写initCommonQueryDialog方法
     @Override
        protected CommonQueryDialog initCommonQueryDialog() {
            CommonQueryDialog queryDlg = super.initCommonQueryDialog();
            queryDlg.setProcessor(new MyQueryProcessor());
            return queryDlg;
        }
    
    
    
     
  • 相关阅读:
    MSER
    resize和reserve的区别
    Rect
    U盘文件或目录损坏且无法读取怎么解决
    信道估计
    ann
    仿射变换详解 warpAffine
    opencv新版本的数据结构
    大津法
    php红包
  • 原文地址:https://www.cnblogs.com/cyhj/p/4583354.html
Copyright © 2011-2022 走看看