Browse Source

薪酬计提提交自动审核

zhouger 7 months ago
parent
commit
dfe50a6ed9

+ 3 - 0
src/main/java/fi/em/formPlugin/AgentpaybillFormPlugin.java

@@ -115,6 +115,9 @@ public class AgentpaybillFormPlugin extends AbstractListPlugin implements Plugin
             //反写后保存
             SaveServiceHelper.save(new DynamicObject[] {agentpaybill});
         }
+
+
+
     }
 
     public void propertyChanged(PropertyChangedArgs e)

+ 23 - 0
src/main/java/fi/em/formPlugin/SubAndAudFormPlugin.java

@@ -0,0 +1,23 @@
+package fi.em.formPlugin;
+
+import kd.bos.form.events.AfterDoOperationEventArgs;
+import kd.bos.list.plugin.AbstractListPlugin;
+import kd.sdk.plugin.Plugin;
+
+/**
+ * @author cjz
+ * @date 2024/9/12 11:12
+ * @description:薪酬计提提交后自动审核
+ */
+public class SubAndAudFormPlugin extends AbstractListPlugin implements Plugin {
+    public void afterDoOperation(AfterDoOperationEventArgs arg){
+        arg.getOperateKey();
+        //提交并审核
+        if ("submit".equals(arg.getOperateKey())) {
+            //调用审核
+            this.getView().invokeOperation("audit");
+        }
+
+    }
+
+}