|
@@ -2,7 +2,9 @@ package nckd.jxccl.opmc.pm.plugin.form.cycle;
|
|
|
|
|
|
|
|
import kd.bos.dataentity.OperateOption;
|
|
import kd.bos.dataentity.OperateOption;
|
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
|
|
|
|
+import kd.bos.dataentity.entity.DynamicObjectCollection;
|
|
|
import kd.bos.entity.datamodel.ListSelectedRowCollection;
|
|
import kd.bos.entity.datamodel.ListSelectedRowCollection;
|
|
|
|
|
+import kd.bos.entity.datamodel.events.PackageDataEvent;
|
|
|
import kd.bos.entity.operate.OperateOptionConst;
|
|
import kd.bos.entity.operate.OperateOptionConst;
|
|
|
import kd.bos.entity.operate.result.OperationResult;
|
|
import kd.bos.entity.operate.result.OperationResult;
|
|
|
import kd.bos.form.CloseCallBack;
|
|
import kd.bos.form.CloseCallBack;
|
|
@@ -12,9 +14,11 @@ import kd.bos.form.ShowType;
|
|
|
import kd.bos.form.StyleCss;
|
|
import kd.bos.form.StyleCss;
|
|
|
import kd.bos.form.control.events.ItemClickEvent;
|
|
import kd.bos.form.control.events.ItemClickEvent;
|
|
|
import kd.bos.form.events.AfterDoOperationEventArgs;
|
|
import kd.bos.form.events.AfterDoOperationEventArgs;
|
|
|
|
|
+import kd.bos.form.events.BeforeCreateListDataProviderArgs;
|
|
|
import kd.bos.form.events.BeforeDoOperationEventArgs;
|
|
import kd.bos.form.events.BeforeDoOperationEventArgs;
|
|
|
import kd.bos.form.operate.FormOperate;
|
|
import kd.bos.form.operate.FormOperate;
|
|
|
import kd.bos.list.plugin.AbstractListPlugin;
|
|
import kd.bos.list.plugin.AbstractListPlugin;
|
|
|
|
|
+import kd.bos.mvc.list.ListDataProvider;
|
|
|
import kd.bos.servicehelper.operation.OperationServiceHelper;
|
|
import kd.bos.servicehelper.operation.OperationServiceHelper;
|
|
|
import kd.sdk.plugin.Plugin;
|
|
import kd.sdk.plugin.Plugin;
|
|
|
import nckd.jxccl.base.common.constant.FormConstant;
|
|
import nckd.jxccl.base.common.constant.FormConstant;
|
|
@@ -49,6 +53,23 @@ public class PerfManagerListPlugin extends AbstractListPlugin implements Plugin
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void beforeCreateListDataProvider(BeforeCreateListDataProviderArgs args) {
|
|
|
|
|
+ args.setListDataProvider(new ListDataProvider() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public DynamicObjectCollection getData(int start, int size) {
|
|
|
|
|
+ DynamicObjectCollection rows = super.getData(start, size);
|
|
|
|
|
+
|
|
|
|
|
+ // 为动态列设置值
|
|
|
|
|
+ for (DynamicObject row : rows) {
|
|
|
|
|
+ DynamicObject adminOrg = row.getDynamicObject(FormConstant.NCKD_EMPPOSORGREL).getDynamicObject(FormConstant.ADMINORG);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return rows;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public void beforeDoOperation(BeforeDoOperationEventArgs args) {
|
|
public void beforeDoOperation(BeforeDoOperationEventArgs args) {
|
|
|
String operateKey = ((FormOperate) args.getSource()).getOperateKey();
|
|
String operateKey = ((FormOperate) args.getSource()).getOperateKey();
|