|
@@ -1,12 +1,16 @@
|
|
|
package nckd.jxccl.hr.htm.plugin.form.quitapply;
|
|
package nckd.jxccl.hr.htm.plugin.form.quitapply;
|
|
|
|
|
|
|
|
|
|
+import kd.bos.bill.BillShowParameter;
|
|
|
import kd.bos.dataentity.utils.StringUtils;
|
|
import kd.bos.dataentity.utils.StringUtils;
|
|
|
|
|
+import kd.bos.form.ShowType;
|
|
|
import kd.bos.form.events.AfterDoOperationEventArgs;
|
|
import kd.bos.form.events.AfterDoOperationEventArgs;
|
|
|
import kd.bos.form.events.HyperLinkClickArgs;
|
|
import kd.bos.form.events.HyperLinkClickArgs;
|
|
|
import kd.bos.list.plugin.AbstractListPlugin;
|
|
import kd.bos.list.plugin.AbstractListPlugin;
|
|
|
-import kd.hr.htm.formplugin.common.QuitPageUtils;
|
|
|
|
|
import nckd.jxccl.hr.htm.common.quitapply.QuitApplyConstant;
|
|
import nckd.jxccl.hr.htm.common.quitapply.QuitApplyConstant;
|
|
|
|
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 退休申请列表插件
|
|
* 退休申请列表插件
|
|
|
* @entity: nckd_retireapplybasebill
|
|
* @entity: nckd_retireapplybasebill
|
|
@@ -20,9 +24,17 @@ public class RetireApplyBaseBillListPlugin extends AbstractListPlugin {
|
|
|
super.afterDoOperation(afterDoOperationEventArgs);
|
|
super.afterDoOperation(afterDoOperationEventArgs);
|
|
|
|
|
|
|
|
if (afterDoOperationEventArgs.getOperationResult() != null && afterDoOperationEventArgs.getOperationResult().isSuccess()) {
|
|
if (afterDoOperationEventArgs.getOperationResult() != null && afterDoOperationEventArgs.getOperationResult().isSuccess()) {
|
|
|
|
|
+ // 自定义参数
|
|
|
|
|
+ Map customs = new HashMap();
|
|
|
|
|
+ customs.put("isFromRetire", true);
|
|
|
// 新增退休待办申请
|
|
// 新增退休待办申请
|
|
|
if (StringUtils.equals(QuitApplyConstant.RETIRE_APPLE_OP,afterDoOperationEventArgs.getOperateKey())) {
|
|
if (StringUtils.equals(QuitApplyConstant.RETIRE_APPLE_OP,afterDoOperationEventArgs.getOperateKey())) {
|
|
|
- QuitPageUtils.showNewAddPage(this.getView(), QuitApplyConstant.NCKD_RETIREAPPLY_ENTITY, "新增代退休申请");
|
|
|
|
|
|
|
+ BillShowParameter showParameter = new BillShowParameter();
|
|
|
|
|
+ showParameter.setFormId(QuitApplyConstant.NCKD_RETIREAPPLY_ENTITY);
|
|
|
|
|
+ showParameter.setCaption("新增代退休申请");
|
|
|
|
|
+ showParameter.getOpenStyle().setShowType(ShowType.MainNewTabPage);
|
|
|
|
|
+ showParameter.setCustomParam("isFromRetire", true);
|
|
|
|
|
+ getView().showForm(showParameter);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -32,8 +44,13 @@ public class RetireApplyBaseBillListPlugin extends AbstractListPlugin {
|
|
|
super.billListHyperLinkClick(args);
|
|
super.billListHyperLinkClick(args);
|
|
|
|
|
|
|
|
// 自定义超链接点击事情处理
|
|
// 自定义超链接点击事情处理
|
|
|
- args.setCancel(Boolean.TRUE);
|
|
|
|
|
|
|
+ args.setCancel(true);
|
|
|
// 打开退休申请表单
|
|
// 打开退休申请表单
|
|
|
- QuitPageUtils.showPage(getView(), QuitApplyConstant.NCKD_RETIREAPPLY_ENTITY, getFocusRowPkId(), "", null);
|
|
|
|
|
|
|
+ BillShowParameter showParameter = new BillShowParameter();
|
|
|
|
|
+ showParameter.setFormId(QuitApplyConstant.NCKD_RETIREAPPLY_ENTITY);
|
|
|
|
|
+ showParameter.setPkId(getFocusRowPkId());
|
|
|
|
|
+ showParameter.getOpenStyle().setShowType(ShowType.MainNewTabPage);
|
|
|
|
|
+ showParameter.setCustomParam("isFromRetire", true);
|
|
|
|
|
+ getView().showForm(showParameter);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|