采购需求优化
This commit is contained in:
parent
0e027a8377
commit
b58e13f3a0
|
@ -36,8 +36,8 @@ public class PurDemandListPlugin extends AbstractListPlugin {
|
|||
DynamicObject dataEntity = model.getDataEntity();
|
||||
IDataEntityType dataEntityType = dataEntity.getDataEntityType();
|
||||
String name = dataEntityType.getName();
|
||||
//立项||采购计划
|
||||
if ("rebm_project".equals(name) ||"rebm_purplan".equals(name)) {
|
||||
//立项||采购计划||合同||费用登记
|
||||
if ("rebm_project".equals(name) ||"rebm_purplan".equals(name)||"recon_contractbill".equals(name)||"recon_connotextbill".equals(name)) {
|
||||
e.getQFilters().clear();
|
||||
DynamicObject org = dataEntity.getDynamicObject("org");
|
||||
if (null != org) {
|
||||
|
@ -50,5 +50,19 @@ public class PurDemandListPlugin extends AbstractListPlugin {
|
|||
}
|
||||
}
|
||||
|
||||
//采购订单
|
||||
if ("repe_orderform".equals(name) ) {
|
||||
e.getQFilters().clear();
|
||||
DynamicObject org = dataEntity.getDynamicObject("purchaseorg");
|
||||
if (null != org) {
|
||||
List<QFilter> qFilters = e.getQFilters();
|
||||
QFilter q1 = new QFilter("org.name", QCP.equals, org.getString("name"));
|
||||
QFilter q2 = new QFilter("billstatus", QCP.equals, "C");
|
||||
List<QFilter> listQF = Lists.newArrayList();
|
||||
listQF.add(q1.and(q2));
|
||||
qFilters.addAll(listQF);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue