【采购订单、采购变更单列表】FW—获取流程流转数据 接口调用获取下一步处理人、节点名称、上一步处理人
This commit is contained in:
parent
78be91c79d
commit
a0b39b0530
|
|
@ -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("调用失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue