费用项目及付款事项左侧树过滤

This commit is contained in:
zengweihai 2024-06-24 16:53:37 +08:00
parent f5b83b2574
commit f9907c25c4
2 changed files with 3 additions and 14 deletions

View File

@ -117,20 +117,13 @@ public class CommonBillOsPaymentBillFormPlugin extends AbstractBillPlugIn implem
QFilter qF = new QFilter("number", QCP.in,paymentNumbers);
ListShowParameter formShowParameter = (ListShowParameter) beforeF7SelectEvent.getFormShowParameter();
QFilter Qf= new QFilter("number", QCP.in, sets);
ArrayList<QFilter> objects = new ArrayList<QFilter>();
objects.add(Qf);
formShowParameter.getTreeFilterParameter().setQFilters(objects);
logger.info("付款事项编码树集合为"+sets.toString());
formShowParameter.getTreeFilterParameter().getQFilters().add(new QFilter("number", QCP.in, sets));
formShowParameter.getListFilterParameter().setFilter(qF);
}else {
beforeF7SelectEvent.setCancel(true);
this.getView().showTipNotification("此类型单据无关联付款事项");
}
QFilter qFilter = new QFilter("number", QCP.equals, "CF0001");
ListShowParameter formShowParameter = (ListShowParameter) beforeF7SelectEvent.getFormShowParameter();
ArrayList<QFilter> objects = new ArrayList<QFilter>();
objects.add(qFilter);
formShowParameter.getTreeFilterParameter().setQFilters(objects);
}
}

View File

@ -97,11 +97,7 @@ public class CommonExpenseItemBillFormPlugin extends AbstractBillPlugIn implemen
if (!paymentIds.isEmpty()){
QFilter qF = new QFilter("id", QCP.in,paymentIds);
ListShowParameter formShowParameter = (ListShowParameter) beforeF7SelectEvent.getFormShowParameter();
QFilter QF= new QFilter("number", QCP.in, sets);
ArrayList<QFilter> objects = new ArrayList<QFilter>();
objects.add(QF);
formShowParameter.getTreeFilterParameter().setQFilters(objects);
formShowParameter.getTreeFilterParameter().getQFilters().add(new QFilter("number", QCP.in, sets));
formShowParameter.getListFilterParameter().setFilter(qF);
}else {
beforeF7SelectEvent.setCancel(true);