金蝶云 维度关联字段 获取数据包之仓位
HashSet<object> FCWIDList = new HashSet<object>();
foreach (DynamicObject kc in EntityCollection)
{
int FCWID = Convert.ToInt32(kc["FSTOCKLOCID"]);//仓位维度ID
FCWIDList.Add(FCWID);
}
//获取仓位数据包 BD_FLEXVALUESDETAIL 值集资料维度数据标识
DynamicObject[] objs5 = BusinessDataServiceHelper.Load(
this.Context,
FCWIDList.ToArray(),
(MetaDataServiceHelper.Load(this.Context, "BD_FLEXVALUESDETAIL") as FormMetadata).
BusinessInfo.GetDynamicObjectType());