From 0ac3d3291f1f4b943bc48cbddd5a04f72cf405c7 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 18 Aug 2014 13:31:51 +0000 Subject: [PATCH] BGE: Hardcode ALN CPI for HIGH5 (for locating change bar) BGE: Replace words for bolding [Bxxx] in ALN and EOP. ALN CPI for HIGH5 type --- PROMS/fmtxml/FmtFileToXml.cs | 6 ++++-- PROMS/fmtxml/PlantSpecific_Calvert.cs | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/PROMS/fmtxml/FmtFileToXml.cs b/PROMS/fmtxml/FmtFileToXml.cs index 9222898a..ed8fa030 100644 --- a/PROMS/fmtxml/FmtFileToXml.cs +++ b/PROMS/fmtxml/FmtFileToXml.cs @@ -1648,7 +1648,7 @@ namespace fmtxml } BuildDictionaryText(); fmtName = alias; - //if (fmtName.ToUpper() != "WCN1" && fmtName.ToUpper() != "BASE") return; + //if (fmtName.ToUpper() != "BGEALN" && fmtName.ToUpper() != "BASE") return; //if (fmtName.ToUpper() != "OHLP" && fmtName.ToUpper() != "BASE" && fmtName.ToUpper() != "WCN2") return; //if (fmtName.ToUpper() != "WCNCKL" && fmtName.ToUpper() != "BASE") return; //if (fmtName.ToUpper() != "NSPARP" && fmtName.ToUpper() != "BASE") return; @@ -5586,7 +5586,9 @@ namespace fmtxml step.Font.FontStyle = null; if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontSize), step, dicParents)) step.Font.FontSize = null; - if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontCPI), step, dicParents)) + bool skipCPIForCalvertAlarmTypeHigh5 = false; + if (step.Type.ToUpper() == "HIGH5" && fmtName.ToUpper() == "BGEALN") skipCPIForCalvertAlarmTypeHigh5 = true; + if (!skipCPIForCalvertAlarmTypeHigh5 && step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontCPI), step, dicParents)) step.Font.CPI = null; if (step.Font != null && CheckInheritedStr(new StepPartStr(StepPartFontJustify), step, dicParents)) step.Font.FontJustify = null; diff --git a/PROMS/fmtxml/PlantSpecific_Calvert.cs b/PROMS/fmtxml/PlantSpecific_Calvert.cs index f4bea6ce..5c6e368a 100644 --- a/PROMS/fmtxml/PlantSpecific_Calvert.cs +++ b/PROMS/fmtxml/PlantSpecific_Calvert.cs @@ -41,10 +41,14 @@ namespace fmtxml fmtdata.StepData[20].OneLineBeforeTab = "True"; fmtdata.StepData[20].SpaceIn = "True"; fmtdata.StepData[20].StepLayoutData.EveryNLines = "1"; + fmtdata.StepData[0].Font.CPI = "12"; fmtdata.BoxData[1].TxtStart = 356; fmtdata.BoxData[1].TxtWidth = 130; fmtdata.BoxData[1].BXMLS = null; fmtdata.BoxData[1].BXMRS = null; + + fmtdata.SectData.ReplaceStrData[10].ReplaceWord = @"(\[B\w*\])"; + fmtdata.SectData.ReplaceStrData[10].ReplaceWith = @"\b $1\b0 "; } private void AddBGEEOPfmt(ref FormatData fmtdata) { @@ -106,6 +110,9 @@ namespace fmtxml fmtdata.TransData.TransTypeData[6].TransFormat = @"{Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}{Page Num}"; fmtdata.TransData.TransTypeData[9].TransFormat = @"{Proc Num} {IND}\ul {Proc Title}\ulnone "; fmtdata.TransData.TransTypeData[10].TransFormat = @"{First Step}, \ul {Step Text}\ulnone {Page Num}"; + + fmtdata.SectData.ReplaceStrData[27].ReplaceWord = @"(\[B\w*\])"; + fmtdata.SectData.ReplaceStrData[27].ReplaceWith = @"\b $1\b0 "; } private void AddBGEEOPOverridefmt(ref FormatData fmtdata) {