BilltypeVO billtypeVO = PfUIDataCache.getBillTypeInfo("10080404");//Z5
System.out.println(billtypeVO);
PfLinkData pflink = new PfLinkData();
pflink.setBillID("1001F81000000000008S");//1001A610000000016T71
pflink.setBillType("10080404");//Z5
pflink.setUserObject("SAVE");
String customNode = PfUtilUITools.findCustomNodeOfBilltype(billtypeVO, pflink);
String clsName = billtypeVO.getClassname();
String nodecode = billtypeVO.getNodecode();
//Logger.debug("::查找单据类型注册的节点 findCustomNodeOfBilltype=" + customNode);
if ((customNode == null) || (customNode.trim().length() == 0)) {
if ((clsName == null) || (clsName.trim().length() == 0)) {
if ((nodecode == null) || (nodecode.trim().length() == 0)) {
MessageDialog.showHintDlg(this, NCLangRes.getInstance().getStrByID("101203", "UPP101203-000036"), NCLangRes.getInstance().getStrByID("pfworkflow", "UPPpfworkflow-000533"));
return;
}
SFClientUtil.openLinkedQueryDialog(nodecode.trim(), this, pflink);
}
else {
clsName = clsName.trim();
if ((clsName.startsWith("<Y>")) || (clsName.startsWith("<N>")) || (clsName.startsWith("<X>"))) {
clsName = clsName.substring(3);
}
SFClientUtil.openLinkedQueryDialog(clsName, this, pflink);
}
} else {
SFClientUtil.openLinkedQueryDialog(customNode.trim(), this, pflink);
}
NC57 单据跳转
最新推荐文章于 2021-06-17 16:33:31 发布