单据审批界面

This commit is contained in:
zengweihai 2024-07-19 15:26:00 +08:00
parent 9cb6ac3cec
commit bd6a5d231c
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
package shkd.plugin;
import kd.bos.form.plugin.AbstractFormPlugin;
import kd.bos.workflow.taskcenter.plugin.ApprovalBillPlugin;
import kd.bos.workflow.taskcenter.plugin.ApprovalBillViewPlugin;
import kd.sdk.plugin.Plugin;
import org.agrona.Strings;
import java.util.EventObject;
import java.util.Map;
/**
* 审批单据界面插件
*/
public class ApprovalBillFormPlugin extends kd.bos.workflow.taskcenter.plugin.ApprovalBillViewPlugin {
@Override
public void afterBindData(EventObject e) {
super.afterBindData(e);
Map<String, Object> customParams = this.getView().getFormShowParameter().getCustomParams();
String apptype = (String) customParams.get("apptype");//获取应用类型
String msgId = (String) customParams.get("msgId");
if ("waver".equals(apptype) && Strings.isEmpty(msgId)){//当接口对象为泛微且提供消息对象主键不为空
this.getView().showTipNotification("ce"+msgId);
}
}
}