优化代码 支出合同合作类型代码塞值

This commit is contained in:
xiaoshi 2025-01-09 17:18:57 +08:00
parent 1b7e75fb29
commit 7ec830c713
1 changed files with 6 additions and 3 deletions

View File

@ -36,10 +36,13 @@ public class OutContractFromPlugin extends AbstractBillPlugIn implements Plugin
DynamicObject contractType = (DynamicObject)changeData.getNewValue();
String number = contractType.getString("number");
List<ComboItem> comboList = new ArrayList<>();
comboList.add(new ComboItem(new LocaleString("全面合作"), "A"));
comboList.add(new ComboItem(new LocaleString("局部合作"), "B"));
if(number.equals("sbzl")){
comboList.add(new ComboItem(new LocaleString("零星租赁"), "C"));
comboList.add(new ComboItem(new LocaleString("全部租赁"), "C"));
comboList.add(new ComboItem(new LocaleString("部分租赁"), "D"));
comboList.add(new ComboItem(new LocaleString("零星租赁"), "F"));
}else{
comboList.add(new ComboItem(new LocaleString("全面合作"), "A"));
comboList.add(new ComboItem(new LocaleString("局部合作"), "B"));
}
ComboEdit comboEdit = getView().getControl("zcgj_cooperatemode");
comboEdit.setComboItems(comboList);