服务热线:

4006-6500-28

新闻资讯
联系我们

电话:400-665-0028


您当前位置:首页 > 新闻资讯  > 知识学习 > 正文知识学习
云星空单据插件仓位赋值
添加时间:2022-6-1
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);