测试列表插件

This commit is contained in:
luoluogit 2024-11-07 10:45:01 +08:00
parent 28b2160a65
commit f620aba27f
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package fi.plugin;
import kd.bos.form.control.events.BeforeItemClickEvent;
import kd.bos.form.control.events.ItemClickEvent;
import kd.bos.list.plugin.AbstractListPlugin;
import java.util.EventObject;
public class APPaymentListPlugin extends AbstractListPlugin {
@Override
public void beforeItemClick(BeforeItemClickEvent evt) {
super.beforeItemClick(evt);
String itemKey = evt.getItemKey();
if ("tbldel".equals(itemKey)){
this.getView().showErrorNotification("测试————无法删除!");
evt.setCancel(true);
}
}
}