Added LibraryDocumentUsage Property
Add Tab and ToolTip Properties
This commit is contained in:
@@ -17,6 +17,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
return string.Format("{0} {1}", MyContent.Number, MyContent.Text);
|
||||
}
|
||||
// TODO: Move to ItemInfo Extension
|
||||
|
||||
#region IVEDrillDown
|
||||
public System.Collections.IList GetChildren()
|
||||
{
|
||||
@@ -414,6 +416,39 @@ namespace VEPROMS.CSLA.Library
|
||||
// AddList(nd, "Tables", Tables);
|
||||
// return xn.OwnerDocument;
|
||||
//}
|
||||
public string TabToolTip
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MyContent.MyEntry == null)
|
||||
return MyContent.Number + " - " + MyContent.Text;
|
||||
string toolTip = MyProcedure.TabToolTip + "\r\n";
|
||||
if (MyContent.Number != "")
|
||||
toolTip += MyContent.Number + " - " + MyContent.Text;
|
||||
else
|
||||
toolTip += MyContent.Text;
|
||||
DocumentInfo myDocument = MyContent.MyEntry.MyDocument;
|
||||
if (myDocument.LibTitle != "")
|
||||
{
|
||||
toolTip += string.Format("\r\n(Library Document - {0})", myDocument.LibTitle);
|
||||
toolTip += myDocument.LibraryDocumentUsage;
|
||||
}
|
||||
return toolTip;
|
||||
}
|
||||
}
|
||||
public string TabTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MyContent.MyEntry == null)
|
||||
return MyContent.Number;
|
||||
if (MyContent.Number != "")
|
||||
return MyContent.Number;
|
||||
if (MyContent.Text.Length <= 10)
|
||||
return MyContent.Text;
|
||||
return MyContent.Text.Split(" ,.;:-_".ToCharArray())[0] + "...";
|
||||
}
|
||||
}
|
||||
#region IVEReadOnlyItem
|
||||
PartInfoList _PartInfoList;
|
||||
public System.Collections.IList GetChildren()
|
||||
|
Reference in New Issue
Block a user