K3Cloud获取单据体数据包的两种方式

获取单据体数据包:
方式一:
Entity entity = this.View.BusinessInfo.GetEntity("FEntityScanCode");
DynamicObjectCollection rowObjs = this.View.Model.GetEntityDataObject(entity);
DynamicObject EntryRow = rowObjs[i] as DynamicObject;
方式二:
DynamicObject obj = this.View.Model.DataObject as DynamicObject;
Entity entity = this.View.BusinessInfo.GetEntity("FTreeEntity");
DynamicObjectCollection entityrows = entity.DynamicProperty.GetValue(obj) as DynamicObjectCollection;
DynamicObject EntryRow = entityrows[i] as DynamicObject;

posted @ 2020-02-28 22:21  放放的Blog  阅读(1242)  评论(0编辑  收藏  举报