From 6e67bd8b3fe9a941149c925cc13f922b13558565 Mon Sep 17 00:00:00 2001 From: ptt <2403326863@qq.com> Date: Thu, 6 Mar 2025 13:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BB=BA=E7=AB=8B:=E5=88=86?= =?UTF-8?q?=E5=BD=95=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9--=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java b/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java index 8628af3..5f9e7dd 100644 --- a/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java +++ b/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java @@ -258,11 +258,16 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic this.getView().addClientCallBack("auto_save", 0); } } + } + + @Override + public void afterCreateNewData(EventObject e) { + super.afterCreateNewData(e); DynamicObjectCollection keynodeentry = (DynamicObjectCollection)this.getModel().getValue("keynodeentry"); if (keynodeentry!=null) { for (int i = 0; i < keynodeentry.size(); i++) { DynamicObject dynamicObject = keynodeentry.get(i); - switch (i){ + switch (i+1){ case 1:dynamicObject.set("knentry_node","现场踏勘");break; case 2:dynamicObject.set("knentry_node","项目立项");break; case 3:dynamicObject.set("knentry_node","项目启动");break;