供应商考察汇总表单取消临时校验
This commit is contained in:
parent
e9b47fae67
commit
5fca803089
|
@ -62,54 +62,4 @@ public class SupInspectSumReportFormPlugin extends AbstractReportFormPlugin impl
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean verifyQuery(ReportQueryParam queryParam) {
|
||||
FilterInfo filterInfo = queryParam.getFilter();
|
||||
QFilter qFilter = new QFilter("billstatus", QCP.equals, "B");//提交评分状态为已提交
|
||||
DynamicObjectCollection orges = (DynamicObjectCollection)filterInfo.getValue("qeug_orgfilter");
|
||||
//todo:设置所属组织过滤条件
|
||||
if (orges != null && orges.size() > 0){
|
||||
ArrayList<Long> orgIdList = new ArrayList<>();
|
||||
for (DynamicObject org : orges) {
|
||||
orgIdList.add(org.getLong("id"));
|
||||
}
|
||||
qFilter.and("org.id",QCP.in,orgIdList);
|
||||
}
|
||||
DynamicObjectCollection regSupplies = (DynamicObjectCollection)filterInfo.getValue("qeug_evalsupplierfilter");//潜在供应商集合
|
||||
DynamicObjectCollection offSupplies = (DynamicObjectCollection)filterInfo.getValue("qeug_evaloffsuppliefilter");//正式供应商集合
|
||||
DynamicObjectCollection supplierGroups = (DynamicObjectCollection)filterInfo.getValue("qeug_suppliergroupfilter");//供应商分类集合
|
||||
//todo:设置供应商过滤条件
|
||||
if (regSupplies != null || offSupplies != null){
|
||||
if (regSupplies != null && regSupplies.size() > 0){//潜在供应商
|
||||
ArrayList<Long> regSupplyIdList = new ArrayList<>();
|
||||
for (DynamicObject regSupply : regSupplies) {
|
||||
regSupplyIdList.add(regSupply.getLong("id"));//填充潜在供应商主键
|
||||
}
|
||||
qFilter.and("evalsupplier.id",QCP.in,regSupplyIdList);
|
||||
}
|
||||
if (offSupplies != null && offSupplies.size() > 0){//正式供应商
|
||||
ArrayList<Long> offSupplyIdList = new ArrayList<>();
|
||||
for (DynamicObject offSupply : offSupplies) {
|
||||
offSupplyIdList.add(offSupply.getLong("id"));//填充正式供应商主键
|
||||
}
|
||||
qFilter.and("evaloffsupplier.id",QCP.in,offSupplyIdList);
|
||||
}
|
||||
}
|
||||
//todo:设置供应商分类过滤条件
|
||||
if (supplierGroups != null && supplierGroups.size() > 0){
|
||||
ArrayList<Long> supplierGroupIdList = new ArrayList<>();//供应商分类集合
|
||||
for (DynamicObject supplierGroup : supplierGroups) {
|
||||
supplierGroupIdList.add(supplierGroup.getLong("id"));//填充供应商分类主键
|
||||
}
|
||||
qFilter.and("multisuppliertype.fbasedataid.id",QCP.in,supplierGroupIdList);
|
||||
}
|
||||
DynamicObject[] resm_myexams = BusinessDataServiceHelper.load("resm_myexam", "id,name,org,examsuppliername,modifytime,evalscore,creator,entry_evalscore,entry_evalscore.qeug_scoredesc,entry_evalscore.scoredesc", qFilter.toArray());//加载数据源
|
||||
if(!(resm_myexams != null && resm_myexams.length > 0)) {
|
||||
this.getView().showTipNotification("该条件下无符合条件的数据!");
|
||||
return false;
|
||||
}
|
||||
return super.verifyQuery(queryParam);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue