单据类型关联约束付款事项代码提交04
This commit is contained in:
parent
8f8dcf1c84
commit
2eeec3ee90
|
@ -80,17 +80,20 @@ public class CommonBillOsPaymentBillFormPlugin extends AbstractBillPlugIn implem
|
|||
DynamicObject[] loads = BusinessDataServiceHelper.load("shkd_paymatter", "id,shkd_paymatterinfo.number", QF.toArray());
|
||||
for (DynamicObject load : loads) {
|
||||
String paymentNumber = load.getString("shkd_paymatterinfo.number");//由于辅助资料包含的付款事项可能存在非叶子节点的情况。查询对象的下级叶子对象。
|
||||
logger.info("开始查询该付款事项及其下游叶子事项");
|
||||
String sql_number = "%"+paymentNumber+"%";
|
||||
QFilter QFSon = new QFilter("longnumber", QCP.like, sql_number);
|
||||
QFSon.and("isleaf",QCP.equals,"1");
|
||||
DynamicObject[] datum = BusinessDataServiceHelper.load("bos_assistantdata_detail", "id,number,longnumber,level", QFSon.toArray());
|
||||
for (DynamicObject data : datum) {
|
||||
String longnumber = data.getString("longnumber");//长编码
|
||||
logger.info("该付款事项长编码为"+longnumber);
|
||||
if (data.getInt("level")>1){
|
||||
int index = longnumber.indexOf("!");
|
||||
String substr = longnumber.substring(0, index);
|
||||
if (substr.equals(paymentNumber)){
|
||||
paymentNumbers.add(data.getString("number"));
|
||||
|
||||
}
|
||||
}else {
|
||||
if (longnumber.equals(paymentNumber)){
|
||||
|
|
Loading…
Reference in New Issue