单据插件仓位赋值原创
8人赞赏了该文章
1,639次浏览
编辑于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人打赏
还没有人打赏,快来当第一个打赏的人吧!
推荐阅读
您的鼓励与嘉奖将成为创作者们前进的动力,如果觉得本文还不错,可以给予作者创作打赏哦!
请选择打赏金币数 *
10金币20金币30金币40金币50金币60金币
可用金币: 0