diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/CasRecbillFormPlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/CasRecbillFormPlugin.java index 5d1f040..a7604bb 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/CasRecbillFormPlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/CasRecbillFormPlugin.java @@ -4,6 +4,7 @@ import kd.bos.dataentity.entity.DynamicObject; import kd.bos.dataentity.entity.DynamicObjectCollection; import kd.bos.entity.datamodel.events.ChangeData; import kd.bos.entity.datamodel.events.PropertyChangedArgs; +import kd.bos.ext.fi.bei.util.EmptyUtil; import kd.bos.form.field.BasedataEdit; import kd.bos.form.field.TextEdit; import kd.bos.form.field.events.BeforeF7SelectEvent; @@ -14,7 +15,6 @@ import kd.bos.orm.query.QFilter; import kd.bos.util.StringUtils; import kd.fi.cas.enums.SettleMentTypeEnum; import kd.fi.cas.helper.SystemParameterHelper; -import kd.fi.cas.util.EmptyUtil; import java.util.Arrays; import java.util.EventObject; @@ -71,11 +71,12 @@ public class CasRecbillFormPlugin extends AbstractFormPlugin implements BeforeF7 DynamicObject settleType; Object value = this.getModel().getValue("settletype"); settleType=value != null ? (DynamicObject)value : null; - if ("电汇".equals(settleType.getString("name"))){ - this.getView().setVisible(true, new String[]{"settletnumber"}); - this.getView().setVisible(true, new String[]{"draftbill"}); + if (EmptyUtil.isNoEmpty(settleType)) { + if ("电汇".equals(settleType.getString("name"))){ + this.getView().setVisible(true, new String[]{"settletnumber"}); + this.getView().setVisible(true, new String[]{"draftbill"}); + } } - } } } @@ -137,9 +138,11 @@ public class CasRecbillFormPlugin extends AbstractFormPlugin implements BeforeF7 DynamicObject settleType; Object value = this.getModel().getValue("settletype"); settleType=value != null ? (DynamicObject)value : null; - if ("电汇".equals(settleType.getString("name"))){ - this.getView().setVisible(true, new String[]{"settletnumber"}); - this.getView().setVisible(true, new String[]{"draftbill"}); + if (EmptyUtil.isNoEmpty(settleType)) { + if ("电汇".equals(settleType.getString("name"))){ + this.getView().setVisible(true, new String[]{"settletnumber"}); + this.getView().setVisible(true, new String[]{"draftbill"}); + } } } diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/PaymentProcessingBillPlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/PaymentProcessingBillPlugin.java index 0a474ac..8107ed0 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/PaymentProcessingBillPlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/PaymentProcessingBillPlugin.java @@ -122,9 +122,11 @@ public class PaymentProcessingBillPlugin extends AbstractBillPlugIn implements P DynamicObject settleType; Object value = this.getModel().getValue("settletype"); settleType=value != null ? (DynamicObject)value : null; - if ("电汇".equals(settleType.getString("name"))){ - this.getView().setVisible(true, new String[]{"settletnumber"}); - this.getView().setVisible(true, new String[]{"draftbill"}); + if (EmptyUtil.isNoEmpty(settleType)) { + if ("电汇".equals(settleType.getString("name"))){ + this.getView().setVisible(true, new String[]{"settletnumber"}); + this.getView().setVisible(true, new String[]{"draftbill"}); + } } } } \ No newline at end of file