云星空单据插件仓位赋值

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);

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注