From b1043cfec18b63d82803462f54ab5bb14acfd7f7 Mon Sep 17 00:00:00 2001 From: Kathy Ruffing Date: Wed, 3 Jan 2024 09:27:13 -0500 Subject: [PATCH] F2023-126: center single line caution/note when more than 1 Vogtle Alarms --- PROMS/Formats/fmtall/VEGPAlrall.xml | Bin 207824 -> 207896 bytes .../Format/PlantFormat.cs | 8 ++++++++ PROMS/Volian.Print.Library/vlnParagraph.cs | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/PROMS/Formats/fmtall/VEGPAlrall.xml b/PROMS/Formats/fmtall/VEGPAlrall.xml index b135c6f9848e2ac84436298177f7b89c1aaaf550..7b39ec2d0dd08018092e263f91787e5b939255b7 100644 GIT binary patch delta 89 zcmca`ooB`ko(*bTrhW|h3?&Sy49*OR45dI;CXk;8<{9 diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index b35ee527..00e494fb 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -1458,6 +1458,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _NoBlankLastNoteCautionWarn, "@NoBlankLastNoteCautionWarn"); } } + private LazyLoad _NoteCautionCenterOneAllTypes; // F2023-126: Vogtle Alarms - center single line caution/note if more than one type exist off step + public bool NoteCautionCenterOneAllTypes + { + get + { + return LazyLoad(ref _NoteCautionCenterOneAllTypes, "@NoteCautionCenterOneAllTypes"); + } + } private LazyLoad _ChkBoxToGeneratePointListText; // C2021-063 Barakah Alarm: check box to generate Alarm Point List Text public bool ChkBoxToGeneratePointListText { diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 192b3ce9..d39c6d61 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1046,8 +1046,9 @@ namespace Volian.Print.Library // Calvert Alarms have a special case, center text if the next/previous is not the same type of caution or note. // Calvert Alarms have a note1 that is a warning. if a regular note preceeded it, this regular note was not centered. + // F2023-126: Vogtle Alarms - center single line caution/note if more than one type exist off step, added the check for NoteCautionCenterOneAllTypes bool doAlign = false; - if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert && (MyItemInfo.IsCaution || MyItemInfo.IsNote || MyItemInfo.IsNote1)) + if ((MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert || MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.NoteCautionCenterOneAllTypes) && (MyItemInfo.IsCaution || MyItemInfo.IsNote || MyItemInfo.IsNote1)) { bool diffAsPrev = MyItemInfo.MyPrevious == null || (MyItemInfo.MyPrevious != null && MyItemInfo.MyContent.Type != MyItemInfo.MyPrevious.MyContent.Type); bool diffAsNext = MyItemInfo.NextItem == null || (MyItemInfo.NextItem != null && MyItemInfo.MyContent.Type != MyItemInfo.NextItem.MyContent.Type);