|
@@ -46,15 +46,15 @@ public class CostAllocationEditPlugin extends AbstractListPlugin implements Plug
|
|
}
|
|
}
|
|
showParameter(nckd_agentparameterf7, btn_NOTICE,orgnumber,orgid);//调用弹出页面
|
|
showParameter(nckd_agentparameterf7, btn_NOTICE,orgnumber,orgid);//调用弹出页面
|
|
}else if (btn_NOTICES.equals(e.getOperateKey())) { //切换收款方
|
|
}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;
|
|
|
|
+// DynamicObject dynamicObject = expenseentryentityWait.get(0);
|
|
|
|
+// DynamicObject entrycostcompanyWait = dynamicObject.getDynamicObject("entrycostcompany_wait");
|
|
|
|
+ if(expenseentryentityWait==null){
|
|
|
|
+ throw new KDBizException("承担公司为空!");
|
|
}
|
|
}
|
|
- String orgnumber = entrycostcompanyWait.getString("number");//公司编码
|
|
|
|
- String orgid = entrycostcompanyWait.getString("id");//公司id
|
|
|
|
|
|
+ String orgnumber = expenseentryentityWait.getString("number");//公司编码
|
|
|
|
+ String orgid = expenseentryentityWait.getString("id");//公司id
|
|
if (orgnumber == null){
|
|
if (orgnumber == null){
|
|
throw new KDBizException("付费承担公司为空!");
|
|
throw new KDBizException("付费承担公司为空!");
|
|
}
|
|
}
|