单据插件仓位赋值原创
金蝶云社区-CDLVYI
CDLVYI
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]);

                stockLocFld.RefIDDynamicProperty.SetValue(rowObj, cw);



单据插件仓位赋值

图标赞 8
8人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!