• 自定义F7


    1、自定义弹出F7对话框

     1 KDBizPromptBox saleOrgF7 = new KDBizPromptBox();
     2 add(saleOrgF7, null);
     3 saleOrgF7.setVisible(false);
     4 saleOrgF7.setEnabledMultiSelection(true);
     5 saleOrgF7.setQueryInfo("com.kingdee.eas.fdc.sellhouse.app.SellProjectQuery");
     6 saleOrgF7.setDataBySelector();
     7 List lf=new ArrayList();
     8 if (saleOrgF7.getSelector().isCanceled() || saleOrgF7.getData() == null){
     9     com.kingdee.eas.rptclient.newrpt.util.MsgBox.showInfo("空的");
    10 }else{
    11     Object infos[] = (Object[]) saleOrgF7.getData();
    12     for (int i = 0; i < infos.length; i++) {
    13         lf.add(infos[i]);
    14     }
    15 }


    1.1、自定义F7示例

     1 protected List showFilterDialog() {
     2         List fids = new ArrayList();
     3         KDBizPromptBox modelBox = new KDBizPromptBox();
     4         modelBox.setVisible(false);
     5         modelBox.setEnabledMultiSelection(true);
     6         modelBox.setQueryInfo("com.kingdee.eas.fdc.contract.app.ModelQuery");
     7         
     8         //设置过滤
     9         EntityViewInfo view = new EntityViewInfo();
    10         FilterInfo filter = new FilterInfo();
    11         filter.getFilterItems().add(new FilterItemInfo("description", "EAS3"+SysContext.getSysContext().getCurrentUserInfo().getNumber()));
    12         view.setFilter(filter);
    13         modelBox.setEntityViewInfo(view);
    14         
    15         modelBox.setDataBySelector();
    16         if (modelBox.getSelector().isCanceled() || modelBox.getData() == null){
    17 //            com.kingdee.eas.rptclient.newrpt.util.MsgBox.showInfo("没有选值");
    18             SysUtil.abort();
    19         }else{
    20             Object infos[] = (Object[]) modelBox.getData();
    21             for (int i = 0; i < infos.length; i++) {
    22                 fids.add(((ModelInfo)infos[i]).getSimpleName().toString());
    23                 System.out.println("----选中的模板编码:"+((ModelInfo)infos[i]).getSimpleName().toString());
    24             }
    25         }
    26         return fids;
    27     }
  • 相关阅读:
    获取表信息(MSSQL)
    合并有数据的列
    isnull的使用方法
    查询SQLServer的启动时间
    查询数据库中有数据的表
    查询数据库中表使用的空间信息。
    SQL Server SA 密码丢失无法连接数据库怎么办?
    tensorflow 语法及 api 使用细节
    Python: PS 滤镜-- Fish lens
    中英文对照 —— 概念的图解
  • 原文地址:https://www.cnblogs.com/kumarson/p/3285221.html
Copyright © 2020-2023  润新知