C2025-023 Bringing branch up to date to resolve merge conflicts
This commit is contained in:
@@ -252,6 +252,14 @@ namespace Volian.Print.Library
|
||||
get { return _CountInApplProcs; }
|
||||
set { _CountInApplProcs = value; }
|
||||
}
|
||||
// C2025-033 Child (slave) being printed
|
||||
private static int _PrintingChild = 0;
|
||||
public static int PrintingChild
|
||||
{
|
||||
get { return _PrintingChild; }
|
||||
set { _PrintingChild = value; }
|
||||
}
|
||||
|
||||
//private bool _AddBlankPagesForDuplexPrinting = false;
|
||||
//public bool AddBlankPagesForDuplexPrinting // Tells us if a the option to add a blank page is turn on (for procedures with duplex foldouts)
|
||||
//{
|
||||
@@ -1363,6 +1371,8 @@ i = 0;
|
||||
foreach (VEPROMS.CSLA.Library.PageItem pageItem in pageStyle.PageItems)
|
||||
{
|
||||
if (pageItem.Token == null) continue; // can be null if token is dependent on PSI lookup!
|
||||
// 2024-089 selectively print pagestyle item base on Child Procedure being printed
|
||||
if (PrintingChild > 0 && pageItem.ChildNum > 0 && pageItem.ChildNum != PrintingChild) continue; // C2025-033 item should not be printed for this child
|
||||
DidHLSText = false; // reset to false for this group of tokens.
|
||||
//if (pageItem.Token.Contains("HLSTEXT"))
|
||||
// Console.WriteLine("{0} - PageList Token", pageItem.Token);
|
||||
@@ -1761,6 +1771,16 @@ i = 0;
|
||||
case "[HEADER4]":
|
||||
case "{HEADER5}":
|
||||
case "[HEADER5]":
|
||||
case "{HEADER6}":
|
||||
case "[HEADER6]":
|
||||
case "{HEADER7}":
|
||||
case "[HEADER7]":
|
||||
case "{HEADER8}":
|
||||
case "[HEADER8]":
|
||||
case "{HEADER9}":
|
||||
case "[HEADER9]":
|
||||
case "{HEADER10}":
|
||||
case "[HEADER10]":
|
||||
case "{BOX1}":
|
||||
case "[BOX1]":
|
||||
case "{BOX2}":
|
||||
@@ -2099,7 +2119,12 @@ i = 0;
|
||||
case "[UNITNUMBER]":
|
||||
string unbr = MySection.MyDocVersion.DocVersionConfig.Unit_Number;
|
||||
if (MySection.ActiveFormat.PlantFormat.FormatData.PrintData.PrintCommonForZeroUnit && unbr == "0")
|
||||
plstr = "COMMON"; // for Comanche Peak, replace "Unit 0" with "COMMON"
|
||||
{
|
||||
if (String.IsNullOrEmpty(MySection.MyDocStyle.AltMultiUnitWording))
|
||||
plstr = "COMMON"; // for Comanche Peak, replace "Unit 0" with "COMMON"
|
||||
else
|
||||
plstr = MySection.MyDocStyle.AltMultiUnitWording; // for Comanche Peak Abnormal, replace "Unit 0" with "UNIT 1 AND 2"
|
||||
}
|
||||
else
|
||||
plstr = plstr.Replace(token, unbr);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user