zoukankan      html  css  js  c++  java
  • eas之界面之间传递参数


    1.收集父界面要传递给予界面的参数集
    HashMap map=new HashMap();
    map.put("Owner",this);//必须,被启动UI的父UI对象
    map.put("EASMode",new Integer(this.EASMode));
    map.put("tale",this.accountTablePromptBox.getData());
    map.put("cu",currentCtrlUnit());
    map.put("auxAccount",this.asstAccountPrpmptBox.getData());
    IUIFactory uiFactory=null;
    uiFactory=UIFactory.createUIFactory("com.kingdee.eas.base.uiframe.client.UIModeDialogFactory");

    以模态对话框方式启动
    IUIWindow uiWindow=uiFactorycreate("com.kingdee.eas.basedata.master.auxacct.client.AccountSelectUI");
    uiWindow.show();

    2.在子界面获取传递下来的数据
    private void loadContext(){
    int mode=(Integer)this.getUiContext().get("EASMode").intValue();
    AccountTableInfo accountTableInfo()=(AccountTableInfo)this.getUIContext().get("table");
    CtrlUnitInfo cuInfo=(CtrlUnitInfo)this.getUIContext().get("cu");
    AsstAccountInfo assAccoutnInfo=this.getUIContext().get("auxAccount");
    AuxAccounteditUI ui=(AuxAccountEditUI)this.getUIContext().get("Owner");
    }

  • 相关阅读:
    geoserver 文件系统
    geoserver 源码介绍
    geoserver 开发2
    geoserver 开发1
    geoserver笔记
    linux 下安装gult
    LINUX 笔记5
    SQLSTATE[HY000] [2002] 乱码
    微信开发
    javascript记忆
  • 原文地址:https://www.cnblogs.com/luojiabao/p/11091682.html
Copyright © 2011-2022 走看看