From 72297999faa3c2ebfdd84b44a11f1bc206d60cd2 Mon Sep 17 00:00:00 2001 From: xuhaihui <2098865055@qq.com> Date: Thu, 5 Jun 2025 15:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E9=87=8F=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E6=88=90=E6=9C=AC=E9=A2=84=E7=AE=97=E8=A1=A8=E5=8D=95=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=EF=BC=9A=E9=A2=84=E7=AE=97=E4=BD=99=E9=A2=9D=E8=B5=8B?= =?UTF-8?q?=E5=80=BC=E4=BF=AE=E6=94=B9=E5=92=8C=E9=A1=B9=E7=9B=AE=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=B5=84=E6=96=99=E8=BF=87=E6=BB=A4=E5=92=8C=E5=A1=AB?= =?UTF-8?q?=E5=86=99=E6=A0=A1=E9=AA=8C=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/form/AimCostBoqEditPluginExt.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/AimCostBoqEditPluginExt.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/AimCostBoqEditPluginExt.java index a391940..971e047 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/AimCostBoqEditPluginExt.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/AimCostBoqEditPluginExt.java @@ -64,6 +64,9 @@ import kd.ec.cost.utils.CurrencyFormatUtil; import org.apache.commons.beanutils.ConversionException; import org.jetbrains.annotations.NotNull; +//二开系统插件 +//工程量清单成本预算表单插件:预算余额赋值修改和项目基础资料过滤和填写校验逻辑修改 + public class AimCostBoqEditPluginExt extends AbstractEcBillPlugin implements BeforeF7SelectListener, RowClickEventListener, UploadListener { private static final String ID_NUMBER_NAME = "id,number,name"; private static final String BD_MEASUREUNITS = "bd_measureunits"; @@ -196,6 +199,7 @@ public class AimCostBoqEditPluginExt extends AbstractEcBillPlugin implements Bef this.getModel().setValue("isadjust", true); this.getModel().setValue("lastversionamt", this.getModel().getValue("totalamount")); this.getView().setEnable(false, new String[]{"multicurrency"}); + this.getView().setEnable(false, new String[]{"zcgj_periodyear"}); this.adjustAddNewBoqData(); } @@ -231,9 +235,9 @@ public class AimCostBoqEditPluginExt extends AbstractEcBillPlugin implements Bef this.beforeCbsSelected(arg0); } else if (StringUtils.equals("enterpriseca", name)) { this.beforeCaSelected(arg0); - } else if (StringUtils.equals("project", name)) { - this.beforeProjectSelected(arg0); - } + }/* else if (StringUtils.equals("project", name)) { + this.beforeProjectSelected(arg0);//二开注释掉的 + }*/ } @@ -2669,15 +2673,15 @@ public class AimCostBoqEditPluginExt extends AbstractEcBillPlugin implements Bef if (isExist && vision.compareTo(BigDecimal.ONE) == 0) { if (unitProject != null) { this.getView().showTipNotification(ResManager.loadKDString("该单位工程已存在BOQ预算。", "AimCostBoqEditPlugin_68", "ec-ecco-formplugin", new Object[0])); - } else { + }/* else { this.getView().showTipNotification(ResManager.loadKDString("该项目已存在BOQ预算。", "AimCostBoqEditPlugin_69", "ec-ecco-formplugin", new Object[0])); - } + }*///二开注释掉的 } else if (isExist) { if (unitProject != null) { this.getView().showTipNotification(ResManager.loadKDString("该单位工程已存在相同版本的BOQ预算。", "AimCostBoqEditPlugin_70", "ec-ecco-formplugin", new Object[0])); - } else { + }/* else { this.getView().showTipNotification(ResManager.loadKDString("该项目已存在相同版本的BOQ预算。", "AimCostBoqEditPlugin_71", "ec-ecco-formplugin", new Object[0])); - } + }*///二开注释掉的 } return isExist;