|
@@ -20,6 +20,7 @@ import kd.bos.entity.datamodel.events.AfterAddRowEventArgs;
|
|
|
import kd.bos.entity.datamodel.events.BeforeDeleteRowEventArgs;
|
|
import kd.bos.entity.datamodel.events.BeforeDeleteRowEventArgs;
|
|
|
import kd.bos.entity.datamodel.events.BeforeImportEntryEventArgs;
|
|
import kd.bos.entity.datamodel.events.BeforeImportEntryEventArgs;
|
|
|
import kd.bos.entity.datamodel.events.ChangeData;
|
|
import kd.bos.entity.datamodel.events.ChangeData;
|
|
|
|
|
+import kd.bos.entity.datamodel.events.GetEntityTypeEventArgs;
|
|
|
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
|
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
|
|
import kd.bos.entity.filter.CompareTypeEnum;
|
|
import kd.bos.entity.filter.CompareTypeEnum;
|
|
|
import kd.bos.entity.filter.FilterValue;
|
|
import kd.bos.entity.filter.FilterValue;
|
|
@@ -60,6 +61,7 @@ import nckd.jxccl.hr.psms.common.PerfRankMgmtConstant;
|
|
|
import nckd.jxccl.hr.psms.common.PositionStructureConstant;
|
|
import nckd.jxccl.hr.psms.common.PositionStructureConstant;
|
|
|
import nckd.jxccl.hr.psms.helper.PositionFileHelper;
|
|
import nckd.jxccl.hr.psms.helper.PositionFileHelper;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.jetbrains.annotations.NotNull;
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
import java.math.RoundingMode;
|
|
@@ -452,7 +454,7 @@ public class PerfRankMgmtFormPlugin extends AbstractFormPlugin implements Wizard
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public void afterDoOperation(AfterDoOperationEventArgs afterDoOperationEventArgs) {
|
|
|
|
|
|
|
+ public void afterDoOperation(@NotNull AfterDoOperationEventArgs afterDoOperationEventArgs) {
|
|
|
String itemKey = afterDoOperationEventArgs.getOperateKey();
|
|
String itemKey = afterDoOperationEventArgs.getOperateKey();
|
|
|
if(PerfRankMgmtConstant.GETRANKLIST_OP.equalsIgnoreCase(itemKey)){
|
|
if(PerfRankMgmtConstant.GETRANKLIST_OP.equalsIgnoreCase(itemKey)){
|
|
|
/*IBillView billView = (IBillView)this.getView();
|
|
/*IBillView billView = (IBillView)this.getView();
|
|
@@ -599,8 +601,9 @@ public class PerfRankMgmtFormPlugin extends AbstractFormPlugin implements Wizard
|
|
|
entryCol.set(PerfRankMgmtConstant.NCKD_POSTALLOWANCE, hasAllowance);
|
|
entryCol.set(PerfRankMgmtConstant.NCKD_POSTALLOWANCE, hasAllowance);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- this.getModel().updateEntryCache(entryEntityCols);
|
|
|
|
|
- this.getView().updateView(PerfRankMgmtConstant.NCKD_PERFRANKMGMTENTRY);
|
|
|
|
|
|
|
+ /*this.getModel().updateEntryCache(entryEntityCols);
|
|
|
|
|
+ this.getView().updateView(PerfRankMgmtConstant.NCKD_PERFRANKMGMTENTRY);*/
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/*for (int i = 0; i < entryEntityCols.size(); i++) {
|
|
/*for (int i = 0; i < entryEntityCols.size(); i++) {
|
|
|
Boolean isRanking = ConvertUtil.toBoolean(this.getModel().getValue(PerfRankMgmtConstant.NCKD_ISRANKING, i));
|
|
Boolean isRanking = ConvertUtil.toBoolean(this.getModel().getValue(PerfRankMgmtConstant.NCKD_ISRANKING, i));
|
|
@@ -613,8 +616,8 @@ public class PerfRankMgmtFormPlugin extends AbstractFormPlugin implements Wizard
|
|
|
this.getView().updateView(PerfRankMgmtConstant.NCKD_ISRANKING,i);
|
|
this.getView().updateView(PerfRankMgmtConstant.NCKD_ISRANKING,i);
|
|
|
|
|
|
|
|
}*/
|
|
}*/
|
|
|
-
|
|
|
|
|
this.getView().showSuccessNotification("名单获取完成");
|
|
this.getView().showSuccessNotification("名单获取完成");
|
|
|
|
|
+ this.getView().invokeOperation(FormConstant.REFRESH_OP);
|
|
|
} else {
|
|
} else {
|
|
|
this.getView().showTipNotification("未获取到人员");
|
|
this.getView().showTipNotification("未获取到人员");
|
|
|
}
|
|
}
|
|
@@ -643,6 +646,18 @@ public class PerfRankMgmtFormPlugin extends AbstractFormPlugin implements Wizard
|
|
|
// this.getView().setStatus(OperationStatus.EDIT);
|
|
// this.getView().setStatus(OperationStatus.EDIT);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void getEntityType(GetEntityTypeEventArgs e) {
|
|
|
|
|
+ super.getEntityType(e);
|
|
|
|
|
+
|
|
|
|
|
+ MainEntityType originalEntityType = e.getOriginalEntityType();
|
|
|
|
|
+ try {
|
|
|
|
|
+ e.setNewEntityType((MainEntityType)originalEntityType.clone());
|
|
|
|
|
+ } catch (CloneNotSupportedException ex) {
|
|
|
|
|
+ throw new RuntimeException(ex);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private void importResultStep() {
|
|
private void importResultStep() {
|
|
|
this.getModel().setValue(PerfRankMgmtConstant.NCKD_STEP,1);
|
|
this.getModel().setValue(PerfRankMgmtConstant.NCKD_STEP,1);
|
|
|
this.getView().setVisible(false, FormConstant.NUMBER_KEY, PerfRankMgmtConstant.NCKD_GETRANKLIST,"nckd_advconbaritemap2","nckd_advconbaritemap3");
|
|
this.getView().setVisible(false, FormConstant.NUMBER_KEY, PerfRankMgmtConstant.NCKD_GETRANKLIST,"nckd_advconbaritemap2","nckd_advconbaritemap3");
|