From d181caf69af83c5f24a725317acdc34a10bbf3d6 Mon Sep 17 00:00:00 2001 From: ptt <2403326863@qq.com> Date: Wed, 18 Jun 2025 13:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E7=BD=91=E9=97=A8=E6=88=B7=E3=80=82?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=EF=BC=8C=E8=AF=A2=E4=BB=B7?= =?UTF-8?q?=E5=85=AC=E5=91=8A=EF=BC=8C=E6=8B=9B=E5=8B=9F=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=8D=95=E6=8D=AE=E8=AF=A6=E6=83=85=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=96=B0=E9=A1=B5=E7=AD=BE=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../portal/ExtendsPortalCardInvPlugin.java | 28 +++++++++++++++++++ .../ExtendsPortalCardRecruitPlugin.java | 27 ++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 main/java/shkd/repc/resp/portal/ExtendsPortalCardInvPlugin.java create mode 100644 main/java/shkd/repc/resp/portal/ExtendsPortalCardRecruitPlugin.java diff --git a/main/java/shkd/repc/resp/portal/ExtendsPortalCardInvPlugin.java b/main/java/shkd/repc/resp/portal/ExtendsPortalCardInvPlugin.java new file mode 100644 index 0000000..1982ffd --- /dev/null +++ b/main/java/shkd/repc/resp/portal/ExtendsPortalCardInvPlugin.java @@ -0,0 +1,28 @@ +package shkd.repc.resp.portal; + +import kd.bos.bill.OperationStatus; +import kd.bos.form.FormShowParameter; +import kd.bos.form.ShowType; +import kd.bos.form.events.HyperLinkClickEvent; +import kd.bos.list.BillList; +import kd.repc.rebm.formplugin.bill.PortalCardInvPlugin; +import kd.scm.bid.formplugin.bill.helper.TemplateManageHelper; + +public class ExtendsPortalCardInvPlugin extends PortalCardInvPlugin { + + @Override + public void hyperLinkClick(HyperLinkClickEvent hyperlinkclickevent) { + String browsertabname = (String)this.getView().getFormShowParameter().getCustomParam("browsertabname"); + BillList grid = (BillList)hyperlinkclickevent.getSource(); + Long annoId = (Long)grid.getFocusRowPkId(); + TemplateManageHelper detailInformationHelper = new TemplateManageHelper(); + FormShowParameter showParameter = detailInformationHelper.getAnnoShowParameter("rebm", detailInformationHelper.getAnnoInvititle(), annoId); + showParameter.setFormId("bid_project_anno_preview"); + showParameter.getOpenStyle().setShowType(ShowType.NewWindow); + showParameter.setHasRight(true); + showParameter.setStatus(OperationStatus.VIEW); + showParameter.setCustomParam("browsertabname", browsertabname); + this.getView().showForm(showParameter); + + } +} diff --git a/main/java/shkd/repc/resp/portal/ExtendsPortalCardRecruitPlugin.java b/main/java/shkd/repc/resp/portal/ExtendsPortalCardRecruitPlugin.java new file mode 100644 index 0000000..3b19640 --- /dev/null +++ b/main/java/shkd/repc/resp/portal/ExtendsPortalCardRecruitPlugin.java @@ -0,0 +1,27 @@ +package shkd.repc.resp.portal; + +import kd.bos.bill.OperationStatus; +import kd.bos.form.FormShowParameter; +import kd.bos.form.ShowType; +import kd.bos.form.events.HyperLinkClickEvent; +import kd.bos.list.BillList; +import kd.repc.resm.formplugin.basedata.PortalCardRecruitPlugin; +import kd.scm.bid.formplugin.bill.helper.TemplateManageHelper; + +public class ExtendsPortalCardRecruitPlugin extends PortalCardRecruitPlugin { + + @Override + public void hyperLinkClick(HyperLinkClickEvent hyperlinkclickevent) { + String browsertabname = (String)this.getView().getFormShowParameter().getCustomParam("browsertabname"); + BillList grid = (BillList)hyperlinkclickevent.getSource(); + Long annoId = (Long)grid.getFocusRowPkId(); + FormShowParameter showParameter = this.getAnnoShowParameter(annoId); + showParameter.setFormId("resm_annorecruit_preview"); + showParameter.getOpenStyle().setShowType(ShowType.NewWindow); + showParameter.setHasRight(true); + showParameter.setStatus(OperationStatus.VIEW); + showParameter.setCustomParam("browsertabname", browsertabname); + this.getView().showForm(showParameter); + System.out.println(1); + } +}