dobe_comic8/main/java/shkd/todotask/ApprovalPageMobilePlugin.java

35 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package shkd.todotask;
import kd.bos.form.events.ClosedCallBackEvent;
import kd.bos.logging.Log;
import kd.bos.logging.LogFactory;
import kd.bos.workflow.taskcenter.plugin.ApprovalPageMobilePluginNew;
/**
* 移动审批处理
* qeug_wf_approvaldealp_ext
*/
public class ApprovalPageMobilePlugin extends ApprovalPageMobilePluginNew {
private static final Log logger = LogFactory.getLog(ApprovalPageMobilePlugin.class);
@Override
public void closedCallBack(ClosedCallBackEvent e){
String actionId = e.getActionId();
logger.info("获取actionId%s",actionId);
if ("btntransfer".equals(actionId) || "approvalBtn".equals(actionId)){
logger.info("获取actionId1%s",actionId);
//转交/同意or驳回操作从成功页面回调后的情况 || 终止的情况
String operation = (String) e.getReturnData();
if (!"cancel".equals(operation)){
logger.info("close1");
this.getView().close();
logger.info("close2");
}
}else {
super.closedCallBack(e);
}
}
}