【采购订单、采购变更单列表】FW—获取流程流转数据 接口调用获取下一步处理人、节点名称、上一步处理人

This commit is contained in:
pan-houxiang 2025-12-25 13:54:01 +08:00
parent 78be91c79d
commit a0b39b0530
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
package tqq9.lc123.cloud.app.plugin.form.pm;
import kd.bos.entity.datamodel.ListSelectedRowCollection;
import kd.bos.list.BillList;
import kd.bos.list.plugin.AbstractListPlugin;
import kd.bos.logging.Log;
import kd.bos.logging.LogFactory;
import kd.sdk.plugin.Plugin;
import tqq9.lc123.cloud.app.plugin.trd.FWImpl;
import java.util.EventObject;
/**
* 采购订单采购变更单列表插件
* FW获取流程流转数据 接口调用获取下一步处理人节点名称上一步处理人
*/
public class PurOrderBillWorkflowDataListPlugin extends AbstractListPlugin implements Plugin {
private static final Log log = LogFactory.getLog(PurOrderBillWorkflowDataListPlugin.class);
@Override
public void afterBindData(EventObject e) {
super.afterBindData(e);
BillList billList = this.getView().getControl("billlistap");
ListSelectedRowCollection currentListAllRowCollection = billList.getCurrentListAllRowCollection();
String billSign = billList.getBillFormId();
String result = FWImpl.getWorkFlowHandler(billSign, currentListAllRowCollection);
if ("调用成功".equals(result)) {
log.info("调用成功");
}else{
getView().showTipNotification("单据【"+result+"】中创建人没有填写泛微人员ID");
log.info("调用失败");
}
}
}