提交人:陈绍鑫

日期:2025/6/20 12:30
内容:收付款处理插件
This commit is contained in:
陈绍鑫 2025-06-20 11:19:09 +08:00
parent c4fd2b9fa7
commit 5468b1e6d4
2 changed files with 16 additions and 11 deletions

View File

@ -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"});
}
}
}

View File

@ -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"});
}
}
}
}