优化收款申请优化总部组织和总部账户赋值逻辑

This commit is contained in:
xuhaihui 2025-12-18 17:36:26 +08:00
parent cb6901279f
commit eda4addf1c
1 changed files with 1 additions and 22 deletions

View File

@ -89,27 +89,6 @@ public class ContractSelectProjectPlugin extends AbstractBillPlugIn implements P
this.getModel().setValue("zcgj_zborg", null);//总部组织 this.getModel().setValue("zcgj_zborg", null);//总部组织
this.getModel().setValue("zcgj_zbbankaccount", null);//总部账号 this.getModel().setValue("zcgj_zbbankaccount", null);//总部账号
} }
}
}/* else if (name.equals("fiaccountorg")) {
//财务记账组织
ChangeData changeData = e.getChangeSet()[0];
Object newValue = changeData.getNewValue();
if (newValue != null) {
DynamicObject fiaccountorg = (DynamicObject) newValue;
Object zcgj_hqrec = this.getModel().getValue("zcgj_hqrec");//总部代收
if (zcgj_hqrec != null && zcgj_hqrec.equals("20")) {
QFilter filter = new QFilter("zcgj_companyblentry.zcgj_org", QCP.equals, fiaccountorg.getPkValue());//组织
DynamicObject zcgj_companybelong = BusinessDataServiceHelper.loadSingle("zcgj_companybelong", "zcgj_headquarters",
new QFilter[]{filter});//"公司归属区域"
if (zcgj_companybelong != null) {
DynamicObject zcgj_headquarters = zcgj_companybelong.getDynamicObject("zcgj_headquarters");//本部
this.getModel().setValue("zcgj_hqorg", zcgj_headquarters);//总部代收组织
}
}
} else {
this.getModel().setValue("zcgj_hqrec", null);//总部代收
this.getModel().setValue("zcgj_hqorg", null);//总部代收组织
}
}*/
} }
} }