单据插件仓位赋值原创
8人赞赏了该文章
1,722次浏览
编辑于2022年06月01日 02:01:57
RelatedFlexGroupField stockLocFld = this.View.BillBusinessInfo.GetField("FStockLocId") as RelatedFlexGroupField;
DynamicObject[] stockLoc = BusinessDataServiceHelper.LoadFromCache(this.Context, new object[] { cw }, stockLocFld.RefFormDynamicObjectType);
Entity entity = this.View.Model.BillBusinessInfo.GetEntity("FEntity");
DynamicObject rowObj = this.View.Model.GetEntityDataObject(entity,fsqe) as DynamicObject;
stockLocFld.DynamicProperty.SetValue(rowObj, stockLoc[0]);
DynamicObject[] stockLoc = BusinessDataServiceHelper.LoadFromCache(this.Context, new object[] { cw }, stockLocFld.RefFormDynamicObjectType);
Entity entity = this.View.Model.BillBusinessInfo.GetEntity("FEntity");
DynamicObject rowObj = this.View.Model.GetEntityDataObject(entity,fsqe) as DynamicObject;
stockLocFld.DynamicProperty.SetValue(rowObj, stockLoc[0]);
stockLocFld.RefIDDynamicProperty.SetValue(rowObj, cw);
单据插件仓位赋值
赞 8
8人点赞
还没有人点赞,快来当第一个点赞的人吧!
打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!
推荐阅读