1.OnPrepareOperationServiceOption操作初始化时,确认操作执行参数
2.OnPreparePropertys 数据加载前,确保需要的属性被加载
3.OnAddValidators操作执行前,加载操作校验器
4.BeforeExecuteOperationTransaction 操作执行前,事务开始前事件
5.BeginOperationTransaction操作执行前,事务开始后事件
6.EndOperationTransaction操作执行后,事务结束前 7.AfterExecuteOperationTransaction操作执行后,事务结束后
继承基类 (AbstractOperationServicePlugIn)
通用结构
[Kingdee.BOS.Util.HotUpdate] [System.ComponentModel.Description("XXX操作插件")] public class PurOrderOperPlugIn: AbstractOperationServicePlugIn { public override void EndOperationTransaction(EndOperationTransactionArgs e) { base.EndOperationTransaction(e); try { foreach (DynamicObject obj in e.DataEntitys) { string fid = obj["id"].ToString();//单据FID } } catch (Exception ex) { throw new KDBusinessException(string.Empty, ex.ToString()); } } }