InvokeFieldUpdateService避坑原创
3人赞赏了该文章
992次浏览
未经作者许可,禁止转载编辑于2022年12月01日 14:59:34
InvokeFieldUpdateService用于触发分录行字段更新事件,但是初始化循环触发分录所有行事件时需要配合SetEntryCurrentRowIndex一起使用,否则只会触发第一行的事件。
for (int index = 0; index < entryRows.Count; index++) { this.View.Model.SetEntryCurrentRowIndex("FEntity", index); this.View.InvokeFieldUpdateService("FApproveQty", index); this.View.InvokeFieldUpdateService("FTAXRATE", index); }