单据类型关联约束付款事项代码提交05
This commit is contained in:
parent
2eeec3ee90
commit
aaa884977f
|
@ -75,6 +75,7 @@ public class CommonBillOsPaymentBillFormPlugin extends AbstractBillPlugIn implem
|
||||||
DynamicObject org = (DynamicObject) this.getModel().getValue("org");
|
DynamicObject org = (DynamicObject) this.getModel().getValue("org");
|
||||||
String orgName = org.getString("name");
|
String orgName = org.getString("name");
|
||||||
QF.and("shkd_org.name",QCP.equals,orgName);
|
QF.and("shkd_org.name",QCP.equals,orgName);
|
||||||
|
QF.and("enable",QCP.equals,"1");//使用状态为可用
|
||||||
logger.info("过滤条件单据类型为"+billType+",组织名称为:"+orgName);
|
logger.info("过滤条件单据类型为"+billType+",组织名称为:"+orgName);
|
||||||
ArrayList<Object> paymentNumbers = new ArrayList<>();
|
ArrayList<Object> paymentNumbers = new ArrayList<>();
|
||||||
DynamicObject[] loads = BusinessDataServiceHelper.load("shkd_paymatter", "id,shkd_paymatterinfo.number", QF.toArray());
|
DynamicObject[] loads = BusinessDataServiceHelper.load("shkd_paymatter", "id,shkd_paymatterinfo.number", QF.toArray());
|
||||||
|
@ -83,7 +84,7 @@ public class CommonBillOsPaymentBillFormPlugin extends AbstractBillPlugIn implem
|
||||||
logger.info("开始查询该付款事项及其下游叶子事项");
|
logger.info("开始查询该付款事项及其下游叶子事项");
|
||||||
String sql_number = "%"+paymentNumber+"%";
|
String sql_number = "%"+paymentNumber+"%";
|
||||||
QFilter QFSon = new QFilter("longnumber", QCP.like, sql_number);
|
QFilter QFSon = new QFilter("longnumber", QCP.like, sql_number);
|
||||||
QFSon.and("isleaf",QCP.equals,"1");
|
QFSon.and("isleaf",QCP.equals,"1");//是叶子节点
|
||||||
DynamicObject[] datum = BusinessDataServiceHelper.load("bos_assistantdata_detail", "id,number,longnumber,level", QFSon.toArray());
|
DynamicObject[] datum = BusinessDataServiceHelper.load("bos_assistantdata_detail", "id,number,longnumber,level", QFSon.toArray());
|
||||||
for (DynamicObject data : datum) {
|
for (DynamicObject data : datum) {
|
||||||
String longnumber = data.getString("longnumber");//长编码
|
String longnumber = data.getString("longnumber");//长编码
|
||||||
|
|
Loading…
Reference in New Issue