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