Added the PrintCommonForZeroUnit format flag

Print “COMMON” instead of “UNIT 0” logic (Comanche Peak)
This commit is contained in:
2014-05-16 18:23:59 +00:00
parent 19af9a0812
commit 5f9331b1b8
5 changed files with 29 additions and 2 deletions

View File

@@ -1320,7 +1320,11 @@ namespace Volian.Print.Library
break;
case "{UNITNUMBER}":
case "[UNITNUMBER]":
plstr = plstr.Replace(token, MySection.MyDocVersion.DocVersionConfig.Unit_Number);
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"
else
plstr = plstr.Replace(token, unbr);
break;
case "{ATTACHNUM}":
case "[ATTACHNUM]":