From 816127b403e9632ad7db9361a4188727dbec90e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Fri, 10 Jan 2025 10:47:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E4=BB=BB=E5=8A=A1=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=90=8E=E8=B0=83=E7=94=A8=E5=88=B7=E6=96=B0=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repc/resm/formplugin/SetObjectFormPlugin.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/main/java/shkd/repc/resm/formplugin/SetObjectFormPlugin.java b/main/java/shkd/repc/resm/formplugin/SetObjectFormPlugin.java index d43e441..92d7913 100644 --- a/main/java/shkd/repc/resm/formplugin/SetObjectFormPlugin.java +++ b/main/java/shkd/repc/resm/formplugin/SetObjectFormPlugin.java @@ -4,6 +4,7 @@ import kd.bos.dataentity.OperateOption; import kd.bos.dataentity.entity.DynamicObject; import kd.bos.dataentity.entity.DynamicObjectCollection; import kd.bos.entity.operate.Submit; +import kd.bos.form.events.AfterDoOperationEventArgs; import kd.bos.form.events.BeforeDoOperationEventArgs; import kd.bos.form.operate.FormOperate; import kd.bos.form.plugin.AbstractFormPlugin; @@ -138,6 +139,16 @@ public class SetObjectFormPlugin extends AbstractFormPlugin implements Plugin { } } + @Override + public void afterDoOperation(AfterDoOperationEventArgs e) { + super.afterDoOperation(e); + FormOperate source = (FormOperate) e.getSource(); + String operateKey = source.getOperateKey(); + if ("submit".equals(operateKey)){ + this.getView().invokeOperation("refresh"); + } + } + /** * 递归查找上级组织 *