|
@@ -46,15 +46,15 @@ public class CostAllocationEditPlugin extends AbstractListPlugin implements Plug
|
|
|
}
|
|
|
showParameter(nckd_agentparameterf7, btn_NOTICE,orgnumber,orgid);
|
|
|
}else if (btn_NOTICES.equals(e.getOperateKey())) {
|
|
|
- Object value = this.getModel().getValue("nckd_costcompany");
|
|
|
- DynamicObjectCollection expenseentryentityWait = this.getModel().getEntryEntity("expenseentryentity_wait");
|
|
|
- DynamicObject dynamicObject = expenseentryentityWait.get(0);
|
|
|
- DynamicObject entrycostcompanyWait = dynamicObject.getDynamicObject("entrycostcompany_wait");
|
|
|
- if(entrycostcompanyWait==null){
|
|
|
- throw new KDBizException("待摊明细分录为空!");
|
|
|
+ Object value = this.getModel().getValue("costcompany");
|
|
|
+ DynamicObject expenseentryentityWait = (DynamicObject)value;
|
|
|
+
|
|
|
+
|
|
|
+ if(expenseentryentityWait==null){
|
|
|
+ throw new KDBizException("承担公司为空!");
|
|
|
}
|
|
|
- String orgnumber = entrycostcompanyWait.getString("number");
|
|
|
- String orgid = entrycostcompanyWait.getString("id");
|
|
|
+ String orgnumber = expenseentryentityWait.getString("number");
|
|
|
+ String orgid = expenseentryentityWait.getString("id");
|
|
|
if (orgnumber == null){
|
|
|
throw new KDBizException("付费承担公司为空!");
|
|
|
}
|