/**
* 拆分明细查看
*/
@SuppressWarnings("unchecked")
@Override
public void actionDetail_actionPerformed(ActionEvent e) throws Exception {
List ids = getSelectedIdValues();
if(ids == null || ids.isEmpty()){
MsgBox.showInfo(this, "请选择记录行!");
abort();
}
String billId = (String) ids.get(0);
EntityViewInfo view = new EntityViewInfo();
SelectorItemCollection selector = new SelectorItemCollection();
selector.add(new SelectorItemInfo("*"));
selector.add(new SelectorItemInfo("entrys.DEntrys.*"));
selector.add(new SelectorItemInfo("entrys.DEntrys.account.number"));
selector.add(new SelectorItemInfo("entrys.DEntrys.account.name"));
selector.add(new SelectorItemInfo("entrys.DEntrys.costOrg.name"));
selector.add(new SelectorItemInfo("entrys.DEntrys.orgUnit.name"));
FilterInfo filter = new FilterInfo();
filter.getFilterItems().add(new FilterItemInfo("id", billId));
view.setSelector(selector);
view.setFilter(filter);
ISplitBill service = SplitBillFactory.getRemoteInstance();
SplitBillCollection coll = service.getSplitBillCollection(view);
UIContext uiContext = new UIContext(ui); //上下文
uiContext.put("billModel", coll.get(0));
IUIWindow win = null;
String uiFactoryName = UIFactoryName.NEWWIN; //页签的方式打开UI,NEWWIN时打开新窗口
String className = SplitBillDetailUI.class.getName(); //UI界面对应的类名,如:DemoListUI.class.getName()
win = UIFactory.createUIFactory(uiFactoryName).create(className, uiContext);
win.show();
}
UIFactory打开新页面,传递参数
最新推荐文章于 2019-06-04 18:34:37 发布