|
|
@@ -4,15 +4,11 @@ import kd.bos.bill.OperationStatus;
|
|
|
import kd.bos.common.enums.EnableEnum;
|
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
|
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
|
|
-import kd.bos.entity.EntityMetadataCache;
|
|
|
import kd.bos.entity.QueryEntityType;
|
|
|
import kd.bos.entity.constant.StatusEnum;
|
|
|
import kd.bos.entity.datamodel.events.ChangeData;
|
|
|
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
|
|
-import kd.bos.ext.mmc.util.MetaDataHelper;
|
|
|
-import kd.bos.form.control.Control;
|
|
|
import kd.bos.form.events.AfterDoOperationEventArgs;
|
|
|
-import kd.bos.form.events.BeforeDoOperationEventArgs;
|
|
|
import kd.bos.form.field.DateEdit;
|
|
|
import kd.bos.form.operate.FormOperate;
|
|
|
import kd.bos.form.plugin.AbstractFormPlugin;
|
|
|
@@ -21,7 +17,6 @@ import kd.bos.orm.query.QCP;
|
|
|
import kd.bos.orm.query.QFilter;
|
|
|
import kd.bos.servicehelper.MetadataServiceHelper;
|
|
|
import kd.hr.hbp.business.servicehelper.HRBaseServiceHelper;
|
|
|
-import kd.hr.hbp.business.servicehelper.HRMetaDataServiceHelper;
|
|
|
import kd.hr.hbp.business.servicehelper.HRQueryEntityHelper;
|
|
|
import kd.hr.hbp.common.constants.history.HisModelDataStatusEnum;
|
|
|
import kd.hr.hbp.common.util.HRDateTimeUtils;
|
|
|
@@ -37,7 +32,6 @@ import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
import java.util.EventObject;
|
|
|
import java.util.HashSet;
|
|
|
-import java.util.LinkedHashMap;
|
|
|
import java.util.Map;
|
|
|
import java.util.Set;
|
|
|
import java.util.function.Function;
|
|
|
@@ -180,11 +174,6 @@ public class SanDingPlanFormPlugin extends AbstractFormPlugin {
|
|
|
setStartDateMinDate(startDateLast);
|
|
|
}
|
|
|
DynamicObject dyo = getModel().getDataEntity();
|
|
|
- boolean isSend = dyo.getBoolean(SanDingConstant.NCKD_ISSEND_KEY);
|
|
|
- boolean isComplated = dyo.getBoolean(SanDingConstant.NCKD_ISCOMPLATED_KEY);
|
|
|
- if (isSend || isComplated) {
|
|
|
- getView().setVisible(Boolean.FALSE, SanDingConstant.BAR_MODIFY_KEY, SanDingConstant.NCKD_SENDTASK_KEY);
|
|
|
- }
|
|
|
// 获取 ID
|
|
|
DynamicObject dataEntity = getModel().getDataEntity();
|
|
|
Long id = (Long) dataEntity.get(SanDingConstant.ID_KEY);
|
|
|
@@ -231,11 +220,11 @@ public class SanDingPlanFormPlugin extends AbstractFormPlugin {
|
|
|
if (afterDoOperationEventArgs.getOperationResult() != null && afterDoOperationEventArgs.getOperationResult().isSuccess()) {
|
|
|
FormOperate operate = (FormOperate) afterDoOperationEventArgs.getSource();
|
|
|
String operateKey = operate.getOperateKey();
|
|
|
- if (HRStringUtils.equals(operateKey, SanDingConstant.SAVE_OP)) {
|
|
|
+ if (HRStringUtils.equalsAny(operateKey, SanDingConstant.SAVE_OP, SanDingConstant.SENDTASK_OP)) {
|
|
|
// 设置页面状态为查看
|
|
|
getView().setStatus(OperationStatus.VIEW);
|
|
|
// 刷新
|
|
|
- getView().invokeOperation(SanDingConstant.REFRESH_OP);
|
|
|
+ getView().updateView();
|
|
|
}
|
|
|
}
|
|
|
}
|