联查单据

/**
	 * 联查单据
	 * 
	 * @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();
	}

  

posted @ 2020-02-25 11:09  DuoMi  阅读(172)  评论(0)    收藏  举报