K3Cloud 通过元数据查询单据信息

1 查询单据
2 billFormMetaData = (FormMetadata)MetaDataServiceHelper.Load(base.Context, sourceBillFormId);
3 Field billNoField = billFormMetaData.BusinessInfo.GetBillNoField();
4 string strFilter = $"{billNoField.Key} = '{sourceBillNo}' ";
5 OQLFilter ofilter = OQLFilter.CreateHeadEntityFilter(strFilter);
6 doSourceBillInfo = BusinessDataServiceHelper.Load(base.Context, sourceBillFormId, null, ofilter).FirstOrDefault();

 

posted @ 2018-09-26 10:31  嘿嘿嘿~  阅读(1211)  评论(0编辑  收藏  举报