支出财务确认单增加工序必填校验
This commit is contained in:
parent
a4bb31c6e8
commit
bfd1fc3ef4
|
@ -135,6 +135,17 @@ public class OutContractFinaceConfirmePlugin extends AbstractBillPlugIn impleme
|
|||
this.getModel().setValue("zcgj_accounttype",null,rowIndex);
|
||||
}
|
||||
}
|
||||
}else if(StringUtils.equals(name, "zcgj_accounttype")){
|
||||
DynamicObject newValue = (DynamicObject)changeData.getNewValue();
|
||||
int rowIndex = changeData.getRowIndex();
|
||||
if(newValue!=null){
|
||||
String number = newValue.getString("number");
|
||||
if(StringUtils.equals(number, "FL001")){//生成成本
|
||||
this.getView().setEnable(true, rowIndex, "zcgj_cbs");
|
||||
}else{
|
||||
this.getView().setEnable(false, rowIndex, "zcgj_cbs");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue