/**
* 联查单据
*
* @throws Exception
*/
private void doJoinQueryBill() throws Exception {
int selectRowIndex = com.kingdee.eas.framework.report.util.KDTableUtil.getSelectedRow(tblMain);
if (selectRowIndex == -1) {
MsgBox.showInfo("请先选择记录");
abort();
}
String billId = UIRuleUtil.getString(tblMain.getCell(selectRowIndex, "FVoucherId").getValue());
if (StringUtils.isEmpty(billId)) {
return;
}
BOSUuid id = BOSUuid.read(billId);
IMetaDataLoader metadataloader = MetaDataLoaderFactory.getRemoteMetaDataLoader();
EntityObjectInfo entity = metadataloader.getEntity(id.getType());
String editUIClass = entity.getExtendedProperty("editUI");
UIContext uiContext = new UIContext(ui);
// 占位符
uiContext.put("ID", billId);
Frame mainFrame = UIFrameUtil.getCurrMainFrame(this);
uiContext.put("Owner", mainFrame);
IUIWindow uiWindow = UIFactory.createUIFactory(UINewFrameFactory.class.getName()).create(editUIClass, uiContext, null, OprtState.VIEW);
uiWindow.show();
}
原文:https://www.cnblogs.com/duomi/p/12360602.html