1.后台打开报表
2.查看取数插件。
3. 创建ReportdocumentHandle对象,然后调用 query方法。(构造参数对象)
//1.插件注册在操作上
public void beforeExecuteOperationTransaction{
super.beforeExecuteOperationTransaction(e);
//
ReportdocumentHandle sumQuery=new ReportdocumentHandle();
ReportQueryParam reportQueryParam=new ReportQueryParam();
FilterInfo filterInfo=new FilterInfo();
filterInfo.addFilterItem("kdyq_procurement","A","=");
//filterInfo.addFilterItem("q_asstacttype","bd_customer","=");
//filterInfo.addFilterItem("startdate","2024-12-01","=");
//filterInfo.addFilterItem("stopdate","2024-12-10","=");//
//filterInfo.addFilterItem("billscope","ar_finarbill","=");
//List list=new ArrayList();
//list.add("currency");
//filterInfo.addFilterItem("showkeycols",list,"in");
//showkeycols
reportQueryParam.setFilter(filterInfo);
try {
DataSet dataSet =sumQuery.query(reportQueryParam,null);
for (Row row:dataSet){
Object t=row.get(1);
}
} catch (Throwable ex) {
throw new RuntimeException(ex);
}
//reportQuery.query();
}