beforeLoadData事件

1 事件介绍
可通过此事件取消系统默认的读取数据的动作。但必须通过customPrintDataEntities事件来重新提供数据,否则将打印出空的内容。
2 事件触发时机
打印引擎运行期间,读取数据前,触发此事件。
3 代码模板
@Override
public void beforeLoadData(BeforeLoadDataArgs e) {
e.setCancel(true);
}4 参数说明
public class BeforeLoadDataArgs extends EventObject
public String getDataSourceName():获取数据源标识名称;
public void setCancel(boolean cancel):设置是否取消。
5 应用示例
package kd.bos.plugin.sample.print; import kd.bos.entity.plugin. Abstract PrintServicePlugin; import kd.bos.entity.plugin. args.BeforeLoadDataArgs; import kd.bos.entity.plugin. args.Custom PrintDataEntitiesArgs; public class MyPrintPlugin extends Abstract PrintServic
beforeLoadData事件
1 事件介绍可通过此事件取消系统默认的读取数据的动作。但必须通过customPrintDataEntities事件来重新提供数据,否则将打印出空的内容。2...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇



