From 86890397bc95a5401445387c4e53371b6016b124 Mon Sep 17 00:00:00 2001 From: xuhaihui <2098865055@qq.com> Date: Tue, 29 Jul 2025 09:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=8D=95=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=BA=9F=E5=BC=83=E4=BA=8B=E7=89=A9?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=BB=98=E8=AE=A4=E4=B8=BA=E7=A9=BA=E5=92=8C?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E4=B8=BB=E6=9D=90=E9=9A=90=E6=98=BE=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...aterialInbFinaceConfirmeInvoicePlugin.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/MaterialInbFinaceConfirmeInvoicePlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/MaterialInbFinaceConfirmeInvoicePlugin.java index 9457c97..ed9a32a 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/MaterialInbFinaceConfirmeInvoicePlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/MaterialInbFinaceConfirmeInvoicePlugin.java @@ -40,7 +40,7 @@ import java.util.*; import java.util.stream.Collectors; /** - * 入库单发票导入插件+事物类型默认为空+是否主材隐显 + * 入库单发票导入插件+ 事物类型默认为空(废弃+是否主材隐显(废弃 */ public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn implements Plugin { private static final Log log = LogFactory.getLog(MaterialInbFinaceConfirmeInvoicePlugin.class); @@ -48,7 +48,7 @@ public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn i @Override public void afterCreateNewData(EventObject e) { super.afterCreateNewData(e); - this.getModel().setValue("transtype", null);//事务类型默认为空 +// this.getModel().setValue("transtype", null);//事务类型默认为空 } @Override @@ -57,20 +57,20 @@ public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn i String key = e.getProperty().getName(); if (key.equals("transtype")) { //事务类型 - ChangeData[] changeSet = e.getChangeSet(); - ChangeData changeData = changeSet[0]; - DynamicObject transtype = (DynamicObject) changeData.getNewValue();//新值 - if (transtype != null) { - String number = transtype.getString("number"); - if (number.equals("jrjc")) { - //事务类型为即入即出时隐藏是否主材 - this.getView().setVisible(false, "ismainmaterial");//是否主材 - } else { - this.getView().setVisible(true, "ismainmaterial");//是否主材 - } - } else { - this.getView().setVisible(true, "ismainmaterial");//是否主材 - } +// ChangeData[] changeSet = e.getChangeSet(); +// ChangeData changeData = changeSet[0]; +// DynamicObject transtype = (DynamicObject) changeData.getNewValue();//新值 +// if (transtype != null) { +// String number = transtype.getString("number"); +// if (number.equals("jrjc")) { +// //事务类型为即入即出时隐藏是否主材 +// this.getView().setVisible(false, "ismainmaterial");//是否主材 +// } else { +// this.getView().setVisible(true, "ismainmaterial");//是否主材 +// } +// } else { +// this.getView().setVisible(true, "ismainmaterial");//是否主材 +// } } }