From f620aba27f006b649ded2591954a0dbe44ee9022 Mon Sep 17 00:00:00 2001 From: luoluogit <1014532975@qq.com> Date: Thu, 7 Nov 2024 10:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=88=97=E8=A1=A8=E6=8F=92?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/fi/plugin/APPaymentListPlugin.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sys/src/main/java/fi/plugin/APPaymentListPlugin.java diff --git a/sys/src/main/java/fi/plugin/APPaymentListPlugin.java b/sys/src/main/java/fi/plugin/APPaymentListPlugin.java new file mode 100644 index 0000000..cb606cf --- /dev/null +++ b/sys/src/main/java/fi/plugin/APPaymentListPlugin.java @@ -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); + } + } +}