|
@@ -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");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|