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

This commit is contained in:
pan-houxiang 2025-12-25 14:43:26 +08:00
parent 237e1a7ed2
commit f2410f0e35
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
package tqq9.lc123.cloud.app.plugin.form.result;
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 PmPurRefundApplyBillWorkflowDataListPlugin extends AbstractListPlugin implements Plugin {
private static final Log log = LogFactory.getLog(PmPurRefundApplyBillWorkflowDataListPlugin.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("调用失败");
}
}
}