C2019-033 added a method to get the entire list of usages for a library document.

C2019-033 made the messaging clearer when saving a word attachment that is a library document
This commit is contained in:
2019-09-17 19:34:14 +00:00
parent 955c35bab1
commit 24015e387f
2 changed files with 34 additions and 3 deletions

View File

@@ -221,6 +221,30 @@ namespace VEPROMS.CSLA.Library
return sb.ToString();
}
}
// C2019-033 - Used when saving a Word Attachment that is a Library Document (will get all usages)
public string LibraryDocumentUsageAll
{
get
{
StringBuilder sb = new StringBuilder();
string sep = "\r\nUsed In:\r\n ";
if (DocumentEntries == null)
sb.Append("None");
else
{
foreach (EntryInfo myEntry in DocumentEntries)
{
foreach (ItemInfo myItem in myEntry.MyContent.ContentItems)
{
ItemInfo proc = myItem.MyProcedure;
sb.Append(sep + proc.DisplayNumber + " - " + proc.DisplayText);
sep = "\r\n ";
}
}
}
return sb.ToString();
}
}
public ItemInfoList LibraryDocumentUsageList
{
get