From 6619ac1f18abc34215043781c827e8f3001e3ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Mon, 12 May 2025 16:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=90=88=E7=BA=A6=E8=A7=84?= =?UTF-8?q?=E5=88=92F7=E9=BB=98=E8=AE=A4=E7=84=A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReSelectConPlanTreeF7FromPluginExt.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 main/java/shkd/repc/recos/formplugin/ReSelectConPlanTreeF7FromPluginExt.java diff --git a/main/java/shkd/repc/recos/formplugin/ReSelectConPlanTreeF7FromPluginExt.java b/main/java/shkd/repc/recos/formplugin/ReSelectConPlanTreeF7FromPluginExt.java new file mode 100644 index 0000000..545d37a --- /dev/null +++ b/main/java/shkd/repc/recos/formplugin/ReSelectConPlanTreeF7FromPluginExt.java @@ -0,0 +1,26 @@ +package shkd.repc.recos.formplugin; + +import kd.bos.dataentity.entity.DynamicObjectCollection; +import kd.bos.form.control.EntryGrid; +import kd.bos.form.control.TreeEntryGrid; +import kd.bos.form.control.events.ListboxClickListener; +import kd.bos.form.control.events.SearchEnterListener; +import kd.bos.form.plugin.AbstractFormPlugin; +import kd.repc.recos.formplugin.split.base.ReSelectConPlanTreeF7FormPlugin; + +import java.util.EventObject; + +public class ReSelectConPlanTreeF7FromPluginExt extends AbstractFormPlugin { + + + @Override + public void afterBindData(EventObject e) { + super.afterBindData(e); + DynamicObjectCollection entryEntity = this.getModel().getEntryEntity("entrylist"); + if (entryEntity!=null&&entryEntity.size()!=0){ + //默认选中第一行名称焦点 + TreeEntryGrid treeEntryGrid = (TreeEntryGrid)this.getView().getControl("entrylist"); + treeEntryGrid.focusCell(0,"entry_name"); + } + } +}