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:
@@ -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
|
||||
|
Reference in New Issue
Block a user