.合同台账签约方默认为当前核算组织
This commit is contained in:
parent
5f8a4a4c41
commit
a609a1a37a
|
@ -2,6 +2,7 @@ package zcgj.zcdev.zcdev.fs.plugin.form;
|
||||||
|
|
||||||
import kd.bos.bill.AbstractBillPlugIn;
|
import kd.bos.bill.AbstractBillPlugIn;
|
||||||
import kd.bos.context.RequestContext;
|
import kd.bos.context.RequestContext;
|
||||||
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
import kd.bos.servicehelper.user.UserServiceHelper;
|
import kd.bos.servicehelper.user.UserServiceHelper;
|
||||||
import kd.sdk.plugin.Plugin;
|
import kd.sdk.plugin.Plugin;
|
||||||
|
|
||||||
|
@ -23,7 +24,12 @@ public class ContractbillContractpartyDefaultPlugin extends AbstractBillPlugIn
|
||||||
Long currentOrgId = RequestContext.get().getOrgId();
|
Long currentOrgId = RequestContext.get().getOrgId();
|
||||||
//当前所在的组织是属于矿山下的
|
//当前所在的组织是属于矿山下的
|
||||||
if(OrgCheckUtils.isKS(currentOrgId)){
|
if(OrgCheckUtils.isKS(currentOrgId)){
|
||||||
this.getModel().setValue("contractparty",mainOrgId);
|
Object company = this.getModel().getValue("costcompany");//核算组织
|
||||||
|
if(company!=null){
|
||||||
|
DynamicObject companyObj = (DynamicObject)company;
|
||||||
|
this.getModel().setValue("contractparty",companyObj);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue