父窗体action里执行如下代码
UIContext context = new UIContext(this);
IUIWindow window =
UIFactory.createUIFactory(UIFactoryName.MODEL)
.create("com.kingdee.eas.custom.hospital.client.****UI",
context, null, null);
window.show();
子窗体获取父窗体代码
****UI fatherUI = (****UI) this.getUIContext().get("Owner");
然后可以根据父UI获取父UI所有的元素
关闭UI方法
void com.kingdee.bos.ui.face.CoreUIObject.disposeUIWindow()
所有的UI都会继承CoreUIObject
this.disposeUIWindow();
---------------------
作者:hujinlong
来源:CSDN
原文:https://blog.csdn.net/hujinlong/article/details/83675234
版权声明:本文为博主原创文章,转载请附上博文链接!