private DescFlexSegmentsData GetRcvRptDocLineDescFlexField(CompleteApplyDocLine completeApplyDocLine) { List <string> srcEntityFullNames = new List <string> { CompleteApplyDocLine.EntityRes.BE_FullName }; List <string> targetEntityFullNames = new List <string> { RcvRptDocLine.EntityRes.BE_FullName }; FlexFieldMapingDTO mappingdto = PubMethod.GetFlexFieldMaping(srcEntityFullNames, targetEntityFullNames); if (mappingdto.PublicFlexFieldReferenceDTOs.Count > 0) { SourceEntityAndDescFieldsDTO sourceEntityAndDescFieldsDTO = new SourceEntityAndDescFieldsDTO { DescFlexSegments = completeApplyDocLine.DescFlexField, SourceEntity = completeApplyDocLine }; return(PubMethod.GetFlexField(CompleteApplyDocLine.EntityRes.BE_FullName, sourceEntityAndDescFieldsDTO, RcvRptDocLine.EntityRes.BE_FullName, mappingdto).ToEntityData()); } return(new DescFlexSegmentsData()); }