B2021-076: Proms search results are not presented in order when printed to PDF
This commit is contained in:
@@ -2716,6 +2716,33 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
|
||||
// B2021-076: Proms search results are not presented in order when printed to PDF
|
||||
internal string _SearchDefaultSort;
|
||||
public string SearchDefaultSort
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_SearchDefaultSort == null)
|
||||
{
|
||||
if (IsProcedure)
|
||||
_SearchDefaultSort = "FLD" + MyDocVersion.MyFolder.ManualOrder.ToString().PadLeft(5, '0') + string.Format(".PRC{0}", Ordinal.ToString().PadLeft(5, '0'));
|
||||
else if (IsSection)
|
||||
_SearchDefaultSort = ActiveParent.SearchDefaultSort + string.Format(".SEC{0}", Ordinal.ToString().PadLeft(5, '0'));
|
||||
else
|
||||
{
|
||||
PartInfo myPart = FirstSibling.ItemPartCount > 0 ? FirstSibling.ItemParts[0] : null;
|
||||
|
||||
if (myPart != null)
|
||||
_SearchDefaultSort = string.Format("{0}{1}", myPart.SearchDefaultSort, Ordinal.ToString().PadLeft(5, '0'));
|
||||
else
|
||||
_SearchDefaultSort = ActiveParent.SearchDefaultSort + string.Format(".SUB{0}", Ordinal.ToString().PadLeft(5, '0'));
|
||||
}
|
||||
}
|
||||
|
||||
return _SearchDefaultSort;
|
||||
}
|
||||
}
|
||||
|
||||
internal int _SearchAnnotationID;
|
||||
public int SearchAnnotationID
|
||||
{
|
||||
|
Reference in New Issue
Block a user