public EDocumentPicture EDocumentPictureSelectPicture(DBGuid IDVal)
        {
            TraceCallEnterEvent.Raise();
              try
              {
            EDocumentPicture result = base.EDocumentPictureSelect(IDVal);
            if (!result.PictureUrl.IsNull)
            {
              FileDataContext fileDataContext = new FileDataContext();
              string ext = Path.GetExtension(result.PictureUrl).ToLower();
              string fileName = result.ID.ToString() + ext;
              result.PictureData = fileDataContext.EDocumentPictureSelect(result.EDocumentRef, fileName);
            }

            TraceCallReturnEvent.Raise();
            return result;
              }
              catch (Exception ex)
              {
            ExceptionManager.Publish(ex);
            TraceCallReturnEvent.Raise(false);
            throw;
              }
        }