电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

beforeLoadData事件

来源:金蝶云社区作者:金蝶2024-09-232

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格式

声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信