Пример #1
0
        /// <summary>
        /// Create the markup file for document
        /// </summary>
        public string GetMarkUpFile(string sourcePath, string documentId)
        {
            var markupFile   = string.Empty;
            var markupObject = DocumentBO.GetRedactionXml(
                _jobParameter.MatterId.ToString(CultureInfo.InvariantCulture), _redactableSetCollectionId, documentId);

            //If markup file exists write to disk
            if (markupObject != null && !string.IsNullOrEmpty(markupObject.MarkupXml))
            {
                //Add the version string
                var markupXmlText = Constants.xmlVersionString.Replace(Constants.Slash, string.Empty) +
                                    markupObject.MarkupXml;
                //Apply user selections like to include or exclude markups
                var markupXml = ApplyUserMarkupSelections(markupXmlText);
                markupFile = Path.Combine(sourcePath, Guid.NewGuid().ToString());
                markupXml.Save(markupFile);
            }
            return(markupFile);
        }