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");
}

posted @ 2019-06-26 18:07  一条有梦想的海洋咸鱼  阅读(782)  评论(0编辑  收藏  举报