Added FullName property
This commit is contained in:
parent
5c4f67a706
commit
baf43ff8a2
@ -17,6 +17,7 @@ using System.Configuration;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using System.Drawing;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
@ -31,7 +32,16 @@ namespace VEPROMS.CSLA.Library
|
||||
public override string ToString()
|
||||
{
|
||||
//return Name;
|
||||
return PlantFormat.FormatData.Name;
|
||||
//return PlantFormat.FormatData.Name;
|
||||
return FullName;
|
||||
}
|
||||
public string FullName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ParentID == 1) return Description + " (" + Name + ")";
|
||||
return MyParent.Description + " - " + Description + " (" + Name + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
public partial class FormatInfo
|
||||
@ -45,7 +55,32 @@ namespace VEPROMS.CSLA.Library
|
||||
public override string ToString()
|
||||
{
|
||||
//return Name;
|
||||
return PlantFormat.FormatData.Name;
|
||||
//return PlantFormat.FormatData.Name;
|
||||
return FullName;
|
||||
}
|
||||
public string FullName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ParentID == 1) return Description + " (" + Name + ")";
|
||||
return MyParent.Description + " - " + Description + " (" + Name + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
public partial class FormatInfoList
|
||||
{
|
||||
private static Csla.SortedBindingList<FormatInfo> _SortedFormatInfoList;
|
||||
public static Csla.SortedBindingList<FormatInfo> SortedFormatInfoList
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_SortedFormatInfoList == null)
|
||||
{
|
||||
_SortedFormatInfoList = new SortedBindingList<FormatInfo>(FormatInfoList.Get());
|
||||
_SortedFormatInfoList.ApplySort("FullName", ListSortDirection.Ascending);
|
||||
}
|
||||
return _SortedFormatInfoList;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user