Added LibraryDocumentUsage Property
Add Tab and ToolTip Properties
This commit is contained in:
@@ -5,6 +5,17 @@ using System.IO;
|
||||
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
public partial class Document
|
||||
{
|
||||
public string DocumentTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_LibTitle == "") return string.Format("Document {0}", _DocID);
|
||||
return _LibTitle;
|
||||
}
|
||||
}
|
||||
}
|
||||
public partial class DocumentInfo
|
||||
{
|
||||
public string DocumentTitle
|
||||
@@ -15,6 +26,24 @@ namespace VEPROMS.CSLA.Library
|
||||
return _LibTitle;
|
||||
}
|
||||
}
|
||||
public string LibraryDocumentUsage
|
||||
{
|
||||
get
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
string sep = "\r\nUsed In:\r\n ";
|
||||
foreach (EntryInfo myEntry in DocumentEntries)
|
||||
{
|
||||
foreach (ItemInfo myItem in myEntry.MyContent.ContentItems)
|
||||
{
|
||||
ItemInfo proc = myItem.MyProcedure;
|
||||
sb.Append(sep + proc.MyContent.Number + " - " + proc.MyContent.Text);
|
||||
sep = "\r\n ";
|
||||
}
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
public class DSOFile : IDisposable
|
||||
{
|
||||
|
Reference in New Issue
Block a user