测试列表插件
This commit is contained in:
parent
28b2160a65
commit
f620aba27f
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue