优化代码 支出合同合作类型代码塞值
This commit is contained in:
parent
1b7e75fb29
commit
7ec830c713
|
@ -36,10 +36,13 @@ public class OutContractFromPlugin extends AbstractBillPlugIn implements Plugin
|
||||||
DynamicObject contractType = (DynamicObject)changeData.getNewValue();
|
DynamicObject contractType = (DynamicObject)changeData.getNewValue();
|
||||||
String number = contractType.getString("number");
|
String number = contractType.getString("number");
|
||||||
List<ComboItem> comboList = new ArrayList<>();
|
List<ComboItem> comboList = new ArrayList<>();
|
||||||
comboList.add(new ComboItem(new LocaleString("全面合作"), "A"));
|
|
||||||
comboList.add(new ComboItem(new LocaleString("局部合作"), "B"));
|
|
||||||
if(number.equals("sbzl")){
|
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 comboEdit = getView().getControl("zcgj_cooperatemode");
|
||||||
comboEdit.setComboItems(comboList);
|
comboEdit.setComboItems(comboList);
|
||||||
|
|
Loading…
Reference in New Issue