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;