首页 > 其他 > 详细

联查单据

时间:2020-02-25 12:32:18      阅读:67      评论:0      收藏:0      [点我收藏+]
/**
	 * 联查单据
	 * 
	 * @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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!