From ae7afdc95cc95d75a39dce870b2a6104ef1de5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=96?= Date: Fri, 14 Jun 2024 19:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E5=8F=B0=E8=B4=A6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E3=80=8A=E8=A1=A5=E5=85=85=E5=8D=8F=E8=AE=AE=E3=80=8B?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/shkd/fi/em/plugin/ContractBillExtList.java | 7 +++++++ .../fi/er/plugin/formplugin/ContractbillFromPlugin.java | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/shkd-cosmic-debug/src/main/java/shkd/fi/em/plugin/ContractBillExtList.java b/shkd-cosmic-debug/src/main/java/shkd/fi/em/plugin/ContractBillExtList.java index 14ba9a0..107ebb6 100644 --- a/shkd-cosmic-debug/src/main/java/shkd/fi/em/plugin/ContractBillExtList.java +++ b/shkd-cosmic-debug/src/main/java/shkd/fi/em/plugin/ContractBillExtList.java @@ -30,6 +30,13 @@ public class ContractBillExtList extends AbstractListPlugin implements Plugin { ListSelectedRowCollection selectedRowCollection = listView.getSelectedRows(); List pks = (List)selectedRowCollection.stream().map(ListSelectedRow::getPrimaryKeyValue).collect(Collectors.toList()); switch (key) { + case "newsp2": + BillShowParameter parameter3 = new BillShowParameter(); + parameter3.setCustomParam("newsp", "newsp"); + parameter3.setFormId("er_contractbill"); + parameter3.getOpenStyle().setShowType(ShowType.MainNewTabPage); + this.getView().showForm(parameter3); + break; case "popup": if (result.isSuccess()) { if (pks.size() != 1) { diff --git a/shkd-cosmic-debug/src/main/java/shkd/fi/er/plugin/formplugin/ContractbillFromPlugin.java b/shkd-cosmic-debug/src/main/java/shkd/fi/er/plugin/formplugin/ContractbillFromPlugin.java index c569575..1598edb 100644 --- a/shkd-cosmic-debug/src/main/java/shkd/fi/er/plugin/formplugin/ContractbillFromPlugin.java +++ b/shkd-cosmic-debug/src/main/java/shkd/fi/er/plugin/formplugin/ContractbillFromPlugin.java @@ -42,7 +42,12 @@ public class ContractbillFromPlugin extends AbstractFormPlugin { if(contractcode.isEmpty()){ model.setValue("contractcode",billno); } - + // 补充协议新增 + Object customParam = this.getView().getFormShowParameter().getCustomParam("newsp"); + if(customParam != null && !"".equals(customParam)){ + //model.setValue("stdbilltype", 1972476134629078016L); + model.setItemValueByNumber("stdbilltype", "er_contractaddbill_BT"); + } } @Override