Added ‘UseSpecificPageNo’ for printing of explicit page number transitions

Use ‘UseSpecificPageNo’ for printing of explicit page number transitions
Allow Change Id for each procedure (not one for entire session). Request from Calvert.
Implement ‘UseSpecificPageNo’ flag.
Added ‘UseSpecificPageNo’ flag
Change Id dialog (moved from VEPROMS UI)
This commit is contained in:
2014-07-02 13:14:33 +00:00
parent b1740f888c
commit f9bfbea84a
12 changed files with 343 additions and 15 deletions

View File

@@ -838,21 +838,22 @@ namespace VEPROMS.CSLA.Library
{
int pgoffset = tb._ToItem.PageNumber - tb._FromItem.PageNumber;
tb._ToItem.PageNumberUsed = tb._ToItem.PageNumber;
// if the plant does not want to use the 'Next Page' or 'Previous Page' text, reset the
// pgoffset so that the specific page number is always printed even if it is next or previous page:
if (tb._ToItem.ActiveFormat.PlantFormat.FormatData.TransData.UseSpecificPageNo) pgoffset = -2;
switch (pgoffset)
{
case 1:
tb.Append(" (Next Page)");
//Console.WriteLine("Next Page: {0}", tb._FromItem.ShortPath);
break;
case -1:
tb.Append(" (Previous Page)");
//Console.WriteLine("Prev Page: {0}", tb._FromItem.ShortPath);
break;
case 0:
break;
default:
tb.Append(string.Format(" (Page {0})", tb._ToItem.PageNumber + 1));
//Console.WriteLine("Page: {0}, {1}", tb._FromItem.ShortPath, tb._ToItem.PageNumber);
break;
}
}

View File

@@ -5398,6 +5398,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _UseSpecificTransitionModifier, "@UseSpecificTransitionModifier");
}
}
private LazyLoad<bool> _UseSpecificPageNo;
public bool UseSpecificPageNo
{
get
{
return LazyLoad(ref _UseSpecificPageNo, "@UseSpecificPageNo");
}
}
private LazyLoad<bool> _UseSecTitles;
public bool UseSecTitles
{