Passing parameters between the interface eas


1. Parent collection interface interface to pass parameter set given
the HashMap = new new Map the HashMap ();
map.put ( "Owner", the this); // must be activated parent UI object of the UI
map.put ( "EASMode", Integer new new (this.EASMode));
map.put ( "TALE", this.accountTablePromptBox.getData ());
map.put ( "Cu", currentCtrlUnit ());
map.put ( "auxAccount", this.asstAccountPrpmptBox .getData ());
IUIFactory the UIFactory = null;
the UIFactory = UIFactory.createUIFactory ( "com.kingdee.eas.base.uiframe.client.UIModeDialogFactory");

In start mode modal dialog
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");
}

Guess you like

Origin www.cnblogs.com/luojiabao/p/11091682.html