[K/3Cloud] 单据转换插件执行顺序

1、下推事件及顺序
//初始化变量
OnInitVariable(InitVariableEventArgs e)

//解析字段映射关系,并构建查询参数。这里可以加入你想要的额外的字段
OnQueryBuilderParemeter(QueryBuilderParemeterEventArgs e)

//构建列表中选择数据行的In语句
OnInSelectedRow(InSelectedRowEventArgs e)

//解析选单条件策略
OnParseFilter(ParseFilterEventArgs e)

//获取源单数据
OnGetSourceData(GetSourceDataEventArgs e) (下推执行)

//执行分组前
OnBeforeGroupBy(BeforeGroupByEventArgs e)

//创建目标单
OnCreateTarget(CreateTargetEventArgs e) (下推执行)

//字段映射开始
OnBeforeFieldMapping(BeforeFieldMappingEventArgs e)

//单个字段映射
OnFieldMapping(FieldMappingEventArgs e)

//计算公式映射
OnFieldCalculate(FieldCalculateEventArgs e)

//所有字段映射完成
OnAfterFieldMapping(AfterFieldMappingEventArgs e)

//关联关系(Link表)创建前
OnCreateLink(CreateLinkEventArgs e)

//关联关系(Link表)创建完成
OnAfterCreateLink(CreateLinkEventArgs e)

//单据转换后事件
AfterConvert(AfterConvertEventArgs e)(新加)

2、选单前事件及顺序(弹出选单列表前)
OnInitVariable(InitVariableEventArgs e)

//解析映射关系中的过滤选项
OnParseFilterOptions(ParseFilterOptionsEventArgs e)(选单执行)

OnParseFilter(ParseFilterEventArgs e)

3、选单事件及顺序
OnInitVariable(InitVariableEventArgs e)

OnQueryBuilderParemeter(QueryBuilderParemeterEventArgs e)

OnInSelectedRow(InSelectedRowEventArgs e)

//获取源单数据
OnGetDrawSourceData(GetDrawSourceDataEventArgs e)(选单执行)

OnBeforeGroupBy(BeforeGroupByEventArgs e)

//目标单创建后
OnCreateDrawTarget(CreateDrawTargetEventArgs e)(选单执行)

OnBeforeFieldMapping(BeforeFieldMappingEventArgs e)

OnFieldMapping(FieldMappingEventArgs e)

OnFieldCalculate(FieldCalculateEventArgs e)

OnAfterFieldMapping(AfterFieldMappingEventArgs e)

OnCreateLink(CreateLinkEventArgs e)

OnAfterCreateLink(CreateLinkEventArgs e)

//单据转换后事件
AfterConvert(AfterConvertEventArgs e)

posted @ 2013-09-12 16:30  范永强  阅读(244)  评论(0编辑  收藏  举报