认领处理单限制付款人类型
This commit is contained in:
parent
f1660b0c23
commit
4abe6abd2f
|
|
@ -3,16 +3,24 @@ package shjh.jhzj7.fi.fi.plugin.form;
|
|||
import kd.bos.context.RequestContext;
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||
import kd.bos.dataentity.entity.LocaleString;
|
||||
import kd.bos.dataentity.utils.StringUtils;
|
||||
import kd.bos.entity.MainEntityType;
|
||||
import kd.bos.entity.ValueMapItem;
|
||||
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||
import kd.bos.entity.property.ComboProp;
|
||||
import kd.bos.form.field.ComboEdit;
|
||||
import kd.bos.form.field.ComboItem;
|
||||
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
import kd.bos.servicehelper.user.UserServiceHelper;
|
||||
import kd.sdk.plugin.Plugin;
|
||||
import shjh.jhzj7.fi.fi.plugin.form.info.ClaimFieldsInfo;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.EventObject;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 动态表单插件-【认领处理单】
|
||||
|
|
@ -33,10 +41,28 @@ public class ClaimBillFormPlugin extends AbstractFormPlugin implements Plugin {
|
|||
this.getView().setEnable(false,ClaimFieldsInfo.ASS_LOAN);
|
||||
this.getView().setEnable(false,ClaimFieldsInfo.ASS_PAYMENT);
|
||||
}
|
||||
//设置付款人类型
|
||||
this.setInitPaymentType();
|
||||
//按钮显隐初始化
|
||||
initShowFields();
|
||||
}
|
||||
|
||||
private void setInitPaymentType() {
|
||||
List<ComboItem> comboItems = new ArrayList<>();
|
||||
ComboItem comboItem1 = new ComboItem();
|
||||
comboItem1.setCaption(new LocaleString("客户"));
|
||||
comboItem1.setValue("bd_customer");
|
||||
comboItems.add(comboItem1);
|
||||
|
||||
ComboItem comboItem2 = new ComboItem();
|
||||
comboItem2.setCaption(new LocaleString("供应商"));
|
||||
comboItem2.setValue("bd_supplier");
|
||||
comboItems.add(comboItem2);
|
||||
|
||||
ComboEdit comboEdit = this.getControl("paymenttype");
|
||||
comboEdit.setComboItems(comboItems);
|
||||
}
|
||||
|
||||
/**
|
||||
* 值改变
|
||||
* 切换【收款类型】控制关联按钮
|
||||
|
|
|
|||
Loading…
Reference in New Issue