凭证录入关联带出维度

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

凭证录入关联带出维度

关键知识点:

  RelatedFlexGroupField relatedFlexGroupField = e.Field as RelatedFlexGroupField;

    DynamicObject dataobj= this.Model.GetValue(relatedFlexGroupField.RelatedBaseDataFlexGroupField, e.Row) as DynamicObject;

                    BaseDataField dataobjField= this.View.BillBusinessInfo.GetField(relatedFlexGroupField.RelatedBaseDataFlexGroupField) as BaseDataField;

   int flexItemId, flexItemMasterId;

                    List<DynamicObject> enablelist= dataobjField.Controller.GetInUseFlexItemInfo(this.Context, this.View.BillBusinessInfo, relatedFlexGroupField, dataobj, "", out flexItemId, out flexItemMasterId);

判断是否对应的核算维度,然后赋值即可

                   


凭证录入关联带出维度

关键知识点: RelatedFlexGroupField relatedFlexGroupField = e.Field as RelatedFlexGroupField; DynamicObject dataobj= ...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息